Odoo Help

Welcome!

This community 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.

1

How can triggers be used in a workflow?

By
Eduardo BP
on 5/31/15, 6:17 PM 933 views

Hi Odoo developers.

I have been reading the official documentation about workflows in Odoo 8, and specifically I don't understand how can I use triggers in workflows.

The documentation says:

Triggers are recorded in database as record IDs (together with the model name) and refer to the workflow instance waiting for those records. The transition definition provides a model name (attribute trigger_model) and a Python expression (attribute trigger_expression) that evaluates to a list of record IDs in the given model. Any of those records can wake up the workflow instance they are associated with.

How can I define a trigger in a transition?.

How can I activate a transition using a trigger?.

Any example, please.

Thanks a lot.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/31/15, 6:17 PM
Seen: 933 times
Last updated: 3/16/16, 4:06 AM