Is there an easy way to implement a warning whereby the user is asked 'Are you sure you want to cancel this quotation?' before actually cancelling it?
It is very easy to hit cancel when actually just wanting to go back to list view from form view! As far as I can tell there is no easy way to undo that action.
buttons there exists the attribute
confirm. When this attribute is set, then when the button is pressed a dialog box appears before the action is processed.
In the case of the Sales Quotation you can change the following line of the form view to implement a dialog box:
<button name="cancel" states="draft,sent" string="Cancel" groups="base.group_user"/>
<button name="cancel" states="draft,sent" string="Cancel" confirm="Are you sure you want to cancel this quotation?" groups="base.group_user"/>
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/28/13, 1:03 PM|
|Seen: 1258 times|
|Last updated: 3/16/15, 8:10 AM|