Merge lp:~unifield-team/unifield-server/us-71 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4009
Proposed branch: lp:~unifield-team/unifield-server/us-71
Merge into: lp:unifield-server
Diff against target: 42 lines (+3/-19)
1 file modified
bin/addons/msf_doc_import/initial_stock_inventory.py (+3/-19)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-71
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+308751@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_doc_import/initial_stock_inventory.py'
--- bin/addons/msf_doc_import/initial_stock_inventory.py 2016-08-18 08:32:03 +0000
+++ bin/addons/msf_doc_import/initial_stock_inventory.py 2016-10-18 16:01:51 +0000
@@ -186,18 +186,12 @@
186 batch = str(batch)186 batch = str(batch)
187 try:187 try:
188 batch = batch.strip()188 batch = batch.strip()
189 if ',' in batch:189 batch_ids = batch_obj.search(cr, uid, [('product_id', '=', product_id), ('name', '=', batch)], context=context)
190 bad_batch_name = True190 if not batch_ids:
191 batch_name = False191 batch_name = batch
192 batch = False192 batch = False
193 to_correct_ok = True193 to_correct_ok = True
194 else:194 else:
195 batch_ids = batch_obj.search(cr, uid, [('product_id', '=', product_id), ('name', '=', batch)], context=context)
196 if not batch_ids:
197 batch_name = batch
198 batch = False
199 to_correct_ok = True
200 else:
201 batch = batch_ids[0]195 batch = batch_ids[0]
202 except Exception:196 except Exception:
203 batch = False197 batch = False
@@ -707,16 +701,6 @@
707701
708 # Batch702 # Batch
709 batch = row.cells[4].data703 batch = row.cells[4].data
710 if batch:
711 try:
712 batch = batch.strip()
713 batch_name = batch
714 if ',' in batch_name:
715 batch_name = False
716 batch = False
717 bad_batch_name = True
718 except Exception:
719 pass
720704
721 # Expiry date705 # Expiry date
722 if row.cells[5].data:706 if row.cells[5].data:

Subscribers

People subscribed via source and target branches

to all changes: