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

Proposed by jftempo
Status: Merged
Merged at revision: 5084
Proposed branch: lp:~julie-w/unifield-server/US-4710
Merge into: lp:unifield-server
Diff against target: 89 lines (+2/-34)
3 files modified
bin/addons/account_corrections/account_move_line.py (+1/-1)
bin/addons/msf_profile/i18n/fr_MF.po (+0/-12)
bin/addons/msf_tools/msf_tools.py (+1/-21)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-4710
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+354772@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-06-15 09:18:20 +0000
3+++ bin/addons/account_corrections/account_move_line.py 2018-09-12 12:20:35 +0000
4@@ -930,7 +930,7 @@
5 if isinstance(ji_ids, (int, long)):
6 ji_ids = [ji_ids]
7 aal_obj = self.pool.get('account.analytic.line')
8- for ji in self.browse(cr, uid, ji_ids, fields_to_fetch=['corrected', 'move_id'], context=context):
9+ for ji in self.browse(cr, uid, ji_ids, fields_to_fetch=['corrected', 'move_id', 'account_id'], context=context):
10 # check that the account can be corrected
11 if ji.account_id.is_not_hq_correctible:
12 raise osv.except_osv(_('Error'), _('The account "%s - %s" is set as "Prevent correction on '
13
14=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
15--- bin/addons/msf_profile/i18n/fr_MF.po 2018-09-03 09:00:00 +0000
16+++ bin/addons/msf_profile/i18n/fr_MF.po 2018-09-12 12:20:35 +0000
17@@ -34874,12 +34874,6 @@
18 msgid "Only draft picking tickets can be deleted."
19 msgstr "Seuls les brouillons de bons de picking peuvent ĂȘtre supprimĂ©s"
20
21-#. module: msf_tools
22-#: code:addons/msf_tools/msf_tools.py:886
23-#, python-format
24-msgid "Document date should be in posting date FY"
25-msgstr "Document date should be in posting date FY"
26-
27 #. module: account
28 #: field:account.account.type,name:0
29 msgid "Acc. Type Name"
30@@ -39566,12 +39560,6 @@
31 msgid "Africa/Kinshasa"
32 msgstr "Africa/Kinshasa"
33
34-#. module: msf_tools
35-#: code:addons/msf_tools/msf_tools.py:883
36-#, python-format
37-msgid "Document date (%s) should be in posting date FY"
38-msgstr "Document date (%s) should be in posting date FY"
39-
40 #. modules: account_override, order_line_number, register_accounting
41 #: field:account.invoice,sequence_id:0
42 #: field:purchase.order,sequence_id:0
43
44=== modified file 'bin/addons/msf_tools/msf_tools.py'
45--- bin/addons/msf_tools/msf_tools.py 2017-10-02 15:51:29 +0000
46+++ bin/addons/msf_tools/msf_tools.py 2018-09-12 12:20:35 +0000
47@@ -841,12 +841,7 @@
48 def check_document_date(self, cr, uid, document_date, posting_date,
49 show_date=False, custom_msg=False, context=None):
50 """
51- US-192 document date check rules
52- http://jira.unifield.org/browse/US-192?focusedCommentId=38911&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-38911
53-
54- Document date should be included within the fiscal year of
55- the posting date it is tied with.
56- 01/01/FY <= document date <= 31/12/FY
57+ Checks that posting date >= document date
58
59 :type document_date: orm date
60 :type posting_date: orm date
61@@ -859,8 +854,6 @@
62 if custom_msg:
63 show_date = False
64
65- # initial check that not (posting_date < document_date)
66- # like was until 1.0-5
67 if posting_date < document_date:
68 if custom_msg:
69 msg = custom_msg # optional custom message
70@@ -873,19 +866,6 @@
71 'Posting date should be later than Document Date.')
72 raise osv.except_osv(_('Error'), msg)
73
74- # US-192 check
75- # 01/01/FY <= document date <= 31/12/FY
76- posting_date_obj = self.pool.get('date.tools').orm2date(posting_date)
77- check_range_start = self.get_orm_date(1, 1, year=posting_date_obj.year)
78- check_range_end = posting_date
79- if not (check_range_start <= document_date <= check_range_end):
80- if show_date:
81- msg = _('Document date (%s) should be in posting date FY') % (
82- document_date, )
83- else:
84- msg = _('Document date should be in posting date FY')
85- raise osv.except_osv(_('Error'), msg)
86-
87 def truncate_amount(self, amount, digits):
88 stepper = pow(10.0, digits)
89 return math.trunc(stepper * amount) / stepper

Subscribers

People subscribed via source and target branches