Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2872 Prikazi

hello ,

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

Avatar
Opusti
Best Answer


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

Avatar
Opusti