This question has been flagged
1 Reply
2480 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?

 

Avatar
Discard
Best Answer

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'

Avatar
Discard