improve depreciation line view

bzr revid: bde@tiny2-desktop-20110516131232-6l42f9jx53g8sr4v
This commit is contained in:
bde 2011-05-16 18:42:32 +05:30
parent a2ffcb5888
commit 8391ec8747
2 changed files with 4 additions and 4 deletions

View File

@ -301,7 +301,7 @@ class account_asset_depreciation_line(osv.osv):
'depreciated_value': fields.float('Amount Already Depreciated', required=True),
'depreciation_date': fields.char('Depreciation Date', size=64, select=1),
'move_id': fields.many2one('account.move', 'Depreciation Entry'),
'move_check': fields.function(_get_move_check, method=True, type='boolean', string='Move Included', store=True)
'move_check': fields.function(_get_move_check, method=True, type='boolean', string='Posted', store=True)
}
def create_move(self, cr, uid,ids, context=None):

View File

@ -80,8 +80,8 @@
<newline/>
</page>
<page string="Depreciation board">
<field name="depreciation_line_ids" colspan="4" nolabel="1" mode="tree,graph">
<tree>
<field name="depreciation_line_ids" colspan="4" nolabel="1" mode="tree,graph" >
<tree colors="blue:(move_check, '=', False)">
<field name="depreciation_date"/>
<field name="sequence" invisible="1"/>
<field name="amount"/>
@ -96,7 +96,7 @@
<field name="depreciated_value"/>
</graph>
</field>
<button type="object" name="compute_depreciation_board" string="Compute" icon="terp-stock_format-scientific" colspan="2"/>
<button type="object" attrs="{'invisible':[('state','=','draft')]}" name="compute_depreciation_board" string="Compute" icon="terp-stock_format-scientific" colspan="2"/>
</page>
<page string="History">
<field name="account_move_line_ids" colspan="4" nolabel="1" readonly="1"/>