Merge lp:~julie-w/unifield-server/US-6753 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 5603
Proposed branch: lp:~julie-w/unifield-server/US-6753
Merge into: lp:unifield-server
Diff against target: 33 lines (+6/-3)
1 file modified
bin/addons/register_accounting/wizard/wizard_register_import.py (+6/-3)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-6753
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+378500@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/register_accounting/wizard/wizard_register_import.py'
--- bin/addons/register_accounting/wizard/wizard_register_import.py 2019-10-30 16:33:21 +0000
+++ bin/addons/register_accounting/wizard/wizard_register_import.py 2020-02-04 10:20:33 +0000
@@ -471,7 +471,8 @@
471 if line[cols['third_party']]:471 if line[cols['third_party']]:
472 # Type Operational Advance ==> EMPLOYEE required472 # Type Operational Advance ==> EMPLOYEE required
473 if type_for_register == 'advance':473 if type_for_register == 'advance':
474 tp_ids = employee_obj.search(cr, uid, [('name', '=', line[cols['third_party']])], context=context)474 tp_ids = employee_obj.search(cr, uid, [('name', '=', line[cols['third_party']])],
475 order='active desc, id', limit=1, context=context)
475 partner_type = 'employee'476 partner_type = 'employee'
476 # Type Internal transfer ==> JOURNAL required477 # Type Internal transfer ==> JOURNAL required
477 elif type_for_register in ['transfer', 'transfer_same']:478 elif type_for_register in ['transfer', 'transfer_same']:
@@ -497,7 +498,8 @@
497 if tp_ids:498 if tp_ids:
498 partner_type = 'partner'499 partner_type = 'partner'
499 else:500 else:
500 tp_ids = employee_obj.search(cr, uid, [('name', '=', line[cols['third_party']])], context=context)501 tp_ids = employee_obj.search(cr, uid, [('name', '=', line[cols['third_party']])],
502 order='active desc, id', limit=1, context=context)
501 partner_type = 'employee'503 partner_type = 'employee'
502 # Any type for Spec. Treatment listed above ==> EMPTY partner NOT allowed504 # Any type for Spec. Treatment listed above ==> EMPTY partner NOT allowed
503 if not tp_ids:505 if not tp_ids:
@@ -512,7 +514,8 @@
512 tp_ids = partner_obj.search(cr, uid, [('name', '=', line[cols['third_party']])], context=context)514 tp_ids = partner_obj.search(cr, uid, [('name', '=', line[cols['third_party']])], context=context)
513 partner_type = 'partner'515 partner_type = 'partner'
514 if not tp_ids:516 if not tp_ids:
515 tp_ids = employee_obj.search(cr, uid, [('name', '=', line[cols['third_party']])], context=context)517 tp_ids = employee_obj.search(cr, uid, [('name', '=', line[cols['third_party']])],
518 order='active desc, id', limit=1, context=context)
516 partner_type = 'employee'519 partner_type = 'employee'
517 if not tp_ids:520 if not tp_ids:
518 errors.append(_('Line %s. Third party not found: %s') % (current_line_num, line[cols['third_party']],))521 errors.append(_('Line %s. Third party not found: %s') % (current_line_num, line[cols['third_party']],))

Subscribers

People subscribed via source and target branches