Register all buttons are registered in ir.model.button
issue6389 review36621002
This commit is contained in:
1 parent
2c60d69bd9
commit
74e9a217e4
2 files changed
+34
-14
No files matched your search
@@ -268,6 +268,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
|
||||
<record model="ir.model.button" id="sale_cancel_button">
|
||||
<field name="name">cancel</field>
|
||||
<field name="string">Cancel</field>
|
||||
<field name="model" search="[('model', '=', 'sale.sale')]"/>
|
||||
</record>
|
||||
<record model="ir.model.button-res.group" id="sale_cancel_button_group_sale">
|
||||
@@ -277,6 +278,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
|
||||
<record model="ir.model.button" id="sale_draft_button">
|
||||
<field name="name">draft</field>
|
||||
<field name="string">Draft</field>
|
||||
<field name="model" search="[('model', '=', 'sale.sale')]"/>
|
||||
</record>
|
||||
<record model="ir.model.button-res.group" id="sale_draft_button_group_sale">
|
||||
@@ -286,6 +288,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
|
||||
<record model="ir.model.button" id="sale_quote_button">
|
||||
<field name="name">quote</field>
|
||||
<field name="string">Quote</field>
|
||||
<field name="model" search="[('model', '=', 'sale.sale')]"/>
|
||||
</record>
|
||||
<record model="ir.model.button-res.group" id="sale_quote_button_group_sale">
|
||||
@@ -295,6 +298,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
|
||||
<record model="ir.model.button" id="sale_confirm_button">
|
||||
<field name="name">confirm</field>
|
||||
<field name="string">Confirm</field>
|
||||
<field name="model" search="[('model', '=', 'sale.sale')]"/>
|
||||
</record>
|
||||
<record model="ir.model.button-res.group" id="sale_confirm_button_group_sale">
|
||||
@@ -304,12 +308,36 @@ this repository contains the full copyright notices and license terms. -->
|
||||
|
||||
<record model="ir.model.button" id="sale_process_button">
|
||||
<field name="name">process</field>
|
||||
<field name="string">Process</field>
|
||||
<field name="model" search="[('model', '=', 'sale.sale')]"/>
|
||||
</record>
|
||||
<record model="ir.model.button-res.group" id="sale_process_button_group_sale">
|
||||
<field name="button" ref="sale_process_button"/>
|
||||
<field name="group" ref="group_sale"/>
|
||||
</record>
|
||||
<record model="ir.model.button" id="sale_modify_header_button">
|
||||
<field name="name">modify_header</field>
|
||||
<field name="string">Modify Header</field>
|
||||
<field name="model" search="[('model', '=', 'sale.sale')]"/>
|
||||
</record>
|
||||
<record model="ir.model.button-res.group" id="sale_modify_header_button_group_sale">
|
||||
<field name="button" ref="sale_modify_header_button"/>
|
||||
<field name="group" ref="group_sale"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.model.button"
|
||||
id="sale_handle_shipment_exception_button">
|
||||
<field name="name">handle_shipment_exception</field>
|
||||
<field name="string">Handle Shipment Exception</field>
|
||||
<field name="model" search="[('model', '=', 'sale.sale')]"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.model.button"
|
||||
id="sale_handle_invoice_exception_button">
|
||||
<field name="name">handle_invoice_exception</field>
|
||||
<field name="string">Handle Invoice Exception</field>
|
||||
<field name="model" search="[('model', '=', 'sale.sale')]"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.sequence.type" id="sequence_type_sale">
|
||||
<field name="name">Sale</field>
|
||||
|
||||
+6
-14
@@ -45,24 +45,16 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<label name="total_amount" xalign="1.0" xexpand="1"/>
|
||||
<field name="total_amount" xalign="1.0" xexpand="0"/>
|
||||
<group col="-1" colspan="2" id="buttons">
|
||||
<button name="cancel" string="Cancel"
|
||||
icon="tryton-cancel"/>
|
||||
<button name="modify_header"
|
||||
string="Modify Header"
|
||||
icon="tryton-executable"/>
|
||||
<button name="draft" string="Draft"/>
|
||||
<button name="quote" string="Quote"
|
||||
icon="tryton-go-next"/>
|
||||
<button name="cancel" icon="tryton-cancel"/>
|
||||
<button name="modify_header" icon="tryton-executable"/>
|
||||
<button name="draft"/>
|
||||
<button name="quote" icon="tryton-go-next"/>
|
||||
<button name="handle_invoice_exception"
|
||||
string="Handle Invoice Exception"
|
||||
icon="tryton-go-next"/>
|
||||
<button name="handle_shipment_exception"
|
||||
string="Handle Shipment Exception"
|
||||
icon="tryton-go-next"/>
|
||||
<button name="confirm" string="Confirm"
|
||||
icon="tryton-go-next"/>
|
||||
<button name="process" string="Process"
|
||||
icon="tryton-go-next"/>
|
||||
<button name="confirm" icon="tryton-go-next"/>
|
||||
<button name="process" icon="tryton-go-next"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
|
||||
Reference in new issue
Block a user