Register all buttons are registered in ir.model.button

issue6389
This commit is contained in:
Raimon Esteve 2018-08-28 08:22:20 +02:00
parent 6a60befe94
commit 851e672371
2 changed files with 12 additions and 14 deletions

View File

@ -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>

View File

@ -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=&quot;sale&quot;]/group/group[@id=&quot;buttons&quot;]"
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=&quot;sale&quot;]/group/group/button[@name=&quot;process&quot;]"
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=&quot;other&quot;]"
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>