[FIX] website_quote: Set correct access right on 'Edit' and 'Update' buttons
The frontend buttons to edit and update an online quotation in backend should be accessible for sale officers, not website publishers.
This commit is contained in:
@@ -410,7 +410,7 @@
|
||||
<em t-esc="quotation.name"/>
|
||||
<small t-field="quotation.state"/>
|
||||
<div t-ignore="true" class="pull-right css_editable_mode_hidden hidden-print">
|
||||
<div groups="base.group_website_publisher">
|
||||
<div groups="base.group_sale_salesman">
|
||||
<a t-if="quotation.state not in ('manual')" class="btn btn-info" t-att-href="'/web#return_label=Website&model=%s&id=%s&action=%s&view_type=form' % (quotation._name, quotation.id, action)">Update Quote</a>
|
||||
<a t-if="quotation.state in ('manual')" class=" btn btn-info" t-att-href="'/web#return_label=Website&model=%s&id=%s&action=%s&view_type=form' % (quotation._name, quotation.id, action)">Back to Sale Order</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user