跳至内容
菜单
此问题已终结
2 回复
2335 查看

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 

形象
丢弃