From c06d775c803f6a5c71a05d50b4d1986fdd9aa787 Mon Sep 17 00:00:00 2001 From: Antoni Marroig Campomar Date: Wed, 7 Aug 2024 07:42:00 +0200 Subject: [PATCH] [MIG] : Migration to 17.0 --- account_sequence_option/README.rst | 4 ++++ account_sequence_option/__manifest__.py | 2 +- .../readme/CONTRIBUTORS.md | 2 ++ .../static/description/index.html | 4 ++++ .../tests/test_account_sequence_option.py | 21 +++++++++++-------- 5 files changed, 23 insertions(+), 10 deletions(-) diff --git a/account_sequence_option/README.rst b/account_sequence_option/README.rst index 984f48540cd..10f5c91bc12 100644 --- a/account_sequence_option/README.rst +++ b/account_sequence_option/README.rst @@ -93,6 +93,10 @@ Contributors - Ángel García de la Chica Herrera +- `APSL-Nagarro `__: + + - Antoni Marroig + Maintainers ----------- diff --git a/account_sequence_option/__manifest__.py b/account_sequence_option/__manifest__.py index 646b8ecf721..a94bbec0c58 100644 --- a/account_sequence_option/__manifest__.py +++ b/account_sequence_option/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Sequence Option", "summary": "Manage sequence options for account.move, i.e., invoice, bill, entry", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "author": "Ecosoft, Odoo Community Association (OCA)", "development_status": "Alpha", "website": "https://github.com/OCA/account-financial-tools", diff --git a/account_sequence_option/readme/CONTRIBUTORS.md b/account_sequence_option/readme/CONTRIBUTORS.md index 9e9119d13f9..d36595cac9b 100644 --- a/account_sequence_option/readme/CONTRIBUTORS.md +++ b/account_sequence_option/readme/CONTRIBUTORS.md @@ -1,3 +1,5 @@ - Kitti U. \<\> - [Sygel](https://www.sygel.es): - Ángel García de la Chica Herrera +- [APSL-Nagarro](): + - Antoni Marroig \<\> \ No newline at end of file diff --git a/account_sequence_option/static/description/index.html b/account_sequence_option/static/description/index.html index ae4f0711044..3d9a4c145f9 100644 --- a/account_sequence_option/static/description/index.html +++ b/account_sequence_option/static/description/index.html @@ -435,6 +435,10 @@

Contributors

  • Ángel García de la Chica Herrera
  • +
  • APSL-Nagarro: +
  • diff --git a/account_sequence_option/tests/test_account_sequence_option.py b/account_sequence_option/tests/test_account_sequence_option.py index bfd9d5bd735..ceb8bbd7684 100644 --- a/account_sequence_option/tests/test_account_sequence_option.py +++ b/account_sequence_option/tests/test_account_sequence_option.py @@ -9,16 +9,18 @@ @tagged("post_install", "-at_install") class TestAccountSequenceOption(TransactionCase): - def setUp(self): - super().setUp() - self.AccountMove = self.env["account.move"] - self.AccountMoveLine = self.env["account.move.line"] - self.partner_id = self.env.ref("base.res_partner_1") - self.product_id_1 = self.env.ref("product.product_product_6") - self.account_seq_opt1 = self.env.ref("account_sequence_option.account_sequence") - self.pay_in = self.env.ref("account.account_payment_method_manual_in") - self.pay_out = self.env.ref("account.account_payment_method_manual_out") + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.AccountMove = cls.env["account.move"] + cls.AccountMoveLine = cls.env["account.move.line"] + cls.partner_id = cls.env.ref("base.res_partner_1") + cls.product_id_1 = cls.env.ref("product.product_product_6") + cls.account_seq_opt1 = cls.env.ref("account_sequence_option.account_sequence") + cls.pay_in = cls.env.ref("account.account_payment_method_manual_in") + cls.pay_out = cls.env.ref("account.account_payment_method_manual_out") + @classmethod def _create_invoice(self, move_type): move_form = Form( self.env["account.move"].with_context(default_move_type=move_type) @@ -30,6 +32,7 @@ def _create_invoice(self, move_type): invoice = move_form.save() return invoice + @classmethod def _create_payment(self, payment_type, partner_type): ctx = { "default_payment_type": payment_type,