From 636769af384d8a40b551cd944815352e0ecfeacb Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Mon, 4 Feb 2013 15:34:20 +0100 Subject: [PATCH] [pos] +read access to product_tamplate.standard_price for group_pos_user --- bikecoop.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bikecoop.py b/bikecoop.py index bd6b740..e7c8012 100644 --- a/bikecoop.py +++ b/bikecoop.py @@ -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: -- 2.20.1