Skip to content
Snippets Groups Projects
Commit 2ab7d92c authored by Yannick Tivisse's avatar Yannick Tivisse
Browse files

[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.
parent 787a32bd
Branches
Tags
No related merge requests found
......@@ -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&amp;model=%s&amp;id=%s&amp;action=%s&amp;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&amp;model=%s&amp;id=%s&amp;action=%s&amp;view_type=form' % (quotation._name, quotation.id, action)">Back to Sale Order</a>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment