From 9df9a9c31ef3193baf98e7c883e607c308277c2a Mon Sep 17 00:00:00 2001 From: Ahmed Aly Date: Mon, 4 Dec 2017 09:46:04 +0100 Subject: [PATCH] Fall 1139: Flag "Darf unkonfiguriert verkauft werden" --- ext/custom-addons/dp_custom/__manifest__.py | 3 ++- ext/custom-addons/dp_custom/models/product.py | 2 +- ext/custom-addons/dp_custom/views/product_views.xml | 4 +--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ext/custom-addons/dp_custom/__manifest__.py b/ext/custom-addons/dp_custom/__manifest__.py index 9e7ddb65..8cbe5ebb 100644 --- a/ext/custom-addons/dp_custom/__manifest__.py +++ b/ext/custom-addons/dp_custom/__manifest__.py @@ -32,7 +32,8 @@ 'base', 'partner_second_lastname', 'account', - 'sale_stock' + 'sale_stock', + 'report_intrastat' ], 'data': [ 'data/dp_custom_data.xml', diff --git a/ext/custom-addons/dp_custom/models/product.py b/ext/custom-addons/dp_custom/models/product.py index fe94acc4..4d3e71d0 100644 --- a/ext/custom-addons/dp_custom/models/product.py +++ b/ext/custom-addons/dp_custom/models/product.py @@ -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): diff --git a/ext/custom-addons/dp_custom/views/product_views.xml b/ext/custom-addons/dp_custom/views/product_views.xml index 6d5e8160..7dcd6126 100644 --- a/ext/custom-addons/dp_custom/views/product_views.xml +++ b/ext/custom-addons/dp_custom/views/product_views.xml @@ -5,15 +5,13 @@ product.template - - -
+