Skip to content

Commit 12f0053

Browse files
committed
[12.0][FIX] add riba partner bank to out_refund for compensated riba
1 parent f01ef9c commit 12f0053

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • l10n_it_ricevute_bancarie/models/account

l10n_it_ricevute_bancarie/models/account/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _onchange_riba_partner_bank_id(self):
159159
bank_id = None
160160
if (
161161
self.partner_id and self.payment_term_id.riba
162-
and self.type == 'out_invoice'
162+
and self.type in ['out_invoice', 'out_refund']
163163
):
164164
bank_id = self.partner_id.mapped('bank_ids')
165165
self.riba_partner_bank_id = bank_id[0] if bank_id else None

0 commit comments

Comments
 (0)