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
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
1176
Lượt xem
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
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký