def onchange_picking_type_id(self, cr, uid,ids, picking_type_id, context=None): if picking_type_id in (12,13,18,17): domain={} domain['product_id']=[('product_id','in',[])] sql="select t0.id from product_product t0 LEFT JOIN product_template t1 on t0…