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
=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
--- bin/addons/msf_profile/i18n/fr_MF.po 2019-01-30 13:17:55 +0000
+++ bin/addons/msf_profile/i18n/fr_MF.po 2019-02-06 14:38:20 +0000
@@ -102578,6 +102578,11 @@
102578msgid "Commitment Voucher Number"102578msgid "Commitment Voucher Number"
102579msgstr "Numéro du Bon d'Engagement"102579msgstr "Numéro du Bon d'Engagement"
102580102580
102581#. module: stock
102582#: code:addons/stock/physical_inventory.py:907
102583#, python-format
102584msgid "Unable to update line #%s product %s: line not found in the discrepancy report"
102585msgstr "Impossible de mettre à jour la ligne #%s produit %s: ligne correspondante non trouvée dans le rapport d'écarts"=======
102581#. module: account_mcdb102586#. module: account_mcdb
102582#: code:addons/account_mcdb/account_mcdb.py:1494102587#: code:addons/account_mcdb/account_mcdb.py:1494
102583#, python-format102588#, python-format
102584102589
=== modified file 'bin/addons/stock/physical_inventory.py'
--- bin/addons/stock/physical_inventory.py 2018-12-03 08:36:11 +0000
+++ bin/addons/stock/physical_inventory.py 2019-02-06 14:38:20 +0000
@@ -898,8 +898,19 @@
898 row_index, len(row))898 row_index, len(row))
899 break899 break
900900
901 product_code = row.cells[2].data
902 line_no = row.cells[0].data
903 # check if line number and product code are matching together
904 product_id = product_obj.search(cr, uid, [('default_code', '=like', product_code)], context=context)
905 disc_line_found = self.pool.get('physical.inventory.discrepancy').search(cr, uid, [
906 ('inventory_id', '=', inventory_rec.id),
907 ('line_no', '=', int(line_no)),
908 ('product_id', 'in', product_id),
909 ], context=context)
910 if not disc_line_found:
911 add_error(_("""Unable to update line #%s product %s: line not found in the discrepancy report""") % (line_no, product_code), row_index, 2)
912
901 # Check if product is non-stockable913 # Check if product is non-stockable
902 product_code = row.cells[2].data
903 if product_obj.search_exist(cr, uid, [('default_code', '=like', product_code),914 if product_obj.search_exist(cr, uid, [('default_code', '=like', product_code),
904 ('type', 'in', ['service_recep', 'consu'])],915 ('type', 'in', ['service_recep', 'consu'])],
905 context=context):916 context=context):
@@ -924,7 +935,6 @@
924935
925 comment = row.cells[19].data936 comment = row.cells[19].data
926937
927 line_no = row.cells[0].data
928 line_ids = discrepancy_obj.search(cr, uid, [('inventory_id', '=', inventory_rec.id), ('line_no', '=', line_no)])938 line_ids = discrepancy_obj.search(cr, uid, [('inventory_id', '=', inventory_rec.id), ('line_no', '=', line_no)])
929 if line_ids:939 if line_ids:
930 line_no = line_ids[0]940 line_no = line_ids[0]

Subscribers

People subscribed via source and target branches