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.

0

how many modules have the workflow?

By
z wang
on 7/22/14, 2:52 AM 356 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

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

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'

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: 7/22/14, 2:52 AM
Seen: 356 times
Last updated: 3/16/15, 8:10 AM