From 26669d7e5bae386eacfd3c1691be1e6386486576 Mon Sep 17 00:00:00 2001 From: Roger Date: Tue, 23 Jul 2024 16:43:31 +0200 Subject: [PATCH] [MIG] sale_quotation_number: Migration to 17.0 --- sale_quotation_number/__manifest__.py | 2 +- sale_quotation_number/models/res_company.py | 5 ++++- sale_quotation_number/tests/test_sale_order.py | 2 +- sale_quotation_number/views/sales_config.xml | 13 +++++-------- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/sale_quotation_number/__manifest__.py b/sale_quotation_number/__manifest__.py index ca3ebfd05612..1875b43d8261 100644 --- a/sale_quotation_number/__manifest__.py +++ b/sale_quotation_number/__manifest__.py @@ -6,7 +6,7 @@ { "name": "Sale Quotation Numeration", "summary": "Different sequence for sale quotations", - "version": "16.0.1.0.2", + "version": "17.0.1.0.0", "category": "Sales Management", "website": "https://github.com/OCA/sale-workflow", "author": "Elico Corp, " diff --git a/sale_quotation_number/models/res_company.py b/sale_quotation_number/models/res_company.py index bef9d39b643e..8d9739588a3e 100644 --- a/sale_quotation_number/models/res_company.py +++ b/sale_quotation_number/models/res_company.py @@ -21,4 +21,7 @@ class ResCompany(models.Model): class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" - keep_name_so = fields.Boolean(related="company_id.keep_name_so", readonly=False) + keep_name_so = fields.Boolean( + related="company_id.keep_name_so", + readonly=False, + ) diff --git a/sale_quotation_number/tests/test_sale_order.py b/sale_quotation_number/tests/test_sale_order.py index 9c649e4e8acc..730b8115f0c1 100644 --- a/sale_quotation_number/tests/test_sale_order.py +++ b/sale_quotation_number/tests/test_sale_order.py @@ -79,7 +79,7 @@ def test_copy_with_origin(self): def test_error_confirmation_sequence(self): order = self.sale_order_model.create( - {"partner_id": self.env.ref("base.res_partner_1").id, "state": "done"} + {"partner_id": self.env.ref("base.res_partner_1").id, "state": "sale"} ) # An exception is forced sequence_id = self.env["ir.sequence"].search( diff --git a/sale_quotation_number/views/sales_config.xml b/sale_quotation_number/views/sales_config.xml index 3e9d640932a5..42da8d26b865 100644 --- a/sale_quotation_number/views/sales_config.xml +++ b/sale_quotation_number/views/sales_config.xml @@ -8,17 +8,14 @@ -
-
- -
-
-
-
+ +