Skip to content

Commit

Permalink
[FIX] account_payment_pro: add multiple fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rov-adhoc committed Jan 14, 2025
1 parent 390d5a1 commit 94db432
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion account_payment_pro/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def action_register_payment(self):
# We set this because if became from other view and in the context has 'create=False'
# you can't crate payment lines (for ej: subscription)
'create': True,
'default_to_pay_amount': abs(sum(line.amount_residual for line in to_pay_move_lines)),
'default_company_id': company_id,
},
'target': 'current',
Expand Down
2 changes: 1 addition & 1 deletion account_payment_pro/models/account_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def _get_trigger_fields_to_synchronize(self):
# triggereando un write y luego llamando a este metodo y dando error, por ahora no encontramos una mejor forma
# esto esta ligado de alguna manera a un llamado que se hace dos veces por "culpa" del método
# "_inverse_amount_company_currency". Si bien no es elegante para todas las pruebas que hicimos funcionó bien.
if self.mapped('open_move_line_ids'):
if self.mapped('move_id.line_ids'):
res = res + ('force_amount_company_currency',)
return res + ('write_off_amount', 'write_off_type_id',)

Expand Down

0 comments on commit 94db432

Please sign in to comment.