mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] account_reconcile_oca: Only filter by partner on receivable and payable lines
This commit is contained in:
@@ -22,7 +22,10 @@ class AccountMoveLine(models.Model):
|
||||
"account_reconcile_oca.account_account_reconcile_act_window"
|
||||
)
|
||||
action["domain"] = [("account_id", "=", self.mapped("account_id").id)]
|
||||
if len(partner) == 1:
|
||||
if len(partner) == 1 and self.account_id.account_type in [
|
||||
"asset_receivable",
|
||||
"liability_payable",
|
||||
]:
|
||||
action["domain"] += [("partner_id", "=", partner.id)]
|
||||
action["context"] = self.env.context.copy()
|
||||
action["context"]["default_account_move_lines"] = self.filtered(
|
||||
|
||||
Reference in New Issue
Block a user