summaryrefslogtreecommitdiff
path: root/addons/l10n_no/models/account_journal.py
blob: fd75a635dd9aa178e4c57038566d9e7fb5eb7c38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# -*- 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=[
        ('no', 'Norway')
    ], ondelete={'no': lambda recs: recs.write({'invoice_reference_model': 'odoo'})})