Odoo Help


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.


Why purchase_ok readonly when is_product_variant == False

Nhomar Hernandez
on 7/15/14, 8:46 PM 595 views


In file: ./purchase/purchase_view.xml line 590

Branch "master" commit: https://github.com/odoo/odoo/commit/49bc956395d5fdd2f3e3be8bc0035ec38c92f7c6

We can read:

<field name="purchase_ok" attrs="{'readonly': [('is_product_variant', '=', False)]}"/>

What I really appreciate to understand is why if a product is variant I can't set it as can be purchased?

In other hand, it is impossible set the product as "Can Be purchased" one time you create it.

Is this the expected behavior?, Theorically speaking, Why is this feature setted in this way?

Thanks in advance.

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)


Asked: 7/15/14, 8:46 PM
Seen: 595 times
Last updated: 3/16/15, 8:10 AM