Browse Source

Jun 19 : [FIX] Bug Fixed 'base_accounting_kit'

pull/257/head
AjmalCybro 2 years ago
parent
commit
f79571500e
  1. 2
      base_accounting_kit/__manifest__.py
  2. 7
      base_accounting_kit/doc/RELEASE_NOTES.md
  3. 20
      base_accounting_kit/models/account_asset.py
  4. 4
      base_accounting_kit/views/account_asset_views.xml

2
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,

7
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

20
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(

4
base_accounting_kit/views/account_asset_views.xml

@ -35,12 +35,12 @@
<label for="account_depreciation_id" attrs="{'invisible': [('type','!=','purchase')]}"/>
<label for="account_depreciation_id" string="Recognition Income Account" attrs="{'invisible': [('type','!=','sale')]}"/>
</div>
<field name="account_depreciation_id" nolabel="1"/>
<field name="account_depreciation_id" nolabel="1" groups="base.group_multi_company"/>
<div>
<label for="account_depreciation_expense_id" attrs="{'invisible': [('type','!=','purchase')]}"/>
<label for="account_depreciation_expense_id" string="Recognition Account" attrs="{'invisible': [('type','!=','sale')]}"/>
</div>
<field name="account_depreciation_expense_id" nolabel="1"/>
<field name="account_depreciation_expense_id" nolabel="1" groups="base.group_multi_company"/>
<field name="account_analytic_id" groups="base.group_multi_company"/>
</group>
<group string="Periodicity">

Loading…
Cancel
Save