What is the difference between init_xml,update_xml,data fields used in __openerp__.py file ?
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ờ
init_xml
and update_xml
deprcated parameters, use for new modules data
instead.
init_xml
- list of XML files with data that will load to DB at moment when you install module.update_xml
- list of XML files with data that will load to DB at moment when you install or update module.data
- list of XML, CSV or YAML files with data that will load to DB at moment when you install or update module. XML data file can have asinstall
data andupdate
data. It control by attributenoupdate
of tagdata
.<openerp> <data> {install and update} </data> <data noupdate="1"> {only install} </data> </openerp>
Thank you wowas
Hello wowas, It means both 'update_xml' and 'data' loads your data during installation of module as well as updation of module the only difference is 'data' provides facility to load data in either case. Is it true or am i misunderstood? Thanx.
But if you only use the "data" tag, how do you say noupdate on a csv?
I would like to add that `noupdate="1"` doesn't mean that it will not load on upgrading the module.
If you add a new `record` inside a `data` with `noupdate="1"` it will get loaded. At least in version 12.
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 | |
---|---|---|---|---|
Data for relations table
Đã xử lý
|
|
1
thg 4 24
|
2356 | |
|
1
thg 8 22
|
3104 | ||
|
0
thg 5 17
|
7784 | ||
|
1
thg 3 15
|
4177 | ||
|
2
thg 3 15
|
4714 |