I need the Domain for the field “source location“ beacuse i need to add it when taking returns from customers
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1
Responder
1167
Vistas
Hi,
Try the following code.
@api.onchange('customer_id')
def onchange_customer_id(self):
if self.customer_id:
return { 'domain:
{ 'location_id': [('usage', '=' ,'internal'), ('return_location', '=', True)] }
}
Hope it helps
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse