If i select a vendor on purchase , only visible the vendors product on the product selection field.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1133
Views
Hi,
We can add a domain in the product_id field in purchase order line.
@api.onchange('product_id')
def product_id_on_change(self):
domain = ([('seller_ids.name', '=', self.partner_id.id)])
return {'domain': {'product_id': domain}}
Regards
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up