Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I created a new database "TEST" and have not installed any additional modules.
Then I opened my eclipse in DEBUG mode, and marked breakpoints at
__init__.py files on following modules:
Why does these addons are loaded even if the module is not Installed in my "TEST" database?
The module was loaded due to a folder with "static" in the "product" module.
The OpenERP loads all addons from addons path containing static files and controllers. For more info: web/addons/web/http.py @ 566 line
Here, all the addons path that contains __openerp__.py and static folder are checked and loaded.
Why are the static folders loaded before starting OpenERP server??
For loading static stuffs , server doesn't need to be restarted. Example- if you make any changes in your js or css file in static folder, so without restarting your server your changes will be automatically reflected on your browser. Reason-files under static works as client side hence they are loaded automatically when your refresh page on browser. And if you making changes in python file then they act as server side hence u need to restart server and changes loaded when server restart.
Conclusion- Your static files loaded when browser page refresh and your py file loaded when openerp server restarted.
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
|Asked: 5/8/14, 6:49 AM|
|Seen: 1504 times|
|Last updated: 7/10/15, 4:05 AM|