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

Proposed by jftempo
Status: Needs review
Proposed branch: lp:~mallorymarcot/unifield-server/us-5108
Merge into: lp:unifield-server
Diff against target: 48 lines (+20/-0)
2 files modified
bin/addons/product_attributes/product_attributes.py (+13/-0)
bin/addons/product_attributes/product_attributes_view.xml (+7/-0)
To merge this branch: bzr merge lp:~mallorymarcot/unifield-server/us-5108
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+355430@code.launchpad.net
To post a comment you must log in.
4968. By Mallory MARCOT

US-5220 [IMP] GTIN size to 255

Unmerged revisions

4968. By Mallory MARCOT

US-5220 [IMP] GTIN size to 255

4967. By Mallory MARCOT

US-5108 [IMP] change Packaging field type from varchar to numeric

4966. By Mallory MARCOT

US-4715 [MERGE] with UF10.0 trunk

4965. By Mallory MARCOT

US-4715 [IMP] add new field 'SDE Proof Of Concept' on product.product

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/addons/product_attributes/product_attributes.py'
2--- bin/addons/product_attributes/product_attributes.py 2018-08-06 13:07:33 +0000
3+++ bin/addons/product_attributes/product_attributes.py 2018-10-11 10:12:13 +0000
4@@ -299,6 +299,18 @@
5 product_template()
6
7
8+class product_sde_proof_of_concept(osv.osv):
9+ _name = 'product.sde.proof.of.concept'
10+
11+ _columns = {
12+ 'product_id': fields.many2one('product.product', 'Product'),
13+ 'gtin': fields.char(size=255, string='GTIN'),
14+ 'packaging': fields.float(string='Packaging', digits=(16,2)),
15+ }
16+
17+product_sde_proof_of_concept()
18+
19+
20 class product_attributes(osv.osv):
21 _inherit = "product.product"
22
23@@ -906,6 +918,7 @@
24 'vat_ok': fields.function(_get_vat_ok, method=True, type='boolean', string='VAT OK', store=False, readonly=True),
25 'uf_write_date': fields.datetime(_('Write date')),
26 'uf_create_date': fields.datetime(_('Creation date')),
27+ 'sde_proof_of_concept': fields.one2many('product.sde.proof.of.concept', 'product_id', 'SDE Proof Of Concept'),
28 }
29
30 # US-43: Remove the default_get that set value on Product Creator field. By removing the required = True value
31
32=== modified file 'bin/addons/product_attributes/product_attributes_view.xml'
33--- bin/addons/product_attributes/product_attributes_view.xml 2018-02-28 10:36:26 +0000
34+++ bin/addons/product_attributes/product_attributes_view.xml 2018-10-11 10:12:13 +0000
35@@ -158,6 +158,13 @@
36 <field name="closed_article" colspan="2"/>
37 <field name="manufacturer_ref" attrs="{'invisible': [('closed_article', '=', 'no')]}" />
38 <field name="manufacturer_txt" attrs="{'invisible': [('closed_article', '=', 'no')]}" />
39+ <separator string="SDE Proof Of Concept" colspan="2"/>
40+ <field name="sde_proof_of_concept" nolabel="1" mode="tree" colspan="2">
41+ <tree editable="top">
42+ <field name="gtin" />
43+ <field name="packaging" />
44+ </tree>
45+ </field>
46 </group>
47 <group colspan="2" col="2">
48 <separator string="Form" colspan="2" />

Subscribers

People subscribed via source and target branches