Skip to content

Commit

Permalink
[FIX] account_payment_pro: compute_journal fix
Browse files Browse the repository at this point in the history
closes #525

Signed-off-by: rov-adhoc <[email protected]>
  • Loading branch information
feg-adhoc committed Sep 2, 2024
1 parent 5b67d10 commit 5e22011
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -204,7 +204,7 @@ def _compute_requiere_double_validation(self):
# pay.payment_type == 'inbound' else [('outbound_payment_method_line_ids', '!=', False)]
# pay.available_journal_ids = journals.filtered_domain(filtered_domain)

@api.onchange('company_id')
@api.depends('company_id')
def _compute_available_journal_ids(self):
# Cambiamos el metodo para que traiga los journals de la compañia sobre la cual se esta imputando el pago.
# Le agregamos el onchange de company para asegurarnos de que los available journals se computen siempre
Expand Down

0 comments on commit 5e22011

Please sign in to comment.