Merge lp:~mallorymarcot/unifield-server/us-4438 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 5133
Proposed branch: lp:~mallorymarcot/unifield-server/us-4438
Merge into: lp:unifield-server
Diff against target: 70 lines (+20/-5) (has conflicts)
2 files modified
bin/addons/msf_profile/i18n/fr_MF.po (+10/-0)
bin/addons/stock/wizard/physical_inventory_select_products.py (+10/-5)
Text conflict in bin/addons/msf_profile/i18n/fr_MF.po
To merge this branch: bzr merge lp:~mallorymarcot/unifield-server/us-4438
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+355783@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
--- bin/addons/msf_profile/i18n/fr_MF.po 2018-10-17 09:42:30 +0000
+++ bin/addons/msf_profile/i18n/fr_MF.po 2018-10-23 14:27:48 +0000
@@ -101867,6 +101867,7 @@
101867#, python-format101867#, python-format
101868msgid " goods products, please refer to the appropriate procedures"101868msgid " goods products, please refer to the appropriate procedures"
101869msgstr " veuillez vous référer aux procédures adéquates."101869msgstr " veuillez vous référer aux procédures adéquates."
101870<<<<<<< TREE
101870101871
101871#. module: account_override101872#. module: account_override
101872#: code:addons/account_override/account.py:517101873#: code:addons/account_override/account.py:517
@@ -101975,3 +101976,12 @@
101975#: code:addons/account_mcdb/account_mcdb.py:1276101976#: code:addons/account_mcdb/account_mcdb.py:1276
101976msgid "Related entries"101977msgid "Related entries"
101977msgstr "Ecritures associées"101978msgstr "Ecritures associées"
101979=======
101980
101981#. module: stock
101982#: code:addons/stock/wizard/physical_inventory_select_products.py:10
101983#: code:addons/stock/wizard/physical_inventory_select_products.py:11
101984#, python-format
101985msgid "%s months"
101986msgstr "%s mois"
101987>>>>>>> MERGE-SOURCE
101978101988
=== modified file 'bin/addons/stock/wizard/physical_inventory_select_products.py'
--- bin/addons/stock/wizard/physical_inventory_select_products.py 2018-06-15 12:30:42 +0000
+++ bin/addons/stock/wizard/physical_inventory_select_products.py 2018-10-23 14:27:48 +0000
@@ -7,7 +7,8 @@
7from dateutil.relativedelta import relativedelta7from dateutil.relativedelta import relativedelta
88
9# This will be a tuple ((1,"1 months" ), (2, "2 months"), ...)9# This will be a tuple ((1,"1 months" ), (2, "2 months"), ...)
10MOVED_IN_LAST_X_MONTHS = tuple([(i, "%s months" % str(i)) for i in range(1, 13)])10MOVED_IN_LAST_X_MONTHS_FULL_INV = tuple([("%s" % i, _("%s months") % str(i)) for i in range(0, 13)])
11MOVED_IN_LAST_X_MONTHS = tuple([(i, _("%s months") % str(i)) for i in range(1, 13)])
1112
1213
13class physical_inventory_select_products(osv.osv_memory):14class physical_inventory_select_products(osv.osv_memory):
@@ -21,7 +22,7 @@
2122
22 # If this is a full inventory, we'll add products in stock at that23 # If this is a full inventory, we'll add products in stock at that
23 # location + products with recent moves at that location24 # location + products with recent moves at that location
24 'recent_moves_months_fullinvo': fields.selection(MOVED_IN_LAST_X_MONTHS, "Moved in the last", select=True),25 'recent_moves_months_fullinvo': fields.selection(MOVED_IN_LAST_X_MONTHS_FULL_INV, "Moved in the last", select=True),
2526
26 # For partial inventories :27 # For partial inventories :
2728
@@ -135,9 +136,11 @@
135136
136 # Get products in stock at that location, or recently moved137 # Get products in stock at that location, or recently moved
137 products_in_stock = self.get_products_in_stock_at_location(cr, uid, location_id, context=context)138 products_in_stock = self.get_products_in_stock_at_location(cr, uid, location_id, context=context)
138 products_recently_moved = self.get_products_with_recent_moves_at_location(cr, uid, location_id,139 products_recently_moved = set()
139 w['recent_moves_months_fullinvo'],140 if w['recent_moves_months_fullinvo'] != '0':
140 context=context)141 products_recently_moved = self.get_products_with_recent_moves_at_location(cr, uid, location_id,
142 w['recent_moves_months_fullinvo'],
143 context=context)
141 products = products_in_stock.union(products_recently_moved)144 products = products_in_stock.union(products_recently_moved)
142145
143 # Show them in the preview146 # Show them in the preview
@@ -261,6 +264,8 @@
261 def get_products_with_recent_moves_at_location(self, cr, uid, location_id, recent_moves_months, context=None):264 def get_products_with_recent_moves_at_location(self, cr, uid, location_id, recent_moves_months, context=None):
262 context = context if context else {}265 context = context if context else {}
263266
267 if isinstance(recent_moves_months, (str,unicode)):
268 recent_moves_months = int(recent_moves_months)
264 assert isinstance(location_id, int)269 assert isinstance(location_id, int)
265 assert isinstance(recent_moves_months, int)270 assert isinstance(recent_moves_months, int)
266271

Subscribers

People subscribed via source and target branches