Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2858 Weergaven

hello ,

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

Avatar
Annuleer
Beste antwoord


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
Annuleer