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

Proposed by jftempo
Status: Merged
Merged at revision: 5733
Proposed branch: lp:~julie-w/unifield-server/US-7561
Merge into: lp:unifield-server
Diff against target: 27 lines (+9/-0)
2 files modified
bin/addons/msf_profile/i18n/fr_MF.po (+5/-0)
bin/addons/register_accounting/wizard/wizard_register_import.py (+4/-0)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-7561
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+385990@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
1=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
2--- bin/addons/msf_profile/i18n/fr_MF.po 2020-06-02 14:41:41 +0000
3+++ bin/addons/msf_profile/i18n/fr_MF.po 2020-06-18 09:49:33 +0000
4@@ -110325,3 +110325,8 @@
5 msgid "Handling Lead Time (days) :"
6 msgstr "Délai de traitement (jours) :"
7
8+#. module: register_accounting
9+#: code:addons/register_accounting/wizard/wizard_register_import.py:495
10+#, python-format
11+msgid "Line %s. The journal third party used for the internal transfer must be different from the journal of the register."
12+msgstr "Ligne %s. Le tiers de type journal utilisé pour le transfert interne doit être différent du journal du registre."
13
14=== modified file 'bin/addons/register_accounting/wizard/wizard_register_import.py'
15--- bin/addons/register_accounting/wizard/wizard_register_import.py 2020-02-27 16:28:21 +0000
16+++ bin/addons/register_accounting/wizard/wizard_register_import.py 2020-06-18 09:49:33 +0000
17@@ -491,6 +491,10 @@
18 if tp_journal.currency.id != register_currency:
19 errors.append(_('Line %s. A Transfer Same Journal must have the same currency as the register.') % (current_line_num,))
20 continue
21+ if tp_journal.id == wiz.register_id.journal_id.id:
22+ errors.append(_('Line %s. The journal third party used for the internal transfer '
23+ 'must be different from the journal of the register.') % (current_line_num,))
24+ continue
25 # Type DP ==> PARTNER required
26 elif type_for_register == 'down_payment':
27 tp_ids = partner_obj.search(cr, uid, [('name', '=', line[cols['third_party']])], context=context)

Subscribers

People subscribed via source and target branches