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

Proposed by jftempo
Status: Merged
Merged at revision: 4339
Proposed branch: lp:~julie-w/unifield-server/US-2581
Merge into: lp:unifield-server
Diff against target: 46 lines (+16/-3) (has conflicts)
2 files modified
bin/addons/account_override/invoice.py (+8/-3)
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-2581
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+323023@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/invoice.py'
2--- bin/addons/account_override/invoice.py 2017-02-24 13:33:33 +0000
3+++ bin/addons/account_override/invoice.py 2017-04-24 09:34:46 +0000
4@@ -378,11 +378,16 @@
5 context = {}
6 if isinstance(ids, (int, long)):
7 ids = [ids]
8- for inv in self.read(cr, uid, ids, ['purchase_ids', 'type', 'is_inkind_donation', 'is_debit_note']):
9+ for inv in self.read(cr, uid, ids, ['purchase_ids', 'type', 'is_inkind_donation', 'is_debit_note', 'is_intermission', 'state']):
10 if inv.get('type', '') == 'in_invoice' and not inv.get('is_inkind_donation', False) and not inv.get('is_debit_note', False):
11 if inv.get('purchase_ids', False):
12- # US-1702 Do not allow at all the deletion of SI coming from PO
13- raise osv.except_osv(_('Warning'), _('You cannot cancel or delete a supplier invoice linked to a PO.'))
14+ if inv.get('is_intermission'):
15+ if inv.get('state', '') != 'draft': # only draft IVIs can be deleted
16+ raise osv.except_osv(_('Warning'),
17+ _('Intermission Vouchers linked to a PO can be deleted only in Draft state.'))
18+ else:
19+ # US-1702 Do not allow at all the deletion of SI coming from PO
20+ raise osv.except_osv(_('Warning'), _('You cannot cancel or delete a supplier invoice linked to a PO.'))
21 return True
22
23 def _hook_period_id(self, cr, uid, inv, context=None):
24
25=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
26--- bin/addons/msf_profile/i18n/fr_MF.po 2017-04-19 14:11:12 +0000
27+++ bin/addons/msf_profile/i18n/fr_MF.po 2017-04-24 09:34:46 +0000
28@@ -98225,6 +98225,7 @@
29 msgid "Article must be used only in a properly designed programme, need a more detailed description."
30 msgstr "L'article doit être uniquement utilisé dans un programme correctement construit, à besoin d'une description plus détaillée."
31
32+<<<<<<< TREE
33 #. module: sync_client
34 #: view:sync.client.update_received:0
35 msgid "Updates Received"
36@@ -98376,3 +98377,10 @@
37 #, python-format
38 msgid "The date format was not correct. The expected date should be > 01/01/1900 in this format DD/MM/YYYY."
39 msgstr "Format de date incorrect. La date attendue doit être > 01/01/1900 dans ce format JJ/MM/AAAA."
40+=======
41+#. module: account_override
42+#: code:addons/account_override/invoice.py:387
43+#, python-format
44+msgid "Intermission Vouchers linked to a PO can be deleted only in Draft state."
45+msgstr "Les Bons Intermission liés à un BC ne peuvent être supprimés qu'à l'état Brouillon."
46+>>>>>>> MERGE-SOURCE

Subscribers

People subscribed via source and target branches