diff --git a/base_accounting_kit/__manifest__.py b/base_accounting_kit/__manifest__.py index e1e573a73..7276aa020 100644 --- a/base_accounting_kit/__manifest__.py +++ b/base_accounting_kit/__manifest__.py @@ -22,7 +22,7 @@ { 'name': 'Odoo 14 Full Accounting Kit', - 'version': '14.0.1.3.3', + 'version': '14.0.1.4.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/changelog.md b/base_accounting_kit/doc/changelog.md index 9efeb2333..378ac2104 100644 --- a/base_accounting_kit/doc/changelog.md +++ b/base_accounting_kit/doc/changelog.md @@ -20,4 +20,9 @@ #### UPDT - Field parameter spelling mistake updated. +#### 05.01.2021 +#### Version 14.0.1.4.4 +#### UPDT +- Removed warnings, Updated access rules. + diff --git a/base_accounting_kit/models/account_asset.py b/base_accounting_kit/models/account_asset.py index 4bf3a14bd..387b89f09 100644 --- a/base_accounting_kit/models/account_asset.py +++ b/base_accounting_kit/models/account_asset.py @@ -168,7 +168,7 @@ class AccountAssetAsset(models.Model): method_progress_factor = fields.Float(string='Degressive Factor', readonly=True, default=0.3, states={ 'draft': [('readonly', False)]}) - value_residual = fields.Float(compute='_amount_residual', method=True, + value_residual = fields.Float(compute='_amount_residual', digits=0, string='Residual Value') method_time = fields.Selection( [('number', 'Number of Entries'), ('end', 'Ending Date')], @@ -623,11 +623,9 @@ class AccountAssetDepreciationLine(models.Model): required=True) depreciation_date = fields.Date('Depreciation Date', index=True) move_id = fields.Many2one('account.move', string='Depreciation Entry') - move_check = fields.Boolean(compute='_get_move_check', string='Linked', - track_visibility='always', store=True) + move_check = fields.Boolean(compute='_get_move_check', string='Linked', store=True) move_posted_check = fields.Boolean(compute='_get_move_posted_check', - string='Posted', - track_visibility='always', store=True) + string='Posted', store=True) @api.depends('move_id') def _get_move_check(self): diff --git a/base_accounting_kit/models/account_move.py b/base_accounting_kit/models/account_move.py index 613c2e1eb..e54920dab 100644 --- a/base_accounting_kit/models/account_move.py +++ b/base_accounting_kit/models/account_move.py @@ -35,8 +35,7 @@ class AccountMove(models.Model): asset_depreciation_ids = fields.One2many('account.asset.depreciation.line', 'move_id', - string='Assets Depreciation Lines', - ondelete="restrict") + string='Assets Depreciation Lines') def button_cancel(self): for move in self: diff --git a/base_accounting_kit/security/ir.model.access.csv b/base_accounting_kit/security/ir.model.access.csv index 62bef5697..07d45653c 100644 --- a/base_accounting_kit/security/ir.model.access.csv +++ b/base_accounting_kit/security/ir.model.access.csv @@ -8,6 +8,8 @@ access_followup_line,followup.line,model_followup_line,account.group_account_man access_account_followup_line_user,account.followup.line.user,model_followup_line,account.group_account_user,1,1,1,1 access_account_asset_category,account.asset.category,model_account_asset_category,account.group_account_user,1,0,0,0 +access_asset_modify_user,access_asset_modify_user,model_asset_modify,account.group_account_user,1,0,0,0 +access_asset_modify_manager,access_asset_modify_manager,model_asset_modify,account.group_account_manager,1,1,1,1 access_account_asset_asset,account.asset.asset,model_account_asset_asset,account.group_account_user,1,0,0,0 access_account_asset_category_manager,account.asset.category,model_account_asset_category,account.group_account_manager,1,1,1,1 access_account_asset_asset_manager,account.asset.asset,model_account_asset_asset,account.group_account_manager,1,1,1,1