I found tutorials for older versions which doesn't apply. Please let me know if there are any resources I can follow.
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ờ
1
Trả lời
8101
Lượt xem
Hi
You can add this code in .py class
aselection = fields.Selection([('a', 'A'),('b', 'B')])
aselection = fields.Selection([('a', 'A'),('b', 'B')])
And add this code in .Xml where you want
<field name="name" widget="selection"/>
Look this
http://odoo-new-api-guide-line.readthedocs.io/en/latest/fields.html#selection
https://stackoverflow.com/questions/35055645/odoo-hide-some-options-in-field-selection
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ý