mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
@@ -117,6 +117,7 @@ class AccountMoveMakeNetting(models.TransientModel):
|
||||
if move_lines:
|
||||
move.write({"line_ids": move_lines})
|
||||
# Make reconciliation
|
||||
move.action_post()
|
||||
for move_line in move.line_ids:
|
||||
to_reconcile = move_line + self.move_line_ids.filtered(
|
||||
lambda x: x.account_id == move_line.account_id
|
||||
|
||||
@@ -642,7 +642,7 @@ class TestAccountInvoiceSpread(common.TransactionCase):
|
||||
payable_account = self.spread2.credit_account_id
|
||||
balance_sheet = self.spread2.debit_account_id
|
||||
self.assertTrue(balance_sheet.reconcile)
|
||||
|
||||
self.spread2.line_ids.mapped("move_id").action_post()
|
||||
spread_mls = self.spread2.line_ids.mapped("move_id.line_ids")
|
||||
self.assertTrue(spread_mls)
|
||||
for spread_ml in spread_mls:
|
||||
|
||||
Reference in New Issue
Block a user