Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2294 มุมมอง

If i select a vendor on purchase , only visible the vendors product on the product selection field.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

If this in stock.move and in odoo 18 can you help me 

อวตาร
ละทิ้ง