| 1 | # -*- coding: utf-8 -*- |
| 2 | # Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 3 | |
| 4 | from odoo import fields, models |
| 5 | |
| 6 | |
| 7 | class AccountJournal(models.Model): |
| 8 | _inherit = 'account.journal' |
| 9 | |
| 10 | invoice_reference_model = fields.Selection(selection_add=[ |
| 11 | ('no', 'Norway (000001024000083)') |
| 12 | ], ondelete={'no': lambda recs: recs.write({'invoice_reference_model': 'odoo'})}) |