diff options
| author | Prakash Prajapati <ppr@odoo.com> | 2018-08-14 12:40:16 +0000 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2018-11-26 10:40:11 +0000 |
| commit | 4e3a357ccab7d6391eaaf67aaa1d1840071bc4fc (patch) | |
| tree | 7b8dc63f05d16618441324a04117809b847f2cc0 | |
| parent | 4031227b548fb27283b2c7b68f0b018a5f7e6fc6 (diff) | |
[IMP] repair: Primary buttons first in form view
First display the primary button and after it display normal button.
Task #1872294
Closes #26380
| -rw-r--r-- | addons/repair/views/repair_views.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/repair/views/repair_views.xml b/addons/repair/views/repair_views.xml index ca2f0fd5aec..937301a7176 100644 --- a/addons/repair/views/repair_views.xml +++ b/addons/repair/views/repair_views.xml @@ -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': ['&', ('state','!=','confirmed'), '!', '&', ('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"/> |
