Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3357 Widoki

I am new to Odoo development and I am reading about it with doing some practices and source code review. As I understood, Odoo stores views, actions, menus and etc in database. Can anyone help me with understanding the reason behind this?  Why Odoo doesn't act like other frameworks like Django and put views in a directory and then just load them instead of storing them in database? Doesn't it effect the overall performance of the Odoo?

Awatar
Odrzuć
Najlepsza odpowiedź

Storing them in the database makes it easier for users to manage them from the frontend without going into the source code.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

Am not sure the exact reason behind this, it will be definitely for the performance improvements.

If you need to load the views from directories rater than from the one which stored in the database you can pass --dev xml while running the odoo. Once this done instead reading from the database odoo will read from the source code.

This is normally done during the development time to reflect the changes without upgrading the module. When i am enabling this during development, it always seems odoo is slow to load when loading from the source code.


Thanks

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
paź 22
4302
2
sie 25
2556
1
lip 25
969
1
sie 25
1151
0
maj 25
1407