Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
5569 Vistas

i'm a new with odoo studio , i created new model , places field for customer , field many2one bring all sales order number.
i want to able this field to show only the sales order for the customer i selected in customer filed 

what can i do ?

Avatar
Descartar
Autor

thanks , i try to ost as you mentioned

[('partner_id','=',x_studio_field_XApDC)]

which is x_studio_field_XApDC field of customer name , but still not work

Mejor respuesta

i have the Same problem, 

did any one get it done in odoo studio?

Avatar
Descartar
Mejor respuesta

Dear ,

you can make something like by add domain


[('partner_id','=',your_customer_field)]

where the partner_id refer to the customer on sales order. and  your_customer_field  refer to your customer field.

Add above domain in your sale order relation field.

I hope I helped you...

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jul 25
1489
2
mar 25
1723
0
feb 25
1344
0
feb 25
1570
0
feb 25
1470