From 4a716c29b9ad49eb3de3fbfc6c7fe5a4542509be Mon Sep 17 00:00:00 2001 From: RisvanaCybro Date: Mon, 13 May 2024 12:58:31 +0530 Subject: [PATCH] May 13: [FIX] Bug Fixed 'base_account_budget' --- base_account_budget/models/account_budget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base_account_budget/models/account_budget.py b/base_account_budget/models/account_budget.py index c4c0f3d23..c0c11252c 100644 --- a/base_account_budget/models/account_budget.py +++ b/base_account_budget/models/account_budget.py @@ -45,7 +45,7 @@ class AccountBudgetPost(models.Model): if not account_ids: raise ValidationError(_('The budget must have at least one account.')) - @api.model + @api.model_create_multi def create(self, vals): self._check_account_ids(vals) return super(AccountBudgetPost, self).create(vals) @@ -70,7 +70,7 @@ class Budget(models.Model): ('confirm', 'Confirmed'), ('validate', 'Validated'), ('done', 'Done') - ], 'Status', default='draft', index=True, required=True, readonly=True, copy=False, track_visibility='always') + ], 'Status', default='draft', index=True, required=True, readonly=True, copy=False) budget_line = fields.One2many('budget.lines', 'budget_id', 'Budget Lines', states={'done': [('readonly', True)]}, copy=True) company_id = fields.Many2one('res.company', 'Company', required=True,