Hi,
I would like know the way to get the list of mandatory fields from any object.
Will any orm method be some help?
your support is appreciated much.
thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I would like know the way to get the list of mandatory fields from any object.
Will any orm method be some help?
your support is appreciated much.
thanks
Hi,
My colleague found the logic for this.
fields = self.pool.get('sale.order').fields_get(cr, uid)
required_fields = [field for field in fields if 'required' in fields[field] and fields[field]['required']]
print required_fields
Thanks
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 | |
---|---|---|---|---|
|
4
thg 12 19
|
6234 | ||
|
0
thg 3 17
|
4574 | ||
|
1
thg 1 17
|
9660 | ||
Two Sequance For One Object
Đã xử lý
|
|
3
thg 10 24
|
14244 | |
|
2
thg 3 15
|
4977 |