mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[MIG] account_move_force_removal: Migration to 14.0
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
|
||||
* Víctor Martínez
|
||||
* Pedro M. Baeza
|
||||
* Alex Comba <alex.comba@agilebg.com>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user