Hi, How to add default value in res_config_settings in odoo, I tried using default it doesnt work ..
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ờ
Hi,
To add default value in res.config.settings,
Inside your module create a data file as follows
<?xmlversion="1.0" encoding="utf-8"?>
<odoo>
<!-- Adding adefault value for field_name in res.config.settings-->
<datanoupdate="1">
<recordid="test_view" model="ir.config_parameter">
<fieldname="key">module_name. field_name</field>
<fieldname="value">80</field>
</record>
</data>
</odoo>
Hope it helps
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ý