Merge lp:~dorian-kemps/unifield-server/US-4800 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4974
Proposed branch: lp:~dorian-kemps/unifield-server/US-4800
Merge into: lp:unifield-server
Diff against target: 27 lines (+10/-7)
1 file modified
bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py (+10/-7)
To merge this branch: bzr merge lp:~dorian-kemps/unifield-server/US-4800
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+349477@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/wizard/wizard_po_simulation_screen.py'
--- bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py 2018-06-12 12:16:09 +0000
+++ bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py 2018-07-13 15:36:41 +0000
@@ -1390,13 +1390,16 @@
1390 else:1390 else:
1391 errors.append(_('The import file is inconsistent. The matching line is not existing or was previously deleted'))1391 errors.append(_('The import file is inconsistent. The matching line is not existing or was previously deleted'))
1392 else:1392 else:
1393 write_vals['type_change'] = 'del'1393 if line.po_line_id.state in ('validated', 'validated_n'):
1394 if line.in_line_number:1394 write_vals['type_change'] = 'del'
1395 to_delete = self.search(cr, uid, [1395 if line.in_line_number:
1396 ('simu_id', '=', line.simu_id.id),1396 to_delete = self.search(cr, uid, [
1397 ('in_line_number', '=', line.in_line_number),1397 ('simu_id', '=', line.simu_id.id),
1398 ], context=context)1398 ('in_line_number', '=', line.in_line_number),
1399 self.write(cr, uid, to_delete, {'type_change': 'del'}, context=context)1399 ], context=context)
1400 self.write(cr, uid, to_delete, {'type_change': 'del'}, context=context)
1401 else:
1402 write_vals['type_change'] = 'ignore'
14001403
1401 if not line.in_line_number and not write_vals.get('imp_external_ref'):1404 if not line.in_line_number and not write_vals.get('imp_external_ref'):
1402 errors.append(_('The line should have a Line no. or an Ext Ref.'))1405 errors.append(_('The line should have a Line no. or an Ext Ref.'))

Subscribers

People subscribed via source and target branches