2
0

[IMP] account_invoice_constraint_chronology: black, isort, prettier

This commit is contained in:
Alexey Pelykh 2021-04-06 20:40:53 +02:00 committed by Zina Rasoamanana
parent b96e164adf
commit 8f231112b8
2 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,7 @@
"name": "Account Invoice Constraint Chronology", "name": "Account Invoice Constraint Chronology",
"version": "13.0.1.0.0", "version": "13.0.1.0.0",
"author": "Odoo Community Association (OCA), ACSONE SA/NV, CorporateHub", "author": "Odoo Community Association (OCA), ACSONE SA/NV, CorporateHub",
"website": "https://github.com/OCA/account-financial-tools/", "website": "https://github.com/OCA/account-financial-tools",
"license": "AGPL-3", "license": "AGPL-3",
"category": "Accounting", "category": "Accounting",
"depends": ["account"], "depends": ["account"],

View File

@ -103,7 +103,8 @@ class TestAccountInvoiceConstraintChronology(common.SavepointCase):
self.invoice_1.action_post() self.invoice_1.action_post()
refund = ( refund = (
self.AccountMoveReversal.with_context( self.AccountMoveReversal.with_context(
active_model="account.move", active_ids=self.invoice_1.ids, active_model="account.move",
active_ids=self.invoice_1.ids,
) )
.create( .create(
{"date": self.today, "reason": "no reason", "refund_method": "refund"} {"date": self.today, "reason": "no reason", "refund_method": "refund"}
@ -119,7 +120,8 @@ class TestAccountInvoiceConstraintChronology(common.SavepointCase):
self.invoice_1.action_post() self.invoice_1.action_post()
refund = ( refund = (
self.AccountMoveReversal.with_context( self.AccountMoveReversal.with_context(
active_model="account.move", active_ids=self.invoice_1.ids, active_model="account.move",
active_ids=self.invoice_1.ids,
) )
.create( .create(
{"date": self.today, "reason": "no reason", "refund_method": "refund"} {"date": self.today, "reason": "no reason", "refund_method": "refund"}