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
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
Many2one related field
Vyřešeno
|
|
3
zář 21
|
9763 | |
Representation of Many2one in view
Vyřešeno
|
|
4
led 20
|
3520 | |
|
0
lis 18
|
4764 | ||
|
0
dub 17
|
4083 | ||
|
2
bře 15
|
5415 |