From b4a904cdf2cc4c5ef555602d1ddbbfc1d46e2457 Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Wed, 30 Mar 2022 11:35:35 +0200 Subject: [PATCH] Updated from template --- .../models/intrastat_product_declaration.py | 12 ++++++------ intrastat_product/tests/test_company.py | 2 +- intrastat_product/tests/test_intrastat_product.py | 2 +- intrastat_product/tests/test_purchase_order.py | 2 +- intrastat_product/tests/test_sale_order.py | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/intrastat_product/models/intrastat_product_declaration.py b/intrastat_product/models/intrastat_product_declaration.py index 772f7e9..f807dd8 100644 --- a/intrastat_product/models/intrastat_product_declaration.py +++ b/intrastat_product/models/intrastat_product_declaration.py @@ -199,7 +199,7 @@ class IntrastatProductDeclaration(models.Model): @api.depends("month") def _compute_check_validity(self): - """ TO DO: logic based upon computation lines """ + """TO DO: logic based upon computation lines""" for this in self: this.valid = True @@ -526,7 +526,7 @@ class IntrastatProductDeclaration(models.Model): return vat def _update_computation_line_vals(self, inv_line, line_vals, notedict): - """ placeholder for localization modules """ + """placeholder for localization modules""" def _handle_invoice_accessory_cost( self, @@ -602,7 +602,7 @@ class IntrastatProductDeclaration(models.Model): return False def _gather_invoices_init(self, notedict): - """ placeholder for localization modules """ + """placeholder for localization modules""" def _format_line_note(self, line, notedict, line_notes): indent = 8 * " " @@ -884,7 +884,7 @@ class IntrastatProductDeclaration(models.Model): return vals def generate_declaration(self): - """ generate declaration lines """ + """generate declaration lines""" self.ensure_one() assert self.valid, "Computation lines are not valid" self.message_post(body=_("Generate Declaration Lines")) @@ -915,7 +915,7 @@ class IntrastatProductDeclaration(models.Model): ) def generate_xml(self): - """ generate the INTRASTAT Declaration XML file """ + """generate the INTRASTAT Declaration XML file""" self.ensure_one() if self.xml_attachment_id: raise UserError( @@ -1099,7 +1099,7 @@ class IntrastatProductComputationLine(models.Model): @api.depends("transport_id") def _compute_check_validity(self): - """ TO DO: logic based upon fields """ + """TO DO: logic based upon fields""" for this in self: this.valid = True diff --git a/intrastat_product/tests/test_company.py b/intrastat_product/tests/test_company.py index 7fe99ac..60fb2b6 100644 --- a/intrastat_product/tests/test_company.py +++ b/intrastat_product/tests/test_company.py @@ -37,4 +37,4 @@ class TestIntrastatCompany(IntrastatProductCommon): class TestIntrastatProductCase(TestIntrastatCompany, SavepointCase): - """ Test Intrastat Product """ + """Test Intrastat Product""" diff --git a/intrastat_product/tests/test_intrastat_product.py b/intrastat_product/tests/test_intrastat_product.py index af0b265..e41a436 100644 --- a/intrastat_product/tests/test_intrastat_product.py +++ b/intrastat_product/tests/test_intrastat_product.py @@ -64,4 +64,4 @@ class TestIntrastatProduct(IntrastatProductCommon): class TestIntrastatProductCase(TestIntrastatProduct, SavepointCase): - """ Test Intrastat Product """ + """Test Intrastat Product""" diff --git a/intrastat_product/tests/test_purchase_order.py b/intrastat_product/tests/test_purchase_order.py index f6538c1..236ffe7 100644 --- a/intrastat_product/tests/test_purchase_order.py +++ b/intrastat_product/tests/test_purchase_order.py @@ -50,4 +50,4 @@ class TestIntrastatProductPurchase(IntrastatPurchaseCommon): class TestIntrastatProductPurchaseCase(TestIntrastatProductPurchase, SavepointCase): - """ Test Intrastat Purchase """ + """Test Intrastat Purchase""" diff --git a/intrastat_product/tests/test_sale_order.py b/intrastat_product/tests/test_sale_order.py index 7d5b411..7c01f1b 100644 --- a/intrastat_product/tests/test_sale_order.py +++ b/intrastat_product/tests/test_sale_order.py @@ -85,4 +85,4 @@ class TestIntrastatProductSale(IntrastatSaleCommon): class TestIntrastatProductSaleCase(TestIntrastatProductSale, SavepointCase): - """ Test Intrastat Sale """ + """Test Intrastat Sale"""