Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'm trying to open a wizard from workflow activity. As far as I know it should be done through server action. Below are the snippets of my code.
1. Workflow activity, refering server action:
<record id="act_pending" model="workflow.activity">
<field name="wkf_id" ref="subscription_workflow"/>
<field name="action_id" ref="invokeSubscription_clientAction" />
2. Server action definition:
<record model="ir.actions.server" id="invokeSubscription_clientAction" >
<field name="name">Subscriptions Invocation Server Action</field>
<field name="model_id" ref="model_subscription_wizard" />
<field name="action_id" ref="ask4subscription" />
3. Finally client action invoked by server action:
<record model="ir.actions.act_window" id="ask4subscription">
<field name="name">Subscriptions Invocation Window</field>
<field name="view_id" ref="proposeSubscriptionForm"/>
My workflow is run as a subworkflow of invoice workflow. It is instantiated and is active, but my wizard window won't open. Am I missing something?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/18/14, 7:41 AM|
|Seen: 1342 times|
|Last updated: 6/12/15, 1:13 AM|