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
=== modified file 'bin/addons/product_attributes/product_attributes.py'
--- bin/addons/product_attributes/product_attributes.py 2018-08-06 13:07:33 +0000
+++ bin/addons/product_attributes/product_attributes.py 2018-10-11 10:12:13 +0000
@@ -299,6 +299,18 @@
299product_template()299product_template()
300300
301301
302class product_sde_proof_of_concept(osv.osv):
303 _name = 'product.sde.proof.of.concept'
304
305 _columns = {
306 'product_id': fields.many2one('product.product', 'Product'),
307 'gtin': fields.char(size=255, string='GTIN'),
308 'packaging': fields.float(string='Packaging', digits=(16,2)),
309 }
310
311product_sde_proof_of_concept()
312
313
302class product_attributes(osv.osv):314class product_attributes(osv.osv):
303 _inherit = "product.product"315 _inherit = "product.product"
304316
@@ -906,6 +918,7 @@
906 'vat_ok': fields.function(_get_vat_ok, method=True, type='boolean', string='VAT OK', store=False, readonly=True),918 'vat_ok': fields.function(_get_vat_ok, method=True, type='boolean', string='VAT OK', store=False, readonly=True),
907 'uf_write_date': fields.datetime(_('Write date')),919 'uf_write_date': fields.datetime(_('Write date')),
908 'uf_create_date': fields.datetime(_('Creation date')),920 'uf_create_date': fields.datetime(_('Creation date')),
921 'sde_proof_of_concept': fields.one2many('product.sde.proof.of.concept', 'product_id', 'SDE Proof Of Concept'),
909 }922 }
910923
911 # US-43: Remove the default_get that set value on Product Creator field. By removing the required = True value924 # US-43: Remove the default_get that set value on Product Creator field. By removing the required = True value
912925
=== modified file 'bin/addons/product_attributes/product_attributes_view.xml'
--- bin/addons/product_attributes/product_attributes_view.xml 2018-02-28 10:36:26 +0000
+++ bin/addons/product_attributes/product_attributes_view.xml 2018-10-11 10:12:13 +0000
@@ -158,6 +158,13 @@
158 <field name="closed_article" colspan="2"/>158 <field name="closed_article" colspan="2"/>
159 <field name="manufacturer_ref" attrs="{'invisible': [('closed_article', '=', 'no')]}" />159 <field name="manufacturer_ref" attrs="{'invisible': [('closed_article', '=', 'no')]}" />
160 <field name="manufacturer_txt" attrs="{'invisible': [('closed_article', '=', 'no')]}" />160 <field name="manufacturer_txt" attrs="{'invisible': [('closed_article', '=', 'no')]}" />
161 <separator string="SDE Proof Of Concept" colspan="2"/>
162 <field name="sde_proof_of_concept" nolabel="1" mode="tree" colspan="2">
163 <tree editable="top">
164 <field name="gtin" />
165 <field name="packaging" />
166 </tree>
167 </field>
161 </group>168 </group>
162 <group colspan="2" col="2">169 <group colspan="2" col="2">
163 <separator string="Form" colspan="2" />170 <separator string="Form" colspan="2" />

Subscribers

People subscribed via source and target branches