how can i replace
field.related to use it in v8
'product_id': fields.related('order_line', 'product_id', type='many2one', relation='product.product', string='Product'),
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
how can i replace
field.related to use it in v8
'product_id': fields.related('order_line', 'product_id', type='many2one', relation='product.product', string='Product'),
In the new API, there is no fields.related. You can try
number = fields.Char(related='move_id.name', store=True, readonly=True, copy=False)
where move_id is a Many2one relation
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
Many2one related field
Opgelost
|
|
3
sep. 21
|
9823 | |
Representation of Many2one in view
Opgelost
|
|
4
jan. 20
|
3585 | |
|
0
nov. 18
|
4812 | ||
|
0
apr. 17
|
4149 | ||
|
2
mrt. 15
|
5458 |