Skip to content

Commit

Permalink
[17.0][MIG] crm_stage_probability: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Osman committed Mar 5, 2024
1 parent fe3913f commit b00cb27
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion crm_stage_probability/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "CRM stage probability",
"summary": "Define fixed probability on the stages",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"development_status": "Alpha",
"category": "Sales/CRM",
"website": "https://github.com/OCA/crm",
Expand Down
11 changes: 5 additions & 6 deletions crm_stage_probability/views/crm_lead.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
>
<field name="is_stage_probability" invisible="1" />
<button
class="ps-0 ps-md-2 btn btn-link"
class="btn d-inline-block px-2 py-0 btn-link"
name="action_set_stage_probability"
type="object"
attrs="{'invisible': [('is_stage_probability', '=', True)]}"
invisible="is_stage_probability"
>
<i
class="fa fa-gear"
Expand All @@ -23,10 +23,9 @@
aria-label="Switch to stage probability"
/>
</button>
<small
class="oe_grey"
attrs="{'invisible': [('is_stage_probability', '=', True)]}"
><field name="stage_probability" /> %% (According to stage)</small>
<small class="oe_grey" invisible="is_stage_probability"><field
name="stage_probability"
/> %% (According to stage)</small>
</xpath>
</field>
</record>
Expand Down
5 changes: 1 addition & 4 deletions crm_stage_probability/views/crm_stage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
<field name="team_count" position="after">
<group name="probability">
<field name="on_change" />
<field
name="probability"
attrs="{'invisible': [('on_change', '=', False)]}"
/>
<field name="probability" invisible="not on_change" />
</group>
</field>
</field>
Expand Down

0 comments on commit b00cb27

Please sign in to comment.