From 23b41f0a6fb2be6687306aa480f4b6bb6ffc3598 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 17 Nov 2015 09:05:20 +0100 Subject: [PATCH] Remove field exclude_from_intrastat Re-organise view of intrastat.product.declaration --- intrastat_base/models/product_template.py | 6 - intrastat_base/views/intrastat.xml | 2 +- intrastat_base/views/product_template.xml | 1 - .../models/intrastat_product_declaration.py | 10 +- .../views/intrastat_product_declaration.xml | 196 ++++++++++++------ 5 files changed, 138 insertions(+), 77 deletions(-) diff --git a/intrastat_base/models/product_template.py b/intrastat_base/models/product_template.py index 69fe7ce..30132bc 100644 --- a/intrastat_base/models/product_template.py +++ b/intrastat_base/models/product_template.py @@ -27,12 +27,6 @@ from openerp.exceptions import ValidationError class ProductTemplate(models.Model): _inherit = "product.template" - exclude_from_intrastat = fields.Boolean( - string='Exclude from Intrastat reports', - help="If set to True, the product or service will not be " - "taken into account for Intrastat Product or Service reports. " - "So you should leave this field to False unless you have a " - "very good reason.") is_accessory_cost = fields.Boolean( string='Is accessory cost', help="Activate this option for shipping costs, packaging " diff --git a/intrastat_base/views/intrastat.xml b/intrastat_base/views/intrastat.xml index 7b4cdf7..73762d0 100644 --- a/intrastat_base/views/intrastat.xml +++ b/intrastat_base/views/intrastat.xml @@ -11,7 +11,7 @@ diff --git a/intrastat_base/views/product_template.xml b/intrastat_base/views/product_template.xml index dc61ca5..eccceb9 100644 --- a/intrastat_base/views/product_template.xml +++ b/intrastat_base/views/product_template.xml @@ -16,7 +16,6 @@ - diff --git a/intrastat_product/models/intrastat_product_declaration.py b/intrastat_product/models/intrastat_product_declaration.py index 2bd2a50..72f9807 100644 --- a/intrastat_product/models/intrastat_product_declaration.py +++ b/intrastat_product/models/intrastat_product_declaration.py @@ -693,8 +693,8 @@ class IntrastatProductComputationLine(models.Model): string='Suppl. Unit', readonly=True, help="Intrastat Supplementary Unit") weight = fields.Float( - string='Weight (Kg)', - digits=dp.get_precision('Stock Weight')) + string='Weight', + digits=dp.get_precision('Stock Weight'), help="Net weight in Kg") suppl_unit_qty = fields.Float( string='Suppl. Unit Qty', digits=dp.get_precision('Product Unit of Measure'), @@ -723,7 +723,7 @@ class IntrastatProductComputationLine(models.Model): 'intrastat.transport_mode', string='Transport Mode') product_origin_country_id = fields.Many2one( - 'res.country', string='Country of origin of the Product', + 'res.country', string='Country of Origin of the Product', help="Country of origin of the product i.e. product 'made in ____'") @api.one @@ -783,7 +783,7 @@ class IntrastatProductDeclarationLine(models.Model): string='Suppl. Unit', readonly=True, help="Intrastat Supplementary Unit") weight = fields.Integer( - string='Weight (Kg)') + string='Weight', help="Net weight in Kg") suppl_unit_qty = fields.Integer( string='Suppl. Unit Qty', help="Supplementary Units Quantity") @@ -804,7 +804,7 @@ class IntrastatProductDeclarationLine(models.Model): 'intrastat.transport_mode', string='Transport Mode') product_origin_country_id = fields.Many2one( - 'res.country', string='Country of origin of the Product', + 'res.country', string='Country of Origin of the Product', help="Country of origin of the product i.e. product 'made in ____'") @api.model diff --git a/intrastat_product/views/intrastat_product_declaration.xml b/intrastat_product/views/intrastat_product_declaration.xml index d7b9d49..52e0693 100644 --- a/intrastat_product/views/intrastat_product_declaration.xml +++ b/intrastat_product/views/intrastat_product_declaration.xml @@ -10,7 +10,7 @@
@@ -54,73 +54,14 @@ - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - -
-
+
- - - - - - - - - - - - - - - - + - @@ -141,7 +82,7 @@ Intrastat Product Declaration Validated - + intrastat.product.declaration.tree intrastat.product.declaration @@ -189,5 +130,132 @@ + + intrastat.product.computation.line.form + intrastat.product.computation.line + +
+ + + + + + + + + + + + + +
+
+
+ + + intrastat.product.computation.line.tree + intrastat.product.computation.line + + + + + + + + + + + + + + + + + + + + + + intrastat.product.declaration.line.form + intrastat.product.declaration.line + +
+ + + + + + + + + + + +
+
+
+ + + intrastat.product.declaration.line.tree + intrastat.product.declaration.line + + + + + + + + + + + + + + + + + + + +