flectra/addons/stock_account/wizard/stock_change_standard_price_views.xml

40 lines
1.8 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<data>
<record id="view_change_standard_price" model="ir.ui.view">
<field name="name">Change Standard Price</field>
<field name="model">stock.change.standard.price</field>
<field name="arch" type="xml">
<form string="Change Standard Price">
<separator string="Change Price"/>
<field name="counterpart_account_id_required" invisible="1"/>
<group>
<group>
<field name="new_price" string="Cost"/>
</group>
<group>
<field name="counterpart_account_id"
attrs="{'invisible': [('counterpart_account_id_required', '=', False)], 'required': [('counterpart_account_id_required', '=', True)]}"/>
</group>
</group>
<footer>
<button name="change_price" string="_Apply" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-default" special="cancel" />
</footer>
</form>
</field>
</record>
<record id="action_view_change_standard_price" model="ir.actions.act_window">
<field name="name">Change Standard Price</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">stock.change.standard.price</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="view_change_standard_price"/>
<field name="target">new</field>
</record>
</data>
2018-01-16 11:34:37 +01:00
</flectra>