summaryrefslogtreecommitdiff
path: root/addons/l10n_be/models/account_journal.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/l10n_be/models/account_journal.py')
-rw-r--r--addons/l10n_be/models/account_journal.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/l10n_be/models/account_journal.py b/addons/l10n_be/models/account_journal.py
new file mode 100644
index 00000000..9fc1baf7
--- /dev/null
+++ b/addons/l10n_be/models/account_journal.py
@@ -0,0 +1,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=[
+ ('be', 'Belgium')
+ ], ondelete={'be': lambda recs: recs.write({'invoice_reference_model': 'odoo'})})
+