Skip to content

Commit

Permalink
Merge PR #731 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 17, 2024
2 parents 6e195ce + 423209a commit 32b6480
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion account_reconcile_oca/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ def action_reconcile_manually(self):
"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(
Expand Down

0 comments on commit 32b6480

Please sign in to comment.