From 791dea379b683c143b0e38f43d3883d74f1b0fe1 Mon Sep 17 00:00:00 2001 From: RisvanaCybro Date: Mon, 13 May 2024 12:58:59 +0530 Subject: [PATCH] May 13: [FIX] Bug Fixed 'base_accounting_kit' --- base_accounting_kit/doc/RELEASE_NOTES.md | 8 ++++++++ base_accounting_kit/models/account_asset.py | 4 ++-- base_accounting_kit/report/report_financial.py | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/base_accounting_kit/doc/RELEASE_NOTES.md b/base_accounting_kit/doc/RELEASE_NOTES.md index 654f3fc21..592b6d44f 100644 --- a/base_accounting_kit/doc/RELEASE_NOTES.md +++ b/base_accounting_kit/doc/RELEASE_NOTES.md @@ -71,3 +71,11 @@ ### UPDT - Automatic Asset Creation Bug Fix + +### 13.04.2024 + +### Version 16.0.2.0.13 + +### UPDT + +- Invalid Field Attributes Bug Fix diff --git a/base_accounting_kit/models/account_asset.py b/base_accounting_kit/models/account_asset.py index 9ebf7432e..ec6e30f81 100644 --- a/base_accounting_kit/models/account_asset.py +++ b/base_accounting_kit/models/account_asset.py @@ -45,7 +45,7 @@ class AccountAssetCategory(models.Model): default=lambda self: self.env[ 'res.currency'].search( [('name', '=', 'USD')]).id, - readonly=True, hide=True) + readonly=True, invisible=True) account_analytic_id = fields.Many2one('account.analytic.account', string='Analytic Account', domain="[('company_id', '=', company_id)]") @@ -583,7 +583,7 @@ class AccountAssetAsset(models.Model): return depreciation_ids.create_grouped_move() return depreciation_ids.create_move() - @api.model + @api.model_create_multi def create(self, vals): asset = super(AccountAssetAsset, self.with_context(mail_create_nolog=True)).create(vals) diff --git a/base_accounting_kit/report/report_financial.py b/base_accounting_kit/report/report_financial.py index 92cad9a1c..15ed27e26 100644 --- a/base_accounting_kit/report/report_financial.py +++ b/base_accounting_kit/report/report_financial.py @@ -27,6 +27,7 @@ from odoo import api, fields, models # --------------------------------------------------------- class AccountTypes(models.Model): _name = "account.account.type" + _description = "Account Types" name = fields.Char(string='Account Type', required=True, translate=True) type = fields.Selection([