From f8c8333bbd079465092f78e033c40fa3316aefc0 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Fri, 25 May 2007 10:00:20 +0000 Subject: [PATCH] Simulation bugfixes Asset cleaning Accounting general cleaning bzr revid: fp@tinyerp.com-20567ff549f0dbcdcc593e959d310717d9074499 --- addons/account/account_view.xml | 2 +- addons/account_asset/account_asset.py | 14 ++++----- addons/account_asset/account_asset_view.xml | 31 ++++++++++--------- .../account_simulation/account_simulation.py | 6 ++-- .../account_simulation_view.xml | 2 -- 5 files changed, 27 insertions(+), 28 deletions(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 0152296abd4..0568fcb41d6 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -790,7 +790,7 @@ - + diff --git a/addons/account_asset/account_asset.py b/addons/account_asset/account_asset.py index 27677e2cc1d..f5d597ef55f 100644 --- a/addons/account_asset/account_asset.py +++ b/addons/account_asset/account_asset.py @@ -234,16 +234,16 @@ class account_asset_property(osv.osv): _description = 'Asset property' _columns = { 'name': fields.char('Method name', size=64, select=1), - 'type': fields.selection([('direct','Direct'),('indirect','Indirect')], 'Asset type', select=2, required=True), + 'type': fields.selection([('direct','Direct'),('indirect','Indirect')], 'Depr. method type', select=2, required=True), 'asset_id': fields.many2one('account.asset.asset', 'Asset', required=True), 'account_asset_id': fields.many2one('account.account', 'Asset account', required=True), - 'account_actif_id': fields.many2one('account.account', 'Actif account', required=True), + 'account_actif_id': fields.many2one('account.account', 'Depreciation account', required=True), 'journal_id': fields.many2one('account.journal', 'Journal', required=True), 'journal_analytic_id': fields.many2one('account.analytic.journal', 'Analytic journal'), - 'account_analytic_id': fields.many2one('account.analytic.journal', 'Analytic journal'), + 'account_analytic_id': fields.many2one('account.analytic.account', 'Analytic account'), - 'method': fields.selection([('linear','Linear'),('progressif','Progressive')], 'Assesment method', required=True), - 'method_time': fields.selection([('delay','Delay'),('end','Ending period')], 'Time Method', required=True), + 'method': fields.selection([('linear','Linear'),('progressif','Progressive')], 'Computation method', required=True, readonly=True, states={'draft':[('readonly',False)]}), + 'method_time': fields.selection([('delay','Delay'),('end','Ending period')], 'Time method', required=True, readonly=True, states={'draft':[('readonly',False)]}), 'method_delay': fields.integer('Number of interval', readonly=True, states={'draft':[('readonly',False)]}), 'method_period': fields.integer('Period per interval', readonly=True, states={'draft':[('readonly',False)]}), 'method_end': fields.date('Ending date'), @@ -254,7 +254,7 @@ class account_asset_property(osv.osv): 'entry_actif_ids': fields.many2many('account.move.line', 'account_move_asset_actif_entry_rel', 'asset_property_id', 'move_id', 'Asset Entries'), 'board_ids': fields.one2many('account.asset.board', 'asset_id', 'Asset board'), - 'value_total': fields.function(_amount_total, method=True, digits=(16,2),string='Total value'), + 'value_total': fields.function(_amount_total, method=True, digits=(16,2),string='Gross value'), 'value_residual': fields.function(_amount_residual, method=True, digits=(16,2), string='Residual value'), 'state': fields.selection([('draft','Draft'), ('open','Open'), ('close','Close')], 'State', required=True), 'history_ids': fields.one2many('account.asset.property.history', 'asset_property_id', 'History', readonly=True) @@ -284,7 +284,7 @@ class account_asset_property_history(osv.osv): 'name': fields.char('History name', size=64, select=1), 'user_id': fields.many2one('res.users', 'User', required=True), 'date': fields.date('Date', required=True), - 'asset_property_id': fields.many2one('account.asset.property', 'Property', required=True), + 'asset_property_id': fields.many2one('account.asset.property', 'Method', required=True), 'method_delay': fields.integer('Number of interval'), 'method_period': fields.integer('Period per interval'), 'method_end': fields.date('Ending date'), diff --git a/addons/account_asset/account_asset_view.xml b/addons/account_asset/account_asset_view.xml index 6d493857016..64eb38e0ff8 100644 --- a/addons/account_asset/account_asset_view.xml +++ b/addons/account_asset/account_asset_view.xml @@ -69,39 +69,40 @@ -
- - + + + + + - - - - + +