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
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
1
Antworten
1172
Ansichten
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
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren