diff --git a/contract_sale_mandate/tests/test_contract_sale_mandate.py b/contract_sale_mandate/tests/test_contract_sale_mandate.py index 045151335..96874c1a0 100644 --- a/contract_sale_mandate/tests/test_contract_sale_mandate.py +++ b/contract_sale_mandate/tests/test_contract_sale_mandate.py @@ -21,16 +21,17 @@ class TestContractSaleMandate(TestContractBase): cls.contract_template1 = cls.env['contract.template'].create( {'name': 'Template 1'} ) - cls.product1.write( + cls.sale = cls.env.ref('sale.sale_order_2') + cls.product1.with_context( + force_company=cls.sale.company_id.id).write( { 'is_contract': True, 'default_qty': 12, 'recurring_rule_type': "monthlylastday", 'recurring_invoicing_type': "post-paid", - 'contract_template_id': cls.contract_template1.id, + 'property_contract_template_id': cls.contract_template1.id, } ) - cls.sale = cls.env.ref('sale.sale_order_2') cls.sale.mandate_id = cls.mandate cls.order_line1 = cls.sale.order_line.filtered( lambda l: l.product_id == cls.product1 diff --git a/product_contract/__manifest__.py b/product_contract/__manifest__.py index 028e4765e..42cf6d53a 100644 --- a/product_contract/__manifest__.py +++ b/product_contract/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Recurring - Product Contract', - 'version': '12.0.3.1.2', + 'version': '12.0.4.0.0', 'category': 'Contract Management', 'license': 'AGPL-3', 'author': "LasLabs, " diff --git a/product_contract/readme/CONTRIBUTORS.rst b/product_contract/readme/CONTRIBUTORS.rst index 2db29075b..62a6b88fe 100644 --- a/product_contract/readme/CONTRIBUTORS.rst +++ b/product_contract/readme/CONTRIBUTORS.rst @@ -1,2 +1,6 @@ * Ted Salmon * Souheil Bejaoui +* `Tecnativa `__: + + * Ernesto Tejeda + * Pedro M. Baeza