This question has been flagged
1 Reply
2895 Views

The Sales Order doesn't allow the user to select products where Can be Sold is false.  Why does the Purchase Order allow products where Can be Purchased is false?

Avatar
Discard
Best Answer

You could modify it with changing domain(filter) on this field.

 

http://consultantodoo.com

Avatar
Discard
Author

purchase.order.line already has a domain filter. It just doesn't seem to work: 'product_id': fields.many2one('product.product', 'Product', domain=[('purchase_ok','=',True)], change_default=True),

You are right. I could investigate it but have not free time now. Maybe it is product_template is diffrent class than product.

Best regards,
     Marek Mosiewicz

2014-09-11 2:42 GMT+02:00 Matt <matt_commercial-lindenelevator-com@mail.odoo.com>:

purchase.order.line already has a domain filter. It just doesn't seem to work: 'product_id': fields.many2one('product.product', 'Product', domain=[('purchase_ok','=',True)], change_default=True),

--
Matt
Sent by OpenERP S.A. using Odoo about Forum Post False