Merge lp:~mallorymarcot/unifield-server/us-5090 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 5316
Proposed branch: lp:~mallorymarcot/unifield-server/us-5090
Merge into: lp:unifield-server
Diff against target: 34 lines (+13/-0)
2 files modified
bin/addons/msf_profile/i18n/fr_MF.po (+6/-0)
bin/addons/product_attributes/product_attributes.py (+7/-0)
To merge this branch: bzr merge lp:~mallorymarcot/unifield-server/us-5090
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+366472@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_profile/i18n/fr_MF.po'
2--- bin/addons/msf_profile/i18n/fr_MF.po 2019-04-08 09:30:07 +0000
3+++ bin/addons/msf_profile/i18n/fr_MF.po 2019-04-24 15:17:54 +0000
4@@ -102489,6 +102489,12 @@
5 msgid " goods products, please refer to the appropriate procedures"
6 msgstr " veuillez vous référer aux procédures adéquates."
7
8+#. module: product_attributes
9+#: code:addons/product_attributes/product_attributes.py:1238
10+#, python-format
11+msgid "Batch and Expiry attributes do not conform"
12+msgstr "Le numéro de lot et la date d'expiration ne sont pas conformes"
13+
14 #. module: specific_rules
15 #: view:export.report.stock.inventory:0
16 msgid "Generate report (product list)"
17
18=== modified file 'bin/addons/product_attributes/product_attributes.py'
19--- bin/addons/product_attributes/product_attributes.py 2019-01-30 10:46:44 +0000
20+++ bin/addons/product_attributes/product_attributes.py 2019-04-24 15:17:54 +0000
21@@ -1219,6 +1219,13 @@
22 'res_id': res_id,
23 }, context=context)
24
25+ if 'batch_management' in vals and 'perishable' in vals and context.get('from_import_menu'):
26+ if vals['batch_management'] and not vals['perishable']:
27+ raise osv.except_osv(
28+ _('Error'),
29+ _('Batch and Expiry attributes do not conform')
30+ )
31+
32 if 'default_code' in vals:
33 if not context.get('sync_update_execution'):
34 vals['default_code'] = vals['default_code'].strip()

Subscribers

People subscribed via source and target branches