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

Proposed by jftempo
Status: Merged
Merged at revision: 5667
Proposed branch: lp:~julie-w/unifield-server/US-6088
Merge into: lp:unifield-server
Diff against target: 29 lines (+11/-0)
2 files modified
bin/addons/msf_doc_import/account.py (+5/-0)
bin/addons/msf_profile/i18n/fr_MF.po (+6/-0)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-6088
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+380506@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/msf_doc_import/account.py'
2--- bin/addons/msf_doc_import/account.py 2019-12-12 15:19:07 +0000
3+++ bin/addons/msf_doc_import/account.py 2020-03-10 17:00:58 +0000
4@@ -344,6 +344,11 @@
5 errors.append(_('Line %s. Period is missing.') % (current_line_num))
6 continue
7 period_name = line[cols['Period']]
8+ if not isinstance(period_name, basestring):
9+ period_name = '%s' % period_name
10+ if not period_obj.search_exist(cr, uid, [('name', '=', period_name)], context=context):
11+ errors.append(_("Line %s. The period %s doesn't exist.") % (current_line_num, period_name,))
12+ continue
13 if not (booking_curr, period_name, r_document_date) in money:
14 money[(booking_curr, period_name, r_document_date)] = {}
15 if not 'debit' in money[(booking_curr, period_name, r_document_date)]:
16
17=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
18--- bin/addons/msf_profile/i18n/fr_MF.po 2020-02-25 13:42:01 +0000
19+++ bin/addons/msf_profile/i18n/fr_MF.po 2020-03-10 17:00:58 +0000
20@@ -108985,3 +108985,9 @@
21 #: field:replenishment.segment.line,list_fmc:0
22 msgid "more FMC"
23 msgstr "plus de PCM"
24+
25+#. module: msf_doc_import
26+#: code:addons/msf_doc_import/account.py:350
27+#, python-format
28+msgid "Line %s. The period %s doesn't exist."
29+msgstr "Ligne %s. La période %s n'existe pas."

Subscribers

People subscribed via source and target branches