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.


How to make a function field sortable

Tarek Mohamed Ibrahim
on 6/22/15, 4:54 AM 522 views

I'm using OpenERP V7.  I needed to make the field product_product.qty_available sortable, so I inherited the product.product class and added the store=True to the field definition. Along the way I copied the function _product_available to my inherited class so the code does not crash. I know that this does not cope with the OO concepts

Now I need help in the following two points

1. how to make a function field sortable without appealing to store the field in the database

2. when inheriting a function field, how to do so without copying the function that calculates its value

i'm also looking for the method how to make function field sortable :( So far i got nothing. Maybe not nothing but still not sorted it out ;(

Dr Obx
on 6/22/15, 7:32 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)


Asked: 6/22/15, 4:54 AM
Seen: 522 times
Last updated: 6/22/15, 7:32 AM