mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] account_move_name_sequence: pre-commit auto fixes
This commit is contained in:
parent
83d7067946
commit
dd53b1acbf
@@ -59,10 +59,8 @@ class TestAccountIncomingSupplierInvoice(AccountTestInvoicingCommon):
|
||||
message_parsed = {
|
||||
"message_id": "message-id-dead-beef",
|
||||
"subject": "Incoming bill",
|
||||
"from": "%s <%s>"
|
||||
% (self.supplier_partner.name, self.supplier_partner.email),
|
||||
"to": "%s@%s"
|
||||
% (self.journal.alias_id.alias_name, self.journal.alias_id.alias_domain),
|
||||
"from": f"{self.supplier_partner.name} <{self.supplier_partner.email}>",
|
||||
"to": f"{self.journal.alias_id.alias_name}@{self.journal.alias_id.alias_domain}",
|
||||
"body": "You know, that thing that you bought.",
|
||||
"attachments": [b"Hello, invoice"],
|
||||
}
|
||||
|
||||
@@ -205,7 +205,9 @@ class TestSequenceConcurrency(TransactionCase):
|
||||
lines2reconcile = (
|
||||
(payment_move | invoice)
|
||||
.mapped("line_ids")
|
||||
.filtered(lambda l: l.account_id.account_type == "asset_receivable")
|
||||
.filtered(
|
||||
lambda line: line.account_id.account_type == "asset_receivable"
|
||||
)
|
||||
)
|
||||
with env0.cr.savepoint(), env1.cr.savepoint():
|
||||
# Reconciling "last move"
|
||||
@@ -235,7 +237,9 @@ class TestSequenceConcurrency(TransactionCase):
|
||||
lines2reconcile = (
|
||||
(payment_move | invoice)
|
||||
.mapped("line_ids")
|
||||
.filtered(lambda l: l.account_id.account_type == "asset_receivable")
|
||||
.filtered(
|
||||
lambda line: line.account_id.account_type == "asset_receivable"
|
||||
)
|
||||
)
|
||||
with env0.cr.savepoint(), env1.cr.savepoint():
|
||||
# Reconciling "last move"
|
||||
|
||||
Reference in New Issue
Block a user