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

Proposed by jftempo
Status: Merged
Merged at revision: 5321
Proposed branch: lp:~julie-w/unifield-server/US-5214
Merge into: lp:unifield-server
Diff against target: 36 lines (+15/-1)
2 files modified
bin/addons/account_override/account.py (+7/-1)
bin/addons/msf_profile/i18n/fr_MF.po (+8/-0)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-5214
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+366904@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/account_override/account.py'
2--- bin/addons/account_override/account.py 2019-02-06 09:25:31 +0000
3+++ bin/addons/account_override/account.py 2019-05-03 09:52:21 +0000
4@@ -1173,9 +1173,15 @@
5 _('Account: %s - %s. The journal used for the internal transfer must be different from the '
6 'Journal Entry Journal.') % (ml.account_id.code, ml.account_id.name))
7 # Only Donation accounts are allowed with an ODX journal
8- if m.journal_id.type == 'extra' and ml.account_id.type_for_register != 'donation':
9+ if m.journal_id.type == 'extra' and type_for_reg != 'donation':
10 raise osv.except_osv(_('Warning'), _('The account %s - %s is not compatible with the '
11 'journal %s.') % (ml.account_id.code, ml.account_id.name, m.journal_id.code))
12+ # Only Internal transfers are allowed with liquidity journals in manual JE
13+ if m.journal_id.type in ('bank', 'cash', 'cheque') and type_for_reg not in ('transfer', 'transfer_same'):
14+ raise osv.except_osv(_('Warning'), _('The account %s - %s is not allowed.\n'
15+ 'Only internal transfers (in the same currency or not) '
16+ 'are allowed in manual journal entries on a liquidity journal.') %
17+ (ml.account_id.code, ml.account_id.name))
18 if not prev_currency_id:
19 prev_currency_id = curr_aml.id
20 continue
21
22=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
23--- bin/addons/msf_profile/i18n/fr_MF.po 2019-04-08 09:30:07 +0000
24+++ bin/addons/msf_profile/i18n/fr_MF.po 2019-05-03 09:52:21 +0000
25@@ -105388,3 +105388,11 @@
26 #, python-format
27 msgid "Product %s, BN: %s not enough stock to process quantity %s %s (stock level: %s)"
28 msgstr "Produit %s, Lot: %s, pas assez de stock pour traiter la qantité %s %s (quantité en stock: %s)"
29+
30+#. module: account_override
31+#: code:addons/account_override/account.py:1181
32+#, python-format
33+msgid "The account %s - %s is not allowed.\n"
34+"Only internal transfers (in the same currency or not) are allowed in manual journal entries on a liquidity journal."
35+msgstr "Le compte %s - %s n'est pas autorisé.\n"
36+"Seuls les transferts internes (dans la même devise ou non) sont autorisés dans les écritures comptables manuelles sur un journal de trésorerie."

Subscribers

People subscribed via source and target branches