Skip to Content
Menu
This question has been flagged
2 Replies
3776 Views

Hello,

In opportunities, in form view, i don't the the five stages that are set.

For exemple : If i create a new one, it has just one stage "New". From the kanban view, if i drag & drop this opportunity to a other stage, "negotiation", it still has only one stage(negotiation)

I don't know why the possibility to escalate the stage from the form view disappeared.

Could someone help me with this ?

Thanks :)

Avatar
Discard
Author Best Answer

OK i found the solution.

After activating developer mode.

In form view of the opportunities, i select the "Edit FormView" (on the upper left of the screen)

I replace

<field name="stage_id" widget="statusbar" clickable="True"/>

By

<field name="stage_id" widget="statusbar" clickable="True" domain="['&', '|', ('case_default', '=', True), ('section_ids', '=', section_id), '|', ('type', '=', type), ('type', '=', 'both')]" on_change="onchange_stage_id(stage_id)"/>

Avatar
Discard
Best Answer

I get an error with the full code but it seems to work only with

<field name="stage_id" widget="statusbar" clickable="True" domain="[ '|', ('type', '=', type), ('type', '=', 'both')]" on_change="onchange_stage_id(stage_id)"/>

 

Is there any error in '&', '|', ('case_default', '=', True), ('section_ids', '=', section_id),

Avatar
Discard
Related Posts Replies Views Activity
4
Oct 17
13253
0
Sep 17
3374
0
Mar 15
4270
0
Jun 25
615
0
Apr 25
3