Skip to content

Commit

Permalink
[MIG] account_sequence_option : Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peluko00 committed Nov 5, 2024
1 parent 76a85d4 commit e7e78cb
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
4 changes: 4 additions & 0 deletions account_sequence_option/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ Contributors

- Ángel García de la Chica Herrera

- `APSL-Nagarro <https://apsl.tech>`__:

- Antoni Marroig <[email protected]>

Maintainers
-----------

Expand Down
2 changes: 1 addition & 1 deletion account_sequence_option/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions account_sequence_option/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- Kitti U. \<<[email protected]>\>
- [Sygel](https://www.sygel.es):
- Ángel García de la Chica Herrera
- [APSL-Nagarro](<https://apsl.tech>):
- Antoni Marroig \<<[email protected]>\>
4 changes: 4 additions & 0 deletions account_sequence_option/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<li>Ángel García de la Chica Herrera</li>
</ul>
</li>
<li><a class="reference external" href="https://apsl.tech">APSL-Nagarro</a>:<ul>
<li>Antoni Marroig &lt;<a class="reference external" href="mailto:amarroig&#64;apsl.net">amarroig&#64;apsl.net</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
21 changes: 12 additions & 9 deletions account_sequence_option/tests/test_account_sequence_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down

0 comments on commit e7e78cb

Please sign in to comment.