Browse Source

Aug 17 : [UPDT] Bug Fixed 'base_accounting_kit'

pull/277/head
AjmalCybro 2 years ago
parent
commit
ec3493b0fb
  1. 2
      base_accounting_kit/__manifest__.py
  2. 7
      base_accounting_kit/doc/RELEASE_NOTES.md
  3. 4
      base_accounting_kit/models/account_asset.py
  4. 8
      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.6',
'version': '16.0.2.0.7',
'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

@ -23,4 +23,9 @@
#### 11.07.2023
#### Version 16.0.2.0.5
#### UPDT
- Cash journal Bug Fix
- Cash journal Bug Fix
#### 17.08.2023
#### Version 16.0.2.0.7
#### UPDT
- Asset type Bug Fix

4
base_accounting_kit/models/account_asset.py

@ -54,12 +54,12 @@ class AccountAssetCategory(models.Model):
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',
'account.account', string='Depreciation 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',
'account.account', string='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.")

8
base_accounting_kit/views/account_asset_views.xml

@ -21,7 +21,7 @@
</div>
<group>
<field name="type" invisible="1"/>
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
<field name="company_id" options="{'no_create': True}"/>
<field name="price"/>
</group>
<group string="Journal Entries">
@ -35,13 +35,13 @@
<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" groups="base.group_multi_company"/>
<field name="account_depreciation_id" nolabel="1" />
<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" groups="base.group_multi_company"/>
<field name="account_analytic_id" groups="base.group_multi_company"/>
<field name="account_depreciation_expense_id" nolabel="1"/>
<field name="account_analytic_id"/>
</group>
<group string="Periodicity">
<field name="method_time" string="Time Method Based On" widget="radio" attrs="{'invisible': [('type','!=','purchase')]}"/>

Loading…
Cancel
Save