[IMP] acc: Add domain on journal field of journal entries

In order to avoid eventual futur issues, this PR add a filter on the
journal field of journal entries to only allow selecting misc journals

task id #2371198

closes odoo/odoo#62331

X-original-commit: 1b273d4c11e3e8d8583de302b71b2522a71f4d1d
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
This commit is contained in:
Nicolas (vin)
2020-11-25 14:12:27 +00:00
parent 994085acf8
commit 723aaa22b2
+2
View File
@@ -1172,6 +1172,8 @@ class AccountMove(models.Model):
move.invoice_filter_type_domain = 'sale'
elif move.is_purchase_document(include_receipts=True):
move.invoice_filter_type_domain = 'purchase'
elif move.move_type == 'entry':
move.invoice_filter_type_domain = 'general'
else:
move.invoice_filter_type_domain = False