~openerp-chinese-team/openerp-china/openerp-china

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- encoding:utf-8 -*-
# __author__ = jeff@openerp.cn

from osv import osv, fields
from tools.translate import _

#-------------------------------------------
# Products
#-------------------------------------------
class product_template(osv.osv):
    _inherit = "product.template"
    _columns = {
        'standard_price': fields.float('Cost Price', required=True, \
                          read='base.group_sale_manager',                                  
                          digits_compute=dp.get_precision('Purchase Price'), \
                          help="Product's cost for accounting stock valuation. It is the base price for the supplier price."),
    }
class product_template()