Odoo Help

0

Add a new columns ?

By
elalaoui
on 4/28/15, 7:32 AM 447 views

hello ,

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

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

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: 4/28/15, 7:32 AM
Seen: 447 times
Last updated: 4/28/15, 11:34 AM