Skip to Content
Menú
This question has been flagged
2 Respostes
3772 Vistes

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
Descartar
Autor 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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
4
d’oct. 17
13251
0
de set. 17
3374
0
de març 15
4266
0
de juny 25
602
0
d’abr. 25
3