Just wondering is there a way to call a method on launch of the module? meaning when i starts up?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- Project
- MRP
This question has been flagged
What do you mean by 'when it starts up' ?
Do you mean when the module is installed or upgraded? If so, define an init function:
def init(self, cr):
Several OpenERP modules make use of this functionality, particular models representing reports.
like when you double click on the firefox browser icon the browser 'starts up' when you select the module from the menu bar it starts up. cant make it any clearer than that really
No. Modules don't work this way. They are loaded or 'started up' when they are installed (the init function above can run at this time) and any other functions within them are only called when records are read, created, updated or deleted.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
जुल॰ 24
|
1831 | ||
|
1
जन॰ 24
|
4935 | ||
|
2
मार्च 23
|
2687 | ||
|
1
अग॰ 22
|
2417 | ||
|
3
जून 20
|
10474 |