Odoo Help

0

Why does the purchase order allow products where Can be Purchased is false?

By
Matt Taylor
on 9/9/14, 8:26 PM 885 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?

0
Marek Mosiewicz
On 9/10/14, 12:52 PM

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

 

http://consultantodoo.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 Taylor
on 9/10/14, 8:42 PM
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

Marek Mosiewicz
on 9/13/14, 5:18 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/9/14, 8:26 PM
Seen: 885 times
Last updated: 3/16/15, 8:10 AM