From c41e49e93ed8f4f841b8d8caf1ea30b737f654ea Mon Sep 17 00:00:00 2001 From: bosd Date: Sat, 3 Feb 2024 20:31:11 +0100 Subject: [PATCH] [IMP] account_asset_management: simplify,refactor manual depreciation --- .../models/account_asset.py | 8 ---- .../views/account_asset.xml | 48 +------------------ 2 files changed, 1 insertion(+), 55 deletions(-) diff --git a/account_asset_management/models/account_asset.py b/account_asset_management/models/account_asset.py index 6dedc7a79e30..58f302b43ddd 100644 --- a/account_asset_management/models/account_asset.py +++ b/account_asset_management/models/account_asset.py @@ -259,14 +259,6 @@ class AccountAsset(models.Model): states=READONLY_STATES, check_company=True, ) - depreciation_line_manual_ids = fields.One2many( - comodel_name="account.asset.line", - inverse_name="asset_id", - string="Depreciation Lines (manual)", - copy=False, - states=READONLY_STATES, - check_company=True, - ) company_id = fields.Many2one( comodel_name="res.company", string="Company", diff --git a/account_asset_management/views/account_asset.xml b/account_asset_management/views/account_asset.xml index f0af6755e156..599896844c3f 100644 --- a/account_asset_management/views/account_asset.xml +++ b/account_asset_management/views/account_asset.xml @@ -161,8 +161,7 @@ @@ -246,51 +245,6 @@ - - - - - - - - - - -