you can try the domain
fields.many2one
attribute as shown below
'product_id': fields.many2one('product.product', 'Product', domain=[('purchase_ok','=',True)], change_default=True),
alternative way -> you can provide the domain in XML form, as shown below,
<field name="product_id" domain="[('purchase_ok','=',True)]"/>
source share