[IMP] sale: replace stat button with the action one
for consistency reason as the button preview in Odoo is an action button rather than a stat button task-3074608 closes odoo/odoo#116557 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
@@ -253,6 +253,7 @@
|
||||
attrs="{'invisible': [('state', 'not in', ['draft'])]}"/>
|
||||
<button name="action_quotation_send" type="object" string="Send PRO-FORMA Invoice" groups="sale.group_proforma_sales" attrs="{'invisible': ['|', ('state', '=', 'draft'), ('invoice_count','>=',1)]}" context="{'proforma': True, 'validate_analytic': True}"/>
|
||||
<button name="action_quotation_send" string="Send by Email" type="object" states="sent,sale" data-hotkey="g" context="{'validate_analytic': True}"/>
|
||||
<button name="action_preview_sale_order" string="Preview" type="object" class="btn-secondary"/>
|
||||
<button name="action_cancel" type="object" string="Cancel" attrs="{'invisible': ['|', ('state', 'not in', ['draft', 'sent','sale']), ('id', '=', False)]}" data-hotkey="z"/>
|
||||
<button name="action_draft" states="cancel" type="object" string="Set to Quotation" data-hotkey="w"/>
|
||||
<field name="state" widget="statusbar" statusbar_visible="draft,sent,sale"/>
|
||||
@@ -271,15 +272,6 @@
|
||||
attrs="{'invisible': [('invoice_count', '=', 0)]}">
|
||||
<field name="invoice_count" widget="statinfo" string="Invoices"/>
|
||||
</button>
|
||||
<button name="action_preview_sale_order"
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-globe icon">
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_text">Customer</span>
|
||||
<span class="o_stat_text">Preview</span>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
@@ -737,6 +729,10 @@
|
||||
<button name="action_done" type="object" string="Lock"
|
||||
states="sale"
|
||||
help="If the sale is locked, you can not modify it anymore. However, you will still be able to invoice or deliver." groups="sales_team.group_sale_manager"/>
|
||||
</t>
|
||||
</button>
|
||||
<button name="action_preview_sale_order" position="before">
|
||||
<t groups="sale.group_auto_done_setting">
|
||||
<button name="action_unlock" type="object" string="Unlock"
|
||||
states="done"
|
||||
groups="sales_team.group_sale_manager"/>
|
||||
|
||||
Reference in New Issue
Block a user