Odoo Help

0

how many modules have the workflow?

By
z wang
on 7/22/14, 2:52 AM 527 views

I noticed there are two kind of modules/application in odoo

one is the kind of module has workflow.

another kind have not workflow.

What is the difference between the two kind.

Is there any diffence on Python modules structure?

 

1
Ludo - Neobis
On 7/22/14, 3:22 AM

That's not really correct. Workflows exist on objects, not on modules/applications. For example, the sale order has a workflow, as well as the invoice. In fact, nearly all objects that have a "state" field also have a workflow. These workflows are defined in XML files and their states are mostly called in Python. See sale_workflow.xml and sale.py for examples.

Maybe you are referring to the wizards that launch after installing a certain module? For example, when you install the accounting module, automatically the chart of accounts wizard is run. If that is what you mean, then these are some modules that have that. 

This can be achieved by creating a wizard and making it run at startup. The example code for this is as follows:

class account_installer(osv.osv_memory):
    _name = 'account.installer'
    _inherit = 'res.config.installer'

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

Question tools

1 follower(s)

Stats

Asked: 7/22/14, 2:52 AM
Seen: 527 times
Last updated: 3/16/15, 8:10 AM