Skip to Content
Menú
This question has been flagged
10 Respostes
3965 Vistes

First i created a workflow from Setting->Technical->Workflow menu. 

I want to know three this 

1. Is it possible to connect this workflow with newly created Menu?

2. Is it possible to connect this workflow with newly created Object?

3. Is it possible to call exisiting workflow in a new menu?

 

Please help me anyone...

Avatar
Descartar
Best Answer

Hello Remya,

It is possible to use newly created workflow with the newly created object or existing object, But It's not possible to use for newly created menu or existing menu, You can use that workflow only for any object here.

Avatar
Descartar
Autor

@Dipesh : How can i connect object with workflow?

To connect object with workflow you have to use object name as Resource Object with workflow in create workflow form, For Ex. If you creating one basic workflow for sale order you can use already created object 'sale.order' as object. For your reference providing screenshot to get know in better way: https://www.dropbox.com/s/jq81du9u4l7wl2z/Workflows - Odoo 2014-11-11 15-23-35.png?dl=0

Autor

Ok Thanks Dipesh.

Adding on Dipesh's answer. The Resource Object must be the name of ORM model the workflow need to be attached to. You need to also tick On Create to make the workflow instantiate when a new ORM model is created.

Autor

@John Thanks.

Best Answer

Hello,

is it possible to connect an existing workflow with a new workflow??

Avatar
Descartar
Best Answer

Remya,

Providing some clarification to Dipesh's answer.  In OpenERP Menu Item can only call actions.  There are 6 types of actions that I'm aware of: Window, Report, URL, Window Close (special action to close the current window), Client, and Server.  So, you cannot, using the tools available in the OpenERP framework, call workflow transitions (we execute the workflow by executing it's transition) directly from Menu Item.

Now, you CAN execute a workflow transition through an ORM method (it can also be triggered through a button, but only if the active model and active ID of the view being displayed is defined.  Since this would not be a straightforward process, I'll left this option out for the time being.)  And ORM method can be called from a Server action of from a Button in a view displayed by a Window action.  You can choose one of those routes (Server action or Window action) if you need to call a workflow transition from Menu Item.

Avatar
Descartar
Autor

How can i work this without python configuration? I need to do this through openerp interface.

Remya, AFAIK, you cannot do this through OpenERP interface alone, with or without coding in Python.