oca-ocb-l10n_europe/odoo-bringout-oca-ocb-l10n_be/l10n_be/models/account_journal.py
Ernad Husremovic 7721452493 19.0 vanilla
2026-03-09 09:31:28 +01:00

11 lines
405 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class AccountJournal(models.Model):
_inherit = 'account.journal'
invoice_reference_model = fields.Selection(selection_add=[
('be', 'Belgium (+++000/2024/00182+++)')
], ondelete={'be': lambda recs: recs.write({'invoice_reference_model': 'odoo'})})