From: Ludovic CHEVALIER Date: Mon, 4 Feb 2013 14:34:20 +0000 (+0100) Subject: [pos] +read access to product_tamplate.standard_price for group_pos_user X-Git-Url: http://git.cyclocoop.org/?p=burette%2Fbikecoop.git;a=commitdiff_plain;h=636769af384d8a40b551cd944815352e0ecfeacb [pos] +read access to product_tamplate.standard_price for group_pos_user --- 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: