Skip to content

Commit

Permalink
Merge commit 'refs/pull/129283/head' of https://github.com/odoo/odoo
Browse files Browse the repository at this point in the history
…into 16.0-3085
  • Loading branch information
docker-odoo committed Jul 21, 2023
2 parents cf17c73 + 1f18e4b commit 8001107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/l10n_latam_check/models/account_payment.py
Expand Up @@ -273,7 +273,7 @@ def _get_trigger_fields_to_synchronize(self):
def _prepare_move_line_default_vals(self, write_off_line_vals=None):
""" Add check name and operation on liquidity line """
res = super()._prepare_move_line_default_vals(write_off_line_vals=write_off_line_vals)
check = self if (self.payment_method_line_id.code == 'new_third_party_checks' or self.l10n_latam_manual_checks) \
check = self if (self.payment_method_line_id.code == 'new_third_party_checks' or (self.payment_method_line_id.code == 'check_printing' and self.l10n_latam_manual_checks)) \
else self.l10n_latam_check_id
if check:
document_name = (_('Check %s received') if self.payment_type == 'inbound' else _('Check %s delivered')) % (
Expand Down

0 comments on commit 8001107

Please sign in to comment.