flectra/addons/account_asset/wizard/sale_asset_wizard_view.xml

37 lines
1.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<flectra>
<record id="asset_sale_form_view" model="ir.ui.view">
<field name="name">sale.asset.wizard</field>
<field name="model">sale.asset.wizard</field>
<field name="arch" type="xml">
<form>
<group col="4">
<field name="asset_id" readonly="1"/>
<field name="product_id" readonly="1"/>
<field name="asset_category_id" readonly="1"/>
<field name="depreciated_amount" readonly="1" invisible="1"/>
<field name="sale_date"/>
<field name="partner_id"/>
<field name="sale_value"/>
</group>
<footer>
<button name="sale_asset" string="Confirm"
type="object"
class="oe_highlight" context="{}"/>
<button string="Cancel" class="oe_highlight"
special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="asset_sale_action" model="ir.actions.act_window">
<field name="name">Sale</field>
<field name="res_model">sale.asset.wizard</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
</flectra>