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

Proposed by jftempo
Status: Merged
Merged at revision: 4848
Proposed branch: lp:~julie-w/unifield-server/US-4266
Merge into: lp:unifield-server
Diff against target: 47 lines (+14/-1) (has conflicts)
2 files modified
bin/addons/account_corrections/account_move_line.py (+5/-1)
bin/addons/msf_profile/i18n/fr_MF.po (+9/-0)
Text conflict in bin/addons/msf_profile/i18n/fr_MF.po
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-4266
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+342659@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_corrections/account_move_line.py'
2--- bin/addons/account_corrections/account_move_line.py 2018-03-07 15:55:17 +0000
3+++ bin/addons/account_corrections/account_move_line.py 2018-04-04 15:24:38 +0000
4@@ -915,7 +915,7 @@
5 def set_as_corrected(self, cr, uid, ji_ids, manual=True, context=None):
6 """
7 Sets the JIs and their related AJIs as Corrected according to the following rules:
8- - if one of the JIs or AJIs has already been corrected it raises an error
9+ - if one of the JIs or AJIs has already been corrected or if the account can't be corrected it raises an error
10 - if manual = True, the Correction will be set as Manual (= the user will be able to reverse it manually)
11 """
12 if context is None:
13@@ -924,6 +924,10 @@
14 ji_ids = [ji_ids]
15 aal_obj = self.pool.get('account.analytic.line')
16 for ji in self.browse(cr, uid, ji_ids, fields_to_fetch=['corrected', 'move_id'], context=context):
17+ # check that the account can be corrected
18+ if ji.account_id.is_not_hq_correctible:
19+ raise osv.except_osv(_('Error'), _('The account "%s - %s" is set as "Prevent correction on '
20+ 'account codes".') % (ji.account_id.code, ji.account_id.name))
21 # check that the JI isn't already corrected
22 if ji.corrected:
23 raise osv.except_osv(_('Error'), _('The entry %s has already been corrected.') % ji.move_id.name)
24
25=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
26--- bin/addons/msf_profile/i18n/fr_MF.po 2018-03-20 10:40:57 +0000
27+++ bin/addons/msf_profile/i18n/fr_MF.po 2018-04-04 15:24:38 +0000
28@@ -107492,6 +107492,7 @@
29 #, python-format
30 msgid "The account %s - %s cannot be used as Account Payable."
31 msgstr "Le compte %s - %s ne peut pas être utilisé comme Compte Fournisseur."
32+<<<<<<< TREE
33
34 #. module: account_mcdb
35 #: field:account.mcdb,display_mcdb_load_button:0
36@@ -107519,3 +107520,11 @@
37 #, python-format
38 msgid "You have to load the template first."
39 msgstr "Vous devez d'abord charger le modèle."
40+=======
41+
42+#. module: account_corrections
43+#: code:addons/account_corrections/account_move_line.py:929
44+#, python-format
45+msgid "The account \"%s - %s\" is set as \"Prevent correction on account codes\"."
46+msgstr "Le compte \"%s - %s\" est défini comme \"Empêcher toutes corrections sur ce code comptable\"."
47+>>>>>>> MERGE-SOURCE

Subscribers

People subscribed via source and target branches