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

Proposed by jftempo
Status: Merged
Merged at revision: 5258
Proposed branch: lp:~mallorymarcot/unifield-server/us-5097
Merge into: lp:unifield-server
Diff against target: 48 lines (+17/-2)
2 files modified
bin/addons/msf_profile/i18n/fr_MF.po (+5/-0)
bin/addons/stock/physical_inventory.py (+12/-2)
To merge this branch: bzr merge lp:~mallorymarcot/unifield-server/us-5097
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+356816@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
1=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
2--- bin/addons/msf_profile/i18n/fr_MF.po 2019-01-30 13:17:55 +0000
3+++ bin/addons/msf_profile/i18n/fr_MF.po 2019-02-06 14:38:20 +0000
4@@ -102578,6 +102578,11 @@
5 msgid "Commitment Voucher Number"
6 msgstr "Numéro du Bon d'Engagement"
7
8+#. module: stock
9+#: code:addons/stock/physical_inventory.py:907
10+#, python-format
11+msgid "Unable to update line #%s product %s: line not found in the discrepancy report"
12+msgstr "Impossible de mettre à jour la ligne #%s produit %s: ligne correspondante non trouvée dans le rapport d'écarts"=======
13 #. module: account_mcdb
14 #: code:addons/account_mcdb/account_mcdb.py:1494
15 #, python-format
16
17=== modified file 'bin/addons/stock/physical_inventory.py'
18--- bin/addons/stock/physical_inventory.py 2018-12-03 08:36:11 +0000
19+++ bin/addons/stock/physical_inventory.py 2019-02-06 14:38:20 +0000
20@@ -898,8 +898,19 @@
21 row_index, len(row))
22 break
23
24+ product_code = row.cells[2].data
25+ line_no = row.cells[0].data
26+ # check if line number and product code are matching together
27+ product_id = product_obj.search(cr, uid, [('default_code', '=like', product_code)], context=context)
28+ disc_line_found = self.pool.get('physical.inventory.discrepancy').search(cr, uid, [
29+ ('inventory_id', '=', inventory_rec.id),
30+ ('line_no', '=', int(line_no)),
31+ ('product_id', 'in', product_id),
32+ ], context=context)
33+ if not disc_line_found:
34+ add_error(_("""Unable to update line #%s product %s: line not found in the discrepancy report""") % (line_no, product_code), row_index, 2)
35+
36 # Check if product is non-stockable
37- product_code = row.cells[2].data
38 if product_obj.search_exist(cr, uid, [('default_code', '=like', product_code),
39 ('type', 'in', ['service_recep', 'consu'])],
40 context=context):
41@@ -924,7 +935,6 @@
42
43 comment = row.cells[19].data
44
45- line_no = row.cells[0].data
46 line_ids = discrepancy_obj.search(cr, uid, [('inventory_id', '=', inventory_rec.id), ('line_no', '=', line_no)])
47 if line_ids:
48 line_no = line_ids[0]

Subscribers

People subscribed via source and target branches