Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] account_payment_pro: fix default partner in move lines #582

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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