From f79571500e9798d2c3493b5d9ea107b8fe9f10f0 Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Mon, 19 Jun 2023 12:32:56 +0530 Subject: [PATCH] Jun 19 : [FIX] Bug Fixed 'base_accounting_kit' --- base_accounting_kit/__manifest__.py | 2 +- base_accounting_kit/doc/RELEASE_NOTES.md | 7 ++++++- base_accounting_kit/models/account_asset.py | 20 +++++++++---------- .../views/account_asset_views.xml | 4 ++-- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/base_accounting_kit/__manifest__.py b/base_accounting_kit/__manifest__.py index 90ac321ad..9ac03723b 100644 --- a/base_accounting_kit/__manifest__.py +++ b/base_accounting_kit/__manifest__.py @@ -22,7 +22,7 @@ { 'name': 'Odoo 16 Full Accounting Kit', - 'version': '16.0.2.0.3', + 'version': '16.0.2.0.4', 'category': 'Accounting', 'live_test_url': 'https://www.youtube.com/watch?v=peAp2Tx_XIs', 'summary': """ Asset and Budget Management, diff --git a/base_accounting_kit/doc/RELEASE_NOTES.md b/base_accounting_kit/doc/RELEASE_NOTES.md index b1738a005..9f5dec2f2 100644 --- a/base_accounting_kit/doc/RELEASE_NOTES.md +++ b/base_accounting_kit/doc/RELEASE_NOTES.md @@ -12,5 +12,10 @@ #### 09.06.2023 #### Version 16.0.2.0.3 -#### IMP +#### UPDT +- Bug Fix + +#### 15.06.2023 +#### Version 16.0.2.0.4 +#### UPDT - Bug Fix \ No newline at end of file diff --git a/base_accounting_kit/models/account_asset.py b/base_accounting_kit/models/account_asset.py index ed467c2ec..72fb2bec7 100644 --- a/base_accounting_kit/models/account_asset.py +++ b/base_accounting_kit/models/account_asset.py @@ -53,16 +53,16 @@ class AccountAssetCategory(models.Model): string='Asset Account', required=True, domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=', 'liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=', 'liability_credit_card'),('deprecated', '=', False)]", help="Account used to record the purchase of the asset at its original price.") - account_depreciation_id = fields.Many2one('account.account', - string='Depreciation Entries: Asset Account', - required=True, - domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=', 'liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=', 'liability_credit_card'),('deprecated', '=', False), ('company_id', '=', company_id)]", - help="Account used in the depreciation entries, to decrease the asset value.") - account_depreciation_expense_id = fields.Many2one('account.account', - string='Depreciation Entries: Expense Account', - required=True, - domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=','liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=','liability_credit_card'),('deprecated', '=', False), ('company_id', '=', company_id)]", - help="Account used in the periodical entries, to record a part of the asset as expense.") + account_depreciation_id = fields.Many2one( + 'account.account', string='Depreciation Entries: Asset Account', + required=True, + domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=', 'liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=', 'liability_credit_card'),('deprecated', '=', False),('company_id', '=', company_id)]", + help="Account used in the depreciation entries, to decrease the asset value.") + account_depreciation_expense_id = fields.Many2one( + 'account.account', string='Depreciation Entries: Expense Account', + required=True, + domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=','liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=','liability_credit_card'),('deprecated', '=', False),('company_id', '=', company_id)]", + help="Account used in the periodical entries, to record a part of the asset as expense.") journal_id = fields.Many2one('account.journal', string='Journal', required=True) method = fields.Selection( diff --git a/base_accounting_kit/views/account_asset_views.xml b/base_accounting_kit/views/account_asset_views.xml index ca1ee8cb2..baedc0349 100644 --- a/base_accounting_kit/views/account_asset_views.xml +++ b/base_accounting_kit/views/account_asset_views.xml @@ -35,12 +35,12 @@