Feedback 1116: Feedback Schnittstellen 27.11.

develop
Ahmed Aly 2017-11-28 09:35:33 +01:00
parent ebc1abc7cb
commit 84cddb4639
5 changed files with 26 additions and 2 deletions

View File

@ -16,6 +16,7 @@ values = {
"length": 45.01,
"width": 13.45,
"thickness": 33.44,
"height": 88.37,
"surface": "m",
"weight": 80.45,
"active": True,

View File

@ -45,7 +45,8 @@ class ProductTemplate(models.Model):
length = fields.Float(string='Länge 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')
is_internal = fields.Boolean()
xcat_id = fields.Many2one(comodel_name='product.xcategory', string='X-Kategorie')
@ -106,4 +107,11 @@ class ProductTemplate(models.Model):
@api.model
def _get_specified_fields(self):
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')

View File

@ -8,6 +8,7 @@
<div name="volume" position="after">
<field name="length"/>
<field name="width"/>
<field name="height"/>
<field name="thickness"/>
<field name="surface"/>
</div>
@ -34,6 +35,17 @@
</field>
</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">
<field name="name">product_product_form_view</field>
<field name="model">product.product</field>

View File

@ -34,6 +34,7 @@
'res.partner.sector.csv',
'report.intrastat.code.csv',
'product.xcategory.csv',
'product.category.csv',
'material.type.csv',
'res.line.csv',
],

View File

@ -0,0 +1,2 @@
"id","name","code"
"dp_dmi.unique_category_id","Holz","45A3"
1 id name code
2 dp_dmi.unique_category_id Holz 45A3