Skip to Content
Menu
This question has been flagged
1 Reply
4136 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

10 years later....and it still seems to be an issue. Are there any news on that? It really is a problem for us and I do not understand how this cannot be an issue for anyone else.

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),

Related Posts Replies Views Activity
2
Sep 21
3882
1
Dec 16
5431
1
Aug 15
4837
2
Mar 15
4044
0
Mar 15
3030