Feedback 1116: Feedback Schnittstellen 27.11.
parent
ebc1abc7cb
commit
84cddb4639
|
|
@ -16,6 +16,7 @@ values = {
|
||||||
"length": 45.01,
|
"length": 45.01,
|
||||||
"width": 13.45,
|
"width": 13.45,
|
||||||
"thickness": 33.44,
|
"thickness": 33.44,
|
||||||
|
"height": 88.37,
|
||||||
"surface": "m",
|
"surface": "m",
|
||||||
"weight": 80.45,
|
"weight": 80.45,
|
||||||
"active": True,
|
"active": True,
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,8 @@ class ProductTemplate(models.Model):
|
||||||
|
|
||||||
length = fields.Float(string='Länge in mm')
|
length = fields.Float(string='Länge in mm')
|
||||||
width = fields.Float(string='Breite in mm')
|
width = fields.Float(string='Breite in mm')
|
||||||
thickness = fields.Float(string='Ficke in mm', help='Echte Dicke in mm')
|
thickness = fields.Float(string='Dicke in mm', help='Echte Dicke in mm')
|
||||||
|
height = fields.Float(string='Höhe in mm')
|
||||||
surface = fields.Selection(SURFACE_OPTIONS, string='Oberfläche')
|
surface = fields.Selection(SURFACE_OPTIONS, string='Oberfläche')
|
||||||
is_internal = fields.Boolean()
|
is_internal = fields.Boolean()
|
||||||
xcat_id = fields.Many2one(comodel_name='product.xcategory', string='X-Kategorie')
|
xcat_id = fields.Many2one(comodel_name='product.xcategory', string='X-Kategorie')
|
||||||
|
|
@ -106,4 +107,11 @@ class ProductTemplate(models.Model):
|
||||||
@api.model
|
@api.model
|
||||||
def _get_specified_fields(self):
|
def _get_specified_fields(self):
|
||||||
return ['default_code', 'name', 'length', 'width', 'thickness', 'surface', 'active', 'weight', 'is_internal',
|
return ['default_code', 'name', 'length', 'width', 'thickness', 'surface', 'active', 'weight', 'is_internal',
|
||||||
'xcat_id', 'notes', 'material_type_id', 'intrastat_id', 'sale_ok', 'assembly_line_ids', 'list_price']
|
'xcat_id', 'notes', 'material_type_id', 'intrastat_id', 'sale_ok', 'assembly_line_ids', 'list_price',
|
||||||
|
'height']
|
||||||
|
|
||||||
|
|
||||||
|
class ProductCategory(models.Model):
|
||||||
|
_inherit = 'product.category'
|
||||||
|
|
||||||
|
code = fields.Char(string='Code')
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
<div name="volume" position="after">
|
<div name="volume" position="after">
|
||||||
<field name="length"/>
|
<field name="length"/>
|
||||||
<field name="width"/>
|
<field name="width"/>
|
||||||
|
<field name="height"/>
|
||||||
<field name="thickness"/>
|
<field name="thickness"/>
|
||||||
<field name="surface"/>
|
<field name="surface"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -34,6 +35,17 @@
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
<record id="product_category_form_view" model="ir.ui.view">
|
||||||
|
<field name="name">product_category_form_view</field>
|
||||||
|
<field name="model">product.category</field>
|
||||||
|
<field name="inherit_id" ref="product.product_category_form_view"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<field name="parent_id" position="after">
|
||||||
|
<field name="code" class="oe_inline"/>
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<record id="product_product_form_view" model="ir.ui.view">
|
<record id="product_product_form_view" model="ir.ui.view">
|
||||||
<field name="name">product_product_form_view</field>
|
<field name="name">product_product_form_view</field>
|
||||||
<field name="model">product.product</field>
|
<field name="model">product.product</field>
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@
|
||||||
'res.partner.sector.csv',
|
'res.partner.sector.csv',
|
||||||
'report.intrastat.code.csv',
|
'report.intrastat.code.csv',
|
||||||
'product.xcategory.csv',
|
'product.xcategory.csv',
|
||||||
|
'product.category.csv',
|
||||||
'material.type.csv',
|
'material.type.csv',
|
||||||
'res.line.csv',
|
'res.line.csv',
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
"id","name","code"
|
||||||
|
"dp_dmi.unique_category_id","Holz","45A3"
|
||||||
|
Loading…
Reference in New Issue