Register all buttons are registered in ir.model.button

issue6389
review36621002
This commit is contained in:
Sergi Almacellas Abellana
2018-03-01 12:42:04 +01:00
parent 8a1bc6d656
commit bd2189127b
3 changed files with 17 additions and 16 deletions
+8
View File
@@ -150,6 +150,9 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.button" id="invoice_cancel_button">
<field name="name">cancel</field>
<field name="string">Cancel</field>
<field name="confirm">Are you sure to cancel the invoice?</field>
<field name="help">Cancel the invoice</field>
<field name="model" search="[('model', '=', 'account.invoice')]"/>
</record>
<record model="ir.model.button-res.group"
@@ -160,6 +163,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.button" id="invoice_draft_button">
<field name="name">draft</field>
<field name="string">Draft</field>
<field name="model" search="[('model', '=', 'account.invoice')]"/>
</record>
<record model="ir.model.button-res.group"
@@ -170,6 +174,8 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.button" id="invoice_validate_button">
<field name="name">validate_invoice</field>
<field name="string">Validate</field>
<field name="help">Also known as Pro Forma</field>
<field name="model" search="[('model', '=', 'account.invoice')]"/>
</record>
<record model="ir.model.button-res.group"
@@ -180,6 +186,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.button" id="invoice_post_button">
<field name="name">post</field>
<field name="string">Post</field>
<field name="model" search="[('model', '=', 'account.invoice')]"/>
</record>
<record model="ir.model.button-res.group"
@@ -189,6 +196,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.model.button" id="invoice_pay_button">
<field name="name">pay</field>
<field name="string">Pay</field>
<field name="model" search="[('model', '=', 'account.invoice')]"/>
</record>
<record model="ir.model.button-res.group"
+5 -11
View File
@@ -47,17 +47,11 @@ this repository contains the full copyright notices and license terms. -->
<field name="total_amount" xalign="1.0" xexpand="0"/>
</group>
<group col="-1" colspan="4" id="buttons">
<button name="cancel" string="Cancel"
icon="tryton-cancel"
confirm="Are you sure to cancel the invoice?"/>
<button name="draft" string="Draft"
icon="tryton-go-previous"/>
<button name="validate_invoice"
string="Validate"
help="Also known as Pro Forma"
icon="tryton-go-next"/>
<button name="post" string="Post" icon="tryton-ok"/>
<button name="pay" string="Pay" icon="tryton-go-next"/>
<button name="cancel" icon="tryton-cancel"/>
<button name="draft" icon="tryton-go-previous"/>
<button name="validate_invoice" icon="tryton-go-next"/>
<button name="post" icon="tryton-ok"/>
<button name="pay" icon="tryton-go-next"/>
</group>
</group>
</group>
+4 -5
View File
@@ -14,9 +14,8 @@ this repository contains the full copyright notices and license terms. -->
<field name="state"/>
<field name="amount_to_pay_today"/>
<field name="description"/>
<button name="cancel" string="Cancel" tree_invisible="1"
confirm="Are you sure to cancel the invoice?"/>
<button name="draft" string="Draft" tree_invisible="1"/>
<button name="validate_invoice" string="Validate" tree_invisible="1"/>
<button name="post" string="Post" tree_invisible="1"/>
<button name="cancel" tree_invisible="1"/>
<button name="draft" tree_invisible="1"/>
<button name="validate_invoice" tree_invisible="1"/>
<button name="post" tree_invisible="1"/>
</tree>