Fall 1139: Flag "Darf unkonfiguriert verkauft werden"

develop
Ahmed Aly 2017-12-04 09:46:04 +01:00
parent bafc6eea8b
commit 9df9a9c31e
3 changed files with 4 additions and 5 deletions

View File

@ -32,7 +32,8 @@
'base',
'partner_second_lastname',
'account',
'sale_stock'
'sale_stock',
'report_intrastat'
],
'data': [
'data/dp_custom_data.xml',

View File

@ -119,7 +119,7 @@ class ProductTemplate(models.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',
'height', 'categ_id']
'height', 'categ_id', 'can_be_sold_unconfigured']
class ProductCategory(models.Model):

View File

@ -5,15 +5,13 @@
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<field name="volume" position="after">
<field name="can_be_sold_unconfigured"/>
</field>
<div name="volume" position="after">
<field name="length"/>
<field name="width"/>
<field name="height"/>
<field name="thickness"/>
<field name="surface"/>
<field name="can_be_sold_unconfigured"/>
</div>
<field name="categ_id" position="after">
<field name="xcat_id"/>