Odoo Help


Add a new columns ?

on 4/28/15, 7:32 AM 320 views

hello ,

I want to add a news columns(minimum_price,maximum_price) in class product_product (module: product),but i cannot ?

On 4/28/15, 7:54 AM

from openerp.osv import osv, fields

from openerp.tools.translate import _

class product_product(osv.osv):

_inherit = 'product.product'

_columns = {

'minimum_price': fields.type("Minimum_price"),

'maximum_price': fields.type("Minimum_price")


example of type = char, many2one, float, boolean, etc...

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


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)


Asked: 4/28/15, 7:32 AM
Seen: 320 times
Last updated: 4/28/15, 11:34 AM