Skip to content

Commit

Permalink
[MIG] l10n_ch_pain_base: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon authored and ecino committed Oct 19, 2023
1 parent 598b6d9 commit a2c6a1c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions l10n_ch_pain_base/models/account_payment_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,18 @@
class AccountPaymentLine(models.Model):
_inherit = "account.payment.line"

local_instrument = fields.Selection(selection_add=[("CH01", "CH01 (ISR)")])
local_instrument = fields.Selection(
selection_add=[("CH01", "CH01 (ISR)")],
ondelete={
"CH01": "set null"
}
)
communication_type = fields.Selection(
selection_add=[("isr", "ISR"), ("qrr", "QRR")]
selection_add=[("isr", "ISR"), ("qrr", "QRR")],
ondelete={
"isr": "set null",
"qrr": "set null"
}
)

def invoice_reference_type2communication_type(self):
Expand Down

0 comments on commit a2c6a1c

Please sign in to comment.