Register all buttons are registered in ir.model.button
issue6389
This commit is contained in:
parent
6a60befe94
commit
851e672371
7
sale.xml
7
sale.xml
@ -42,5 +42,12 @@ copyright notices and license terms. -->
|
|||||||
<field name="model">sale.sale,-1</field>
|
<field name="model">sale.sale,-1</field>
|
||||||
<field name="action" ref="act_sale_reconcile"/>
|
<field name="action" ref="act_sale_reconcile"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
<!-- buttons -->
|
||||||
|
<record model="ir.model.button" id="sale_payment_wizard_button">
|
||||||
|
<field name="name">wizard_sale_payment</field>
|
||||||
|
<field name="string">Pay</field>
|
||||||
|
<field name="model" search="[('model', '=', 'sale.sale')]"/>
|
||||||
|
</record>
|
||||||
</data>
|
</data>
|
||||||
</tryton>
|
</tryton>
|
||||||
|
@ -3,20 +3,13 @@
|
|||||||
The COPYRIGHT file at the top level of this repository contains the full
|
The COPYRIGHT file at the top level of this repository contains the full
|
||||||
copyright notices and license terms. -->
|
copyright notices and license terms. -->
|
||||||
<data>
|
<data>
|
||||||
<xpath
|
<xpath expr="/form/notebook/page[@id='sale']/group/group[@id='buttons']" position="replace_attributes">
|
||||||
expr="/form/notebook/page[@id="sale"]/group/group[@id="buttons"]"
|
|
||||||
position="replace_attributes">
|
|
||||||
<group col="10" colspan="2" id="buttons"/>
|
<group col="10" colspan="2" id="buttons"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath
|
<xpath expr="/form/notebook/page[@id='sale']/group/group/button[@name='process']" position="after">
|
||||||
expr="/form/notebook/page[@id="sale"]/group/group/button[@name="process"]"
|
<button name="wizard_sale_payment" icon="tryton-go-next"/>
|
||||||
position="after">
|
|
||||||
<button name="wizard_sale_payment" string="Pay"
|
|
||||||
icon="tryton-go-next"/>
|
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath
|
<xpath expr="/form/notebook/page[@id='other']" position="after">
|
||||||
expr="/form/notebook/page[@id="other"]"
|
|
||||||
position="after">
|
|
||||||
<page string="Payments" col="4" id="payments">
|
<page string="Payments" col="4" id="payments">
|
||||||
<field name="payments" colspan="4" readonly="1"/>
|
<field name="payments" colspan="4" readonly="1"/>
|
||||||
<label name="paid_amount"/>
|
<label name="paid_amount"/>
|
||||||
@ -25,9 +18,7 @@ copyright notices and license terms. -->
|
|||||||
<field name="residual_amount"/>
|
<field name="residual_amount"/>
|
||||||
</page>
|
</page>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath
|
<xpath expr="/form/notebook/page[@id='other']/field[@name='shop']" position="after">
|
||||||
expr="/form/notebook/page[@id='other']/field[@name='shop']"
|
|
||||||
position="after">
|
|
||||||
<label name="sale_device"/>
|
<label name="sale_device"/>
|
||||||
<field name="sale_device"/>
|
<field name="sale_device"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
Loading…
Reference in New Issue
Block a user