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="action" ref="act_sale_reconcile"/>
|
||||
</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>
|
||||
</tryton>
|
||||
|
@ -3,20 +3,13 @@
|
||||
The COPYRIGHT file at the top level of this repository contains the full
|
||||
copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/notebook/page[@id="sale"]/group/group[@id="buttons"]"
|
||||
position="replace_attributes">
|
||||
<xpath expr="/form/notebook/page[@id='sale']/group/group[@id='buttons']" position="replace_attributes">
|
||||
<group col="10" colspan="2" id="buttons"/>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="/form/notebook/page[@id="sale"]/group/group/button[@name="process"]"
|
||||
position="after">
|
||||
<button name="wizard_sale_payment" string="Pay"
|
||||
icon="tryton-go-next"/>
|
||||
<xpath expr="/form/notebook/page[@id='sale']/group/group/button[@name='process']" position="after">
|
||||
<button name="wizard_sale_payment" icon="tryton-go-next"/>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="/form/notebook/page[@id="other"]"
|
||||
position="after">
|
||||
<xpath expr="/form/notebook/page[@id='other']" position="after">
|
||||
<page string="Payments" col="4" id="payments">
|
||||
<field name="payments" colspan="4" readonly="1"/>
|
||||
<label name="paid_amount"/>
|
||||
@ -25,9 +18,7 @@ copyright notices and license terms. -->
|
||||
<field name="residual_amount"/>
|
||||
</page>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="/form/notebook/page[@id='other']/field[@name='shop']"
|
||||
position="after">
|
||||
<xpath expr="/form/notebook/page[@id='other']/field[@name='shop']" position="after">
|
||||
<label name="sale_device"/>
|
||||
<field name="sale_device"/>
|
||||
</xpath>
|
||||
|
Loading…
Reference in New Issue
Block a user