跳至內容
選單
此問題已被標幟
1 回覆
2868 瀏覽次數

hello ,

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

頭像
捨棄
最佳答案


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

頭像
捨棄