You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.3 KiB
29 lines
1.3 KiB
<openerp>
|
|
<data>
|
|
<record id="button_wizard" model="ir.ui.view">
|
|
<field name="name">button.wizard</field>
|
|
<field name="model">split.button.wiz</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<p>Enter number of order lines by the order of which the sale order to be split .</p>
|
|
<group> <group><field name="line_count"/></group><group></group></group>
|
|
<footer>
|
|
<button name="confirm_split" type="object" string="Split" class="oe_highlight"/>
|
|
<button string="Cancel" class="btn-default" special="cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="sale_split_button" model="ir.ui.view">
|
|
<field name="name">sale_split_button</field>
|
|
<field name="model">sale.order</field>
|
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='state']" position="before">
|
|
<button name="button_split" type="object" states="draft" string="Split Quotation" attrs="{'invisible': [('state','not in', ('draft'))]}"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|