Hi there,
I am trying to get a field "client_order_ref" which exists in the form "sale.order" to appear in a "Delivery Order" report for "stock.picking.out"
Can anyone advise what I need to do.
Many thanks in advance,
Jon
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi there,
I am trying to get a field "client_order_ref" which exists in the form "sale.order" to appear in a "Delivery Order" report for "stock.picking.out"
Can anyone advise what I need to do.
Many thanks in advance,
Jon
Hi, you can declare a related field like this:
'other_object_id': fields.many2one('object.my.object', 'my object'),
'other_object_field': fields.related('other_object_id', 'other_object_field', string='My other object field', type='integer', readonly=True),
After that you can use it in your report.
Cheers,
Diego
if i understand your question you can use "related field" for this case
Hi,
Thanks - so does that mean I need to make a new module or can I just create the related field someother way?
Regards Jon
is not necessary at all, you can create a new module in python, you can create it as custom field, x_campo = reference or something like that
Create an account today to enjoy exclusive features and engage with our awesome community!
Registracija