X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=resultat?a=blobdiff_plain;f=lhc.py;h=b172db2307d07a5c250f75109dacc7c39c77b35f;hb=985464f756328e1d927aea590d91240444f0acd0;hp=2ff4ee13a469febcc1778a6d536e43b61e74fe26;hpb=f4ab8bd3a020fa8fe27ab5c3326f9bcbc6fd179b;p=burette%2Flhc.git diff --git a/lhc.py b/lhc.py index 2ff4ee1..b172db2 100644 --- 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: