[IMP] repair: Primary buttons first in form view

First display the primary button and after it display normal button.

Task #1872294
Closes #26380
This commit is contained in:
Prakash Prajapati
2018-11-26 10:40:11 +00:00
committed by Arnold Moyaux
parent 4031227b54
commit 4e3a357cca
+3 -3
View File
@@ -24,14 +24,14 @@
<field name="arch" type="xml">
<form string="Repair Order">
<header>
<button name="action_send_mail" states="draft" string="Send Quotation" type="object"/>
<button name="print_repair_order" states="draft" string="Print Quotation" type="object"/>
<button name="action_validate" states="draft" type="object" string="Confirm Repair" class="oe_highlight"/>
<button name="action_repair_start" attrs="{'invisible': ['&amp;', ('state','!=','confirmed'), '!', '&amp;', ('state','=','ready'), ('invoice_method','=','b4repair')]}"
type="object" string="Start Repair" class="oe_highlight"/>
<button name="action_repair_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
<button name="action_repair_end" states="under_repair" type="object" string="End Repair" class="oe_highlight"/>
<button name="action_repair_invoice_create" states="2binvoiced" type="object" string="Create Invoice" class="oe_highlight" groups="account.group_account_invoice"/>
<button name="action_send_mail" states="draft" string="Send Quotation" type="object"/>
<button name="print_repair_order" states="draft" string="Print Quotation" type="object"/>
<button name="action_repair_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
<button name="action_repair_cancel" string="Cancel Repair" type="object" attrs="{'invisible':['|',('invoice_method','!=','none'), ('state', 'not in',('confirmed','2binvoiced','ready','under_repair'))]}"/>
<button name="action_repair_cancel" states="draft" type="object" string="Cancel Repair"/>
<field name="state" widget="statusbar" statusbar_visible="draft,confirmed,done"/>