[MIG] account_move_force_removal: Migration to 14.0

This commit is contained in:
tafaRU
2021-04-26 10:38:52 +02:00
committed by angel
parent ec8f5a0635
commit 7709d6f6f7
3 changed files with 8 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
{
"name": "Account Move Force Removal",
"summary": """Allow force removal account moves""",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"category": "Account",
"license": "AGPL-3",
"website": "https://github.com/OCA/account-financial-tools",

View File

@@ -2,3 +2,4 @@
* Víctor Martínez
* Pedro M. Baeza
* Alex Comba <alex.comba@agilebg.com>

View File

@@ -24,6 +24,11 @@ class TestMove(SavepointCase):
cls.product = cls.env["product.product"].create(
{"name": "Test product", "type": "service"}
)
account_type = cls.env.ref("account.data_account_type_other_income")
cls.income_account = cls.env["account.account"].search(
[("user_type_id", "=", account_type.id)], limit=1
)
invoice = Form(
cls.env["account.move"].with_context(
default_type="out_invoice", default_company_id=cls.env.company.id
@@ -36,6 +41,7 @@ class TestMove(SavepointCase):
line_form.product_id = cls.product
line_form.quantity = 1.0
line_form.price_unit = 10
line_form.account_id = cls.income_account
invoice = invoice.save()
invoice.action_post()
cls.invoice = invoice