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

Proposed by jftempo
Status: Merged
Merged at revision: 5198
Proposed branch: lp:~julie-w/unifield-server/US-5339
Merge into: lp:unifield-server
Diff against target: 72 lines (+13/-20)
2 files modified
bin/addons/msf_homere_interface/wizard/hr_payroll_import.py (+7/-14)
bin/addons/msf_profile/i18n/fr_MF.po (+6/-6)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-5339
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+360159@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_homere_interface/wizard/hr_payroll_import.py'
--- bin/addons/msf_homere_interface/wizard/hr_payroll_import.py 2018-01-11 16:01:54 +0000
+++ bin/addons/msf_homere_interface/wizard/hr_payroll_import.py 2018-12-06 08:13:38 +0000
@@ -38,7 +38,6 @@
38UF_SIDE_ROUNDING_LINE = {38UF_SIDE_ROUNDING_LINE = {
39 'account_code': '67000',39 'account_code': '67000',
40 'name': _('UF Payroll rounding'),40 'name': _('UF Payroll rounding'),
41 'destination_code': 'SUP',
4241
43 'eur_gap_limit': 1., # EUR amount gap limit to not reach42 'eur_gap_limit': 1., # EUR amount gap limit to not reach
4443
@@ -422,18 +421,12 @@
422 if not account_ids:421 if not account_ids:
423 err_account(account_code=account_code)422 err_account(account_code=account_code)
424423
425 # get default AD values424 # get the default Destination to use
426 # destination: from code425 acc_fields = ['default_destination_id', 'code', 'name']
427 dest_ids = self.pool.get('account.analytic.account').search(cr, uid, [426 acc = self.pool.get('account.account').browse(cr, uid, account_ids[0], fields_to_fetch=acc_fields, context=context)
428 ('category', '=', 'DEST'),427 if not acc.default_destination_id:
429 ('code', '=', UF_SIDE_ROUNDING_LINE['destination_code']),428 raise osv.except_osv(_('Error'), _('The account %s - %s has no Default Destination.') % (acc.code, acc.name))
430 ], context=context)429 dest = acc.default_destination_id
431 if not dest_ids:
432 msg = _("%s: No default destination found '%s'") % (
433 UF_SIDE_ROUNDING_LINE['name'],
434 UF_SIDE_ROUNDING_LINE['destination_code'],
435 )
436 raise osv.except_osv(_('Error'), msg)
437430
438 # cost center: 1st FX gain loss of instance431 # cost center: 1st FX gain loss of instance
439 instance = self.pool.get('res.users').browse(cr, uid, [uid],432 instance = self.pool.get('res.users').browse(cr, uid, [uid],
@@ -466,7 +459,7 @@
466459
467 # AD460 # AD
468 'cost_center_id': cc_ids[0],461 'cost_center_id': cc_ids[0],
469 'destination_id': dest_ids[0],462 'destination_id': dest.id,
470 #'funding_pool_id': # default is PF463 #'funding_pool_id': # default is PF
471 }, context=context)464 }, context=context)
472465
473466
=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
--- bin/addons/msf_profile/i18n/fr_MF.po 2018-11-30 14:47:43 +0000
+++ bin/addons/msf_profile/i18n/fr_MF.po 2018-12-06 08:13:38 +0000
@@ -46907,12 +46907,6 @@
46907msgid "Gujarati / ગુજરાતી"46907msgid "Gujarati / ગુજરાતી"
46908msgstr "Gujarati / ગુજરાતી"46908msgstr "Gujarati / ગુજરાતી"
4690946909
46910#. module: msf_homere_interface
46911#: code:addons/msf_homere_interface/wizard/hr_payroll_import.py:432
46912#, python-format
46913msgid "%s: No default destination found '%s'"
46914msgstr "%s: No default destination found '%s'"
46915
46916#. module: msf_partner46910#. module: msf_partner
46917#: code:addons/msf_partner/partner.py:57346911#: code:addons/msf_partner/partner.py:573
46918#, python-format46912#, python-format
@@ -103778,3 +103772,9 @@
103778#, python-format103772#, python-format
103779msgid "Source Location %s is inactive"103773msgid "Source Location %s is inactive"
103780msgstr "La Zone Source %s est inactive"103774msgstr "La Zone Source %s est inactive"
103775
103776#. module: msf_homere_interface
103777#: code:addons/msf_homere_interface/wizard/hr_payroll_import.py:428
103778#, python-format
103779msgid "The account %s - %s has no Default Destination."
103780msgstr "Le compte %s - %s n'a pas de Destination par défaut."

Subscribers

People subscribed via source and target branches