from openerp.osv import orm
from openerp.osv import fields
+import openerp.addons.decimal_precision as dp
class res_partner(orm.Model):
_inherit = 'res.partner'
'usual_contact': fields.boolean('Usual contact', help='This contact is a usual contact for L\'Heureux Cyclage employees. This field can be used to discriminated contacts for differents usages.'),
}
+class product_template(orm.Model):
+ _inherit = 'product.template'
+
+ _columns = {
+ 'standard_price': fields.float('Cost', digits_compute=dp.get_precision('Product Price'), help="Cost price of the product used for standard stock valuation in accounting and used as a base price on purchase orders.", groups="base.group_user,lhc.group_volunteer"),
+ }
+
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: