Skip to content
Snippets Groups Projects
Commit 1fea0f18 authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

[IMP] sale_crm: hide 'New Quotation' button if opportunity is lost

A lost opportunity is archived and should not have primary actions buttons.
First thing to do would be to restore it before having access to some
other actions.

This commit is linked to task ID 1880051 and PR #26977.
parent 6663ff97
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@
<field name="arch" type="xml">
<xpath expr="//button[@name='action_set_won_rainbowman']" position="before">
<button string="New Quotation" name="%(sale_action_quotations_new)d" type="action" class="oe_highlight"
attrs="{'invisible': ['&amp;', ('probability', '=', 0), ('active', '=', False)]}"
context="{'search_default_partner_id': partner_id,
'default_partner_id': partner_id,
'default_team_id': team_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment