[pos] +read access to product_tamplate.standard_price for group_pos_user
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Mon, 4 Feb 2013 14:34:20 +0000 (15:34 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Mon, 4 Feb 2013 14:34:20 +0000 (15:34 +0100)
bikecoop.py

index bd6b740..e7c8012 100644 (file)
@@ -1,5 +1,6 @@
 # -*- coding: utf-8 -*-
 from osv import fields, osv
+import openerp.addons.decimal_precision as dp
 
 
 class Theme(osv.osv):
@@ -45,4 +46,15 @@ class Partner(osv.osv):
 
 Partner()
 
+
+class product_template(osv.osv):
+    _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,point_of_sale.group_pos_user"),
+    }
+
+product_template()
+
+
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: