Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3738 Vistas

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 Mejor respuesta

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
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
4
oct 17
13239
0
sept 17
3366
0
mar 15
4257
0
jun 25
596
0
abr 25
3