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.
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
| 相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
|---|---|---|---|---|
|
0
3月 15
|
3906 | |||
|
0
6月 24
|
2449 | |||
|
1
1月 24
|
3762 | |||
|
0
10月 23
|
3153 | |||
|
0
10月 23
|
1940 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.