Hello Odooers
Hope you are doing well.
Below is a snipping image.
The o2m field has a reference field of 'maintenance.equipment', How can I display 'Equipment Category'. Thank you for advise.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello Odooers
Hope you are doing well.
Below is a snipping image.
The o2m field has a reference field of 'maintenance.equipment', How can I display 'Equipment Category'. Thank you for advise.
Hi all,
I change the o2m field to m2m field. All related fields can be displayed. now
you can do that
in py file
class YourModel(models.Model):
_inherit = 'your.model'
equipment_category = fields.Many2one(
related='maintenance_equipment_id.category_id',
string='Equipment Category'
)
Xml file
your.model.form
your.model
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 | |
---|---|---|---|---|
|
0
thg 3 15
|
3148 | ||
|
0
thg 6 24
|
1635 | ||
|
1
thg 1 24
|
2802 | ||
|
0
thg 10 23
|
2556 | ||
|
0
thg 10 23
|
1241 |