from openerp.osv import osv, fields<br />import openerp.addons.decimal_precision as dp<br /><br />class mrp_bom(osv.osv):<br /> _inherit = 'mrp.bom'<br /> _columns = {<br /> <br /> 'cost_price': fields.related('product_id','cost_price',type='float',digits_compute = dp.get_precision('Product Price'),relation="product.product", string="Cost Parts Of Bom", store=False),<br /> }
默认mrp.bom字段精度为两位,想通过改精度改不了digits_compute = dp.get_precision('Product Price')
问下这个精度怎么改