[PYTHON] +fix standard_price access to volunteers
[burette/lhc.git] / lhc.py
diff --git a/lhc.py b/lhc.py
index 2ff4ee1..b172db2 100644 (file)
--- a/lhc.py
+++ b/lhc.py
@@ -25,6 +25,7 @@ from openerp.osv import osv
 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'
@@ -33,4 +34,12 @@ class res_partner(orm.Model):
         '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: