Skip to content

Commit

Permalink
[FIX] account_payment_pro: fix default partner in move lines
Browse files Browse the repository at this point in the history
closes #582

Signed-off-by: rov-adhoc <[email protected]>
  • Loading branch information
cav-adhoc committed Jan 13, 2025
1 parent 3bc07e1 commit 76cef89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_payment_pro/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _compute_payment_matched_amount(self):
rec.payment_matched_amount = debit_move_amount - credit_move_amount

def action_register_payment(self):
to_pay_partners = self.mapped('move_id.commercial_partner_id')
to_pay_partners = self.mapped('move_id.commercial_partner_id') or self.mapped('partner_id')
company_pay_pro = len(self.mapped('company_id').ids) == 1 and self.mapped('company_id').use_payment_pro
payment_pro = self._context.get('force_payment_pro')
# si force_payment_pro se pasa como False estamos forzando no usar payment pro, vamos a metodo original
Expand Down

0 comments on commit 76cef89

Please sign in to comment.