[FIX] account_asset: Wrong account set in Vendor Bill
When adding a product with an asset type in a vendor bill, the account
set on the line must be the asset account.
Inspired from 11e834a4c1
opw:697557
This commit is contained in:
@@ -24,13 +24,14 @@
|
|||||||
<group string="Journal Entries">
|
<group string="Journal Entries">
|
||||||
<field name="journal_id"/>
|
<field name="journal_id"/>
|
||||||
<div>
|
<div>
|
||||||
<label for="account_asset_id" string="Depreciation Asset Account" attrs="{'invisible': [('type','!=','purchase')]}"/>
|
<!-- DO NOT FORWARDPORT -->
|
||||||
|
<label for="account_asset_id" string="Depreciation Expense Account" attrs="{'invisible': [('type','!=','purchase')]}"/>
|
||||||
<!-- DO NOT FORWARDPORT -->
|
<!-- DO NOT FORWARDPORT -->
|
||||||
<label for="account_asset_id" string="Income Account" attrs="{'invisible': [('type','!=','sale')]}"/>
|
<label for="account_asset_id" string="Income Account" attrs="{'invisible': [('type','!=','sale')]}"/>
|
||||||
</div>
|
</div>
|
||||||
<field name="account_asset_id" nolabel="1" attrs="{'invisible': [('type','=', False)]}"/>
|
<field name="account_asset_id" nolabel="1" attrs="{'invisible': [('type','=', False)]}"/>
|
||||||
<div>
|
<div>
|
||||||
<label for="account_depreciation_id" string="Depreciation Expense Account" attrs="{'invisible': [('type','!=','purchase')]}"/>
|
<label for="account_depreciation_id" string="Depreciation Asset Account" attrs="{'invisible': [('type','!=','purchase')]}"/>
|
||||||
<label for="account_depreciation_id" string="Deferred Revenue Account" attrs="{'invisible': [('type','!=','sale')]}"/>
|
<label for="account_depreciation_id" string="Deferred Revenue Account" attrs="{'invisible': [('type','!=','sale')]}"/>
|
||||||
</div>
|
</div>
|
||||||
<field name="account_depreciation_id" nolabel="1"/>
|
<field name="account_depreciation_id" nolabel="1"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user