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: Remove redundant default_to_pay_amount to prevent inconsistencies with credit notes #584

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_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