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
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1
Odgovori
1152
Prikazi
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Prijavi