[FIX] account_asset: compute depreciation board

From af61494
Allow to compute the depreciation when the asset is in state: draft
This commit is contained in:
Goffin Simon 2016-04-21 10:50:44 +02:00
parent db699e86b4
commit 7f05692cb9
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@
</group>
</form>
</field>
<button type="object" name="compute_depreciation_board" string="Compute" icon="terp-stock_format-scientific" colspan="2" invisible="1"/>
<button type="object" name="compute_depreciation_board" string="Compute" icon="terp-stock_format-scientific" colspan="2" attrs="{'invisible':[('state','in',('close','open'))]}"/>
</page>
<page string="History">
<field name="account_move_line_ids" readonly="1"/>