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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Storing them in the database makes it easier for users to manage them from the frontend without going into the source code.
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
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 10 22
|
4298 | ||
|
2
thg 8 25
|
2555 | ||
|
1
thg 7 25
|
967 | ||
|
1
thg 8 25
|
1151 | ||
|
0
thg 5 25
|
1406 |