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
1=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
2--- bin/addons/msf_profile/i18n/fr_MF.po 2017-01-02 08:52:42 +0000
3+++ bin/addons/msf_profile/i18n/fr_MF.po 2017-01-16 10:08:15 +0000
4@@ -75758,6 +75758,7 @@
5 msgid "There is no stopped products to report"
6 msgstr "Il n'y a aucun produit stoppé à afficher"
7
8+<<<<<<< TREE
9 #. module: msf_doc_import
10 #: code:addons/msf_doc_import/check_line.py:626
11 #: code:addons/msf_doc_import/check_line.py:628
12@@ -75854,3 +75855,17 @@
13 #, python-format
14 msgid "Wrong total: %.2f, instead of: %.2f"
15 msgstr "Total erroné : %.2f, au lieu de : %.2f"
16+=======
17+#. module: product_attributes
18+#: code:addons/product_attributes/product_attributes.py:918
19+#: field:product.product,uf_write_date:0
20+#, python-format
21+msgid "Write date"
22+msgstr "Date de modification"
23+
24+#. module: product_attributes
25+#: code:addons/product_attributes/product_attributes.py:919
26+#: field:product.product,uf_create_date:0
27+#, python-format
28+msgid "Creation date"
29+msgstr "Date de création">>>>>>> MERGE-SOURCE
30
31=== modified file 'bin/addons/product/product.py'
32--- bin/addons/product/product.py 2016-07-05 14:35:38 +0000
33+++ bin/addons/product/product.py 2017-01-16 10:08:15 +0000
34@@ -497,6 +497,7 @@
35 (data['name'] or '') + (data['variants'] and (' - '+data['variants']) or '')
36 return res
37
38+
39 _defaults = {
40 'active': lambda *a: 1,
41 'price_extra': lambda *a: 0.0,
42@@ -528,6 +529,7 @@
43 'pricelist_id': fields.dummy(string='Pricelist', relation='product.pricelist', type='many2one'),
44 'name_template': fields.related('product_tmpl_id', 'name', string="Name", type='char', size=128, store=True, write_relate=False),
45 }
46+
47
48 def unlink(self, cr, uid, ids, context=None):
49 unlink_ids = []
50
51=== modified file 'bin/addons/product_attributes/product_attributes.py'
52--- bin/addons/product_attributes/product_attributes.py 2016-11-21 14:21:55 +0000
53+++ bin/addons/product_attributes/product_attributes.py 2017-01-16 10:08:15 +0000
54@@ -26,6 +26,7 @@
55 import logging
56 import tools
57 from os import path
58+from datetime import datetime
59
60 class product_section_code(osv.osv):
61 _name = "product.section.code"
62@@ -914,6 +915,8 @@
63 'soq_volume': fields.float(digits=(16,5), string='SoQ Volume'),
64 'soq_quantity': fields.float(digits=(16,2), string='SoQ Quantity'),
65 'vat_ok': fields.function(_get_vat_ok, method=True, type='boolean', string='VAT OK', store=False, readonly=True),
66+ 'uf_write_date': fields.datetime(_('Write date')),
67+ 'uf_create_date': fields.datetime(_('Creation date')),
68 }
69
70 # US-43: Remove the default_get that set value on Product Creator field. By removing the required = True value
71@@ -1265,6 +1268,8 @@
72 if f in vals and not vals.get(f):
73 vals[f] = 'no'
74
75+ vals['uf_create_date'] = vals.get('uf_create_date', datetime.now())
76+
77 res = super(product_attributes, self).create(cr, uid, vals,
78 context=context)
79
80@@ -1371,6 +1376,8 @@
81 if f in vals and not vals.get(f):
82 vals[f] = 'no'
83
84+ vals['uf_write_date'] = vals.get('uf_write_date', datetime.now())
85+
86 res = super(product_attributes, self).write(cr, uid, ids, vals, context=context)
87
88 if product_uom_categ:
89
90=== modified file 'bin/addons/product_attributes/product_attributes_view.xml'
91--- bin/addons/product_attributes/product_attributes_view.xml 2016-09-28 08:24:48 +0000
92+++ bin/addons/product_attributes/product_attributes_view.xml 2017-01-16 10:08:15 +0000
93@@ -25,6 +25,8 @@
94 <field name="standard_price" invisible="context.get('pricelist', False)"/>
95 <field name="state" />
96 <field name="international_status"/>
97+ <field name="uf_create_date" string="Creation"/>
98+ <field name="uf_write_date" string="Modification"/>
99 </tree>
100 </xpath>
101 </data>
102@@ -452,6 +454,8 @@
103 <field name="default_code" string="Code"/>
104 <field name="name" string="Description"/>
105 <field name="list_ids" widget="many2one" context="{'list': self}" />
106+ <field name="uf_create_date" string="Creation" widget="date" />
107+ <field name="uf_write_date" string="Modification" widget="date" />
108 <newline/>
109 <filter string="Single Item" icon="terp-accessories-archiver" domain="[('subtype','=','single')]"/>
110 <filter string="Kit/Module" icon="terp-accessories-archiver" domain="[('subtype','=','kit')]"/>

Subscribers

People subscribed via source and target branches

to all changes: