Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3812 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
říj 17
13297
0
zář 17
3400
0
bře 15
4309
0
čvn 25
673
0
dub 25
3