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
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
Many2one related field
Ratkaistu
|
|
3
syysk. 21
|
9774 | |
Representation of Many2one in view
Ratkaistu
|
|
4
tammik. 20
|
3525 | |
|
0
marrask. 18
|
4770 | ||
|
0
huhtik. 17
|
4092 | ||
|
2
maalisk. 15
|
5419 |