Skip to content
Permalink
Browse files

[FIX] account: Remove partner on changing partner_type or payment_type

  • Loading branch information...
sswapnesh committed Mar 23, 2019
1 parent aed56c9 commit ada6e4f5be994dc182770727a810d5444814de21
Showing with 1 addition and 0 deletions.
  1. +1 −0 addons/account/models/account_payment.py
@@ -486,6 +486,7 @@ def _compute_reconciled_invoice_ids(self):
@api.onchange('partner_type')
def _onchange_partner_type(self):
self.ensure_one()
self.partner_id = False
# Set partner_id domain
if self.partner_type:
return {'domain': {'partner_id': [(self.partner_type, '=', True)]}}

0 comments on commit ada6e4f

Please sign in to comment.
You can’t perform that action at this time.