From 8f4c8ef2dbd6daf7bf4640a392428b43ad5090d3 Mon Sep 17 00:00:00 2001 From: wan Date: Tue, 13 Aug 2019 09:22:20 +0000 Subject: [PATCH] [IMP] account: add the ability to exclude from journal groups Task 2034896 * Change the logic from selecting journals to include, to journals to exclude * Add a placeholder for the account.journal.group name * Rename the field name for back-to-basics closes odoo/odoo#34779 Signed-off-by: oco-odoo --- addons/account/models/account.py | 4 ++-- addons/account/views/account_view.xml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/addons/account/models/account.py b/addons/account/models/account.py index 9f211193ee2..143ca388763 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -546,9 +546,9 @@ class AccountJournalGroup(models.Model): _name = 'account.journal.group' _description = "Account Journal Group" - name = fields.Char("Group Name", required=True, translate=True) + name = fields.Char("Journal Group", required=True, translate=True) company_id = fields.Many2one('res.company', required=True, default=lambda self: self.env.company) - account_journal_ids = fields.Many2many('account.journal', string="Journals", domain="[('company_id', '=', company_id)]") + excluded_journal_ids = fields.Many2many('account.journal', string="Excluded Journals", domain="[('company_id', '=', company_id)]") sequence = fields.Integer(default=10) diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index 3f5b4315069..608265bb51a 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -172,7 +172,7 @@ - + account.journal.search account.journal @@ -200,7 +200,7 @@ - + @@ -214,9 +214,9 @@
- - - + + +