From 4cea10c178992edae793411c88c7a54395d88fee Mon Sep 17 00:00:00 2001 From: "Ujjvala Collins (OpenERP)" Date: Wed, 6 Jul 2011 11:25:18 +0530 Subject: [PATCH 1/3] [ADD] account_asset: Added tooltip for state field on asset. bzr revid: uco@tinyerp.com-20110706055518-dh32a3gxp7n8rkjk --- addons/account_asset/account_asset.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/account_asset/account_asset.py b/addons/account_asset/account_asset.py index 1f3eca5f20c..889afdd234a 100644 --- a/addons/account_asset/account_asset.py +++ b/addons/account_asset/account_asset.py @@ -211,7 +211,10 @@ class account_asset_asset(osv.osv): 'parent_id': fields.many2one('account.asset.asset', 'Parent Asset'), 'child_ids': fields.one2many('account.asset.asset', 'parent_id', 'Children Assets'), 'purchase_date': fields.date('Purchase Date', required=True, readonly=False, states={'close':[('readonly',True)]}), - 'state': fields.selection([('draft','Draft'),('open','Running'),('close','Close')], 'State', required=True), + 'state': fields.selection([('draft','Draft'),('open','Running'),('close','Close')], 'State', required=True, + help="When an asset is created, the state is 'Draft'.\n" \ + "If the asset is owned by the company or an individual then it is called a confirmed asset, the state is 'Running'.\n" \ + "An asset can be closed before or after all depreciation lines are posted, the state is 'Close'."), 'active': fields.boolean('Active', select=2), 'partner_id': fields.many2one('res.partner', 'Partner', readonly=False, states={'close':[('readonly',True)]}), 'method': fields.selection([('linear','Linear'),('degressive','Degressive')], 'Computation Method', required=True, readonly=True, states={'draft':[('readonly',False)]}, help="Linear: Calculated on basis of Gross Value/During (interval) \ From 4a534a42fe82dc0ef3166d7c5229857c81b0a567 Mon Sep 17 00:00:00 2001 From: "Ujjvala Collins (OpenERP)" Date: Wed, 6 Jul 2011 11:33:39 +0530 Subject: [PATCH 2/3] [IMP] account_asset: Corrected indentation. bzr revid: uco@tinyerp.com-20110706060339-ojfwsl1y5djk14ga --- addons/account_asset/account_asset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account_asset/account_asset.py b/addons/account_asset/account_asset.py index 889afdd234a..65583359c91 100644 --- a/addons/account_asset/account_asset.py +++ b/addons/account_asset/account_asset.py @@ -212,9 +212,9 @@ class account_asset_asset(osv.osv): 'child_ids': fields.one2many('account.asset.asset', 'parent_id', 'Children Assets'), 'purchase_date': fields.date('Purchase Date', required=True, readonly=False, states={'close':[('readonly',True)]}), 'state': fields.selection([('draft','Draft'),('open','Running'),('close','Close')], 'State', required=True, - help="When an asset is created, the state is 'Draft'.\n" \ - "If the asset is owned by the company or an individual then it is called a confirmed asset, the state is 'Running'.\n" \ - "An asset can be closed before or after all depreciation lines are posted, the state is 'Close'."), + help="When an asset is created, the state is 'Draft'.\n" \ + "If the asset is owned by the company or an individual then it is called a confirmed asset, the state is 'Running'.\n" \ + "An asset can be closed before or after all depreciation lines are posted, the state is 'Close'."), 'active': fields.boolean('Active', select=2), 'partner_id': fields.many2one('res.partner', 'Partner', readonly=False, states={'close':[('readonly',True)]}), 'method': fields.selection([('linear','Linear'),('degressive','Degressive')], 'Computation Method', required=True, readonly=True, states={'draft':[('readonly',False)]}, help="Linear: Calculated on basis of Gross Value/During (interval) \ From bfea463c8378bdaeea8bfdb38b6b47288573b1a9 Mon Sep 17 00:00:00 2001 From: "Ujjvala Collins (OpenERP)" Date: Wed, 6 Jul 2011 12:16:50 +0530 Subject: [PATCH 3/3] [IMP] account_asset: Corrected tooltip. bzr revid: uco@tinyerp.com-20110706064650-8473af623o20p886 --- addons/account_asset/account_asset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_asset/account_asset.py b/addons/account_asset/account_asset.py index 65583359c91..19cdca304df 100644 --- a/addons/account_asset/account_asset.py +++ b/addons/account_asset/account_asset.py @@ -213,7 +213,7 @@ class account_asset_asset(osv.osv): 'purchase_date': fields.date('Purchase Date', required=True, readonly=False, states={'close':[('readonly',True)]}), 'state': fields.selection([('draft','Draft'),('open','Running'),('close','Close')], 'State', required=True, help="When an asset is created, the state is 'Draft'.\n" \ - "If the asset is owned by the company or an individual then it is called a confirmed asset, the state is 'Running'.\n" \ + "If the asset is confirmed, the state is 'Running'.\n" \ "An asset can be closed before or after all depreciation lines are posted, the state is 'Close'."), 'active': fields.boolean('Active', select=2), 'partner_id': fields.many2one('res.partner', 'Partner', readonly=False, states={'close':[('readonly',True)]}),