Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6780 Vistas

We want to model a process. In this process, to give from state A to state B, you need to tick 5 checkboxes to indicate 5 things have been done. To go to State C, you need to tick 10 checkboxes, etc.

What would be the best way to achieve this in OpenERP?

Thanks.

Avatar
Descartar
Mejor respuesta

Let's say your checkboxes (boolean fields) are field1,field2....

In the workflow, in the transition between nodes A and B leave blank the "signal" field, and in the "condition" field replace "True"(default) for (field1 and field2 and field3 and field4 and field5) so if all the 5 fields are True(checked) the object should go to the next node and in the "action" field of the nodeB put "write({'state':'stateB'})"

Avatar
Descartar
Autor

Ok thanks that sounds like it would work, but my question is more general/basic, i.e. where to start with making this all happen? Is there a module that allows you to add these checkboxes to a kanban view? Ideally I don't want to be hard coding things, but allow users to set up various conditions that are required to move to the next state. OpenERP should then just validate that they've all been ticked when allowing/disallowing the item to be moved to the next state.

Publicaciones relacionadas Respuestas Vistas Actividad
1
ago 25
422
2
jul 25
596
1
jul 25
542
2
jul 25
566
1
jun 25
571