Odoo Help

Welcome!

This community 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.

0

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

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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