diff --git a/addons/account/models/account.py b/addons/account/models/account.py index b9d5b680820..02188a2ba71 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -35,6 +35,7 @@ class AccountAccountTag(models.Model): name = fields.Char(required=True) applicability = fields.Selection([('accounts', 'Accounts'), ('taxes', 'Taxes')], required=True, default='accounts') color = fields.Integer('Color Index', default=10) + active = fields.Boolean(default=True, help="Set active to false to hide the Account Tag without removing it.") #---------------------------------------------------------- # Accounts @@ -236,6 +237,7 @@ class AccountJournal(models.Model): name = fields.Char(string='Journal Name', required=True) code = fields.Char(string='Short Code', size=5, required=True, help="The journal entries of this journal will be named using this prefix.") + active = fields.Boolean(default=True, help="Set active to false to hide the Journal without removing it.") type = fields.Selection([ ('sale', 'Sale'), ('purchase', 'Purchase'), diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index 1f78b86b9bd..0d1ee78eb16 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -230,6 +230,7 @@ + @@ -245,6 +246,11 @@
+
+ +