From 2753707989bf21e61275cdd7d98c38be404b5471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Honor=C3=A9?= Date: Tue, 10 Dec 2024 10:00:00 +0100 Subject: [PATCH] [ADD] mis_builder_budget Add active field on mis.budget.by.account model and related views --- mis_builder_budget/models/mis_budget_by_account.py | 1 + mis_builder_budget/views/mis_budget_by_account.xml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/mis_builder_budget/models/mis_budget_by_account.py b/mis_builder_budget/models/mis_budget_by_account.py index 16aa16fd0..5090e1a2f 100644 --- a/mis_builder_budget/models/mis_budget_by_account.py +++ b/mis_builder_budget/models/mis_budget_by_account.py @@ -16,3 +16,4 @@ class MisBudgetByAccount(models.Model): allow_items_overlap = fields.Boolean( help="If checked, overlap between budget items is allowed" ) + active = fields.Boolean(default=True, copy=False) diff --git a/mis_builder_budget/views/mis_budget_by_account.xml b/mis_builder_budget/views/mis_budget_by_account.xml index 1dc2c82b8..cd1dc160a 100644 --- a/mis_builder_budget/views/mis_budget_by_account.xml +++ b/mis_builder_budget/views/mis_budget_by_account.xml @@ -41,6 +41,7 @@ + @@ -65,6 +66,12 @@ + +