hello ,
I want to add a news columns(minimum_price,maximum_price) in class product_product (module: product),but i cannot ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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...
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація