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

Proposed by jftempo
Status: Merged
Merged at revision: 4124
Proposed branch: lp:~julie-w/unifield-server/US-1822
Merge into: lp:unifield-server
Diff against target: 41 lines (+15/-1) (has conflicts)
2 files modified
bin/addons/account_override/account_move_line.py (+7/-1)
bin/addons/msf_profile/i18n/fr_MF.po (+8/-0)
Text conflict in bin/addons/msf_profile/i18n/fr_MF.po
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-1822
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+313324@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_move_line.py'
2--- bin/addons/account_override/account_move_line.py 2016-11-24 15:02:51 +0000
3+++ bin/addons/account_override/account_move_line.py 2016-12-15 08:33:57 +0000
4@@ -484,7 +484,13 @@
5 context = {}
6 if context.get('from_web_menu', False):
7 for ml in self.browse(cr, uid, ids):
8- if ml.move_id and ml.move_id.status == 'sys':
9+ # US-1822 When unreconciling entries, to check if the write can be done use the reconciliation status
10+ # (manual / auto) instead of the JI one
11+ if 'unreconcile_date' in vals and vals['unreconcile_date']:
12+ reconciliation = ml.reconcile_id or ml.reconcile_partial_id or False
13+ if reconciliation and reconciliation.type == 'auto':
14+ raise osv.except_osv(_('Warning'), _('Only manually reconciled entries can be unreconciled.'))
15+ elif ml.move_id and ml.move_id.status == 'sys':
16 raise osv.except_osv(_('Warning'), _('You cannot change Journal Items that comes from the system!'))
17 # Check date validity with period
18 self._check_date_validity(cr, uid, ids, vals)
19
20=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
21--- bin/addons/msf_profile/i18n/fr_MF.po 2016-12-07 06:47:50 +0000
22+++ bin/addons/msf_profile/i18n/fr_MF.po 2016-12-15 08:33:57 +0000
23@@ -75713,6 +75713,7 @@
24 msgid "There is no stopped products to report"
25 msgstr "Il n'y a aucun produit stoppé à afficher"
26
27+<<<<<<< TREE
28 #. module: msf_doc_import
29 #: code:addons/msf_doc_import/check_line.py:626
30 #: code:addons/msf_doc_import/check_line.py:628
31@@ -75769,3 +75770,10 @@
32 msgid "Partner Created on this instance"
33 msgstr "Partenaire créé sur cette instance"
34
35+=======
36+#. module: account_override
37+#: code:addons/account_override/account_move_line.py:491
38+#, python-format
39+msgid "Only manually reconciled entries can be unreconciled."
40+msgstr "Seules les entrées lettrées manuellement peuvent être délettrées."
41+>>>>>>> MERGE-SOURCE

Subscribers

People subscribed via source and target branches