Merge lp:~unifield-team/unifield-server/us-1721 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4147
Proposed branch: lp:~unifield-team/unifield-server/us-1721
Merge into: lp:unifield-server
Diff against target: 110 lines (+28/-0) (has conflicts)
4 files modified
bin/addons/msf_profile/i18n/fr_MF.po (+15/-0)
bin/addons/product/product.py (+2/-0)
bin/addons/product_attributes/product_attributes.py (+7/-0)
bin/addons/product_attributes/product_attributes_view.xml (+4/-0)
Text conflict in bin/addons/msf_profile/i18n/fr_MF.po
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-1721
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+314809@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
=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
--- bin/addons/msf_profile/i18n/fr_MF.po 2017-01-02 08:52:42 +0000
+++ bin/addons/msf_profile/i18n/fr_MF.po 2017-01-16 10:08:15 +0000
@@ -75758,6 +75758,7 @@
75758msgid "There is no stopped products to report"75758msgid "There is no stopped products to report"
75759msgstr "Il n'y a aucun produit stoppé à afficher"75759msgstr "Il n'y a aucun produit stoppé à afficher"
7576075760
75761<<<<<<< TREE
75761#. module: msf_doc_import75762#. module: msf_doc_import
75762#: code:addons/msf_doc_import/check_line.py:62675763#: code:addons/msf_doc_import/check_line.py:626
75763#: code:addons/msf_doc_import/check_line.py:62875764#: code:addons/msf_doc_import/check_line.py:628
@@ -75854,3 +75855,17 @@
75854#, python-format75855#, python-format
75855msgid "Wrong total: %.2f, instead of: %.2f"75856msgid "Wrong total: %.2f, instead of: %.2f"
75856msgstr "Total erroné : %.2f, au lieu de : %.2f"75857msgstr "Total erroné : %.2f, au lieu de : %.2f"
75858=======
75859#. module: product_attributes
75860#: code:addons/product_attributes/product_attributes.py:918
75861#: field:product.product,uf_write_date:0
75862#, python-format
75863msgid "Write date"
75864msgstr "Date de modification"
75865
75866#. module: product_attributes
75867#: code:addons/product_attributes/product_attributes.py:919
75868#: field:product.product,uf_create_date:0
75869#, python-format
75870msgid "Creation date"
75871msgstr "Date de création">>>>>>> MERGE-SOURCE
7585775872
=== modified file 'bin/addons/product/product.py'
--- bin/addons/product/product.py 2016-07-05 14:35:38 +0000
+++ bin/addons/product/product.py 2017-01-16 10:08:15 +0000
@@ -497,6 +497,7 @@
497 (data['name'] or '') + (data['variants'] and (' - '+data['variants']) or '')497 (data['name'] or '') + (data['variants'] and (' - '+data['variants']) or '')
498 return res498 return res
499499
500
500 _defaults = {501 _defaults = {
501 'active': lambda *a: 1,502 'active': lambda *a: 1,
502 'price_extra': lambda *a: 0.0,503 'price_extra': lambda *a: 0.0,
@@ -528,6 +529,7 @@
528 'pricelist_id': fields.dummy(string='Pricelist', relation='product.pricelist', type='many2one'),529 'pricelist_id': fields.dummy(string='Pricelist', relation='product.pricelist', type='many2one'),
529 'name_template': fields.related('product_tmpl_id', 'name', string="Name", type='char', size=128, store=True, write_relate=False),530 'name_template': fields.related('product_tmpl_id', 'name', string="Name", type='char', size=128, store=True, write_relate=False),
530 }531 }
532
531 533
532 def unlink(self, cr, uid, ids, context=None):534 def unlink(self, cr, uid, ids, context=None):
533 unlink_ids = []535 unlink_ids = []
534536
=== modified file 'bin/addons/product_attributes/product_attributes.py'
--- bin/addons/product_attributes/product_attributes.py 2016-11-21 14:21:55 +0000
+++ bin/addons/product_attributes/product_attributes.py 2017-01-16 10:08:15 +0000
@@ -26,6 +26,7 @@
26import logging26import logging
27import tools27import tools
28from os import path28from os import path
29from datetime import datetime
2930
30class product_section_code(osv.osv):31class product_section_code(osv.osv):
31 _name = "product.section.code"32 _name = "product.section.code"
@@ -914,6 +915,8 @@
914 'soq_volume': fields.float(digits=(16,5), string='SoQ Volume'),915 'soq_volume': fields.float(digits=(16,5), string='SoQ Volume'),
915 'soq_quantity': fields.float(digits=(16,2), string='SoQ Quantity'),916 'soq_quantity': fields.float(digits=(16,2), string='SoQ Quantity'),
916 'vat_ok': fields.function(_get_vat_ok, method=True, type='boolean', string='VAT OK', store=False, readonly=True),917 'vat_ok': fields.function(_get_vat_ok, method=True, type='boolean', string='VAT OK', store=False, readonly=True),
918 'uf_write_date': fields.datetime(_('Write date')),
919 'uf_create_date': fields.datetime(_('Creation date')),
917 }920 }
918921
919 # US-43: Remove the default_get that set value on Product Creator field. By removing the required = True value922 # US-43: Remove the default_get that set value on Product Creator field. By removing the required = True value
@@ -1265,6 +1268,8 @@
1265 if f in vals and not vals.get(f):1268 if f in vals and not vals.get(f):
1266 vals[f] = 'no'1269 vals[f] = 'no'
12671270
1271 vals['uf_create_date'] = vals.get('uf_create_date', datetime.now())
1272
1268 res = super(product_attributes, self).create(cr, uid, vals,1273 res = super(product_attributes, self).create(cr, uid, vals,
1269 context=context)1274 context=context)
12701275
@@ -1371,6 +1376,8 @@
1371 if f in vals and not vals.get(f):1376 if f in vals and not vals.get(f):
1372 vals[f] = 'no'1377 vals[f] = 'no'
13731378
1379 vals['uf_write_date'] = vals.get('uf_write_date', datetime.now())
1380
1374 res = super(product_attributes, self).write(cr, uid, ids, vals, context=context)1381 res = super(product_attributes, self).write(cr, uid, ids, vals, context=context)
13751382
1376 if product_uom_categ:1383 if product_uom_categ:
13771384
=== modified file 'bin/addons/product_attributes/product_attributes_view.xml'
--- bin/addons/product_attributes/product_attributes_view.xml 2016-09-28 08:24:48 +0000
+++ bin/addons/product_attributes/product_attributes_view.xml 2017-01-16 10:08:15 +0000
@@ -25,6 +25,8 @@
25 <field name="standard_price" invisible="context.get('pricelist', False)"/>25 <field name="standard_price" invisible="context.get('pricelist', False)"/>
26 <field name="state" />26 <field name="state" />
27 <field name="international_status"/>27 <field name="international_status"/>
28 <field name="uf_create_date" string="Creation"/>
29 <field name="uf_write_date" string="Modification"/>
28 </tree>30 </tree>
29 </xpath>31 </xpath>
30 </data>32 </data>
@@ -452,6 +454,8 @@
452 <field name="default_code" string="Code"/>454 <field name="default_code" string="Code"/>
453 <field name="name" string="Description"/>455 <field name="name" string="Description"/>
454 <field name="list_ids" widget="many2one" context="{'list': self}" />456 <field name="list_ids" widget="many2one" context="{'list': self}" />
457 <field name="uf_create_date" string="Creation" widget="date" />
458 <field name="uf_write_date" string="Modification" widget="date" />
455 <newline/>459 <newline/>
456 <filter string="Single Item" icon="terp-accessories-archiver" domain="[('subtype','=','single')]"/>460 <filter string="Single Item" icon="terp-accessories-archiver" domain="[('subtype','=','single')]"/>
457 <filter string="Kit/Module" icon="terp-accessories-archiver" domain="[('subtype','=','kit')]"/>461 <filter string="Kit/Module" icon="terp-accessories-archiver" domain="[('subtype','=','kit')]"/>

Subscribers

People subscribed via source and target branches

to all changes: