removed deprecated code, fixed typo, improved code readability

This commit is contained in:
root
2013-01-18 10:10:55 -05:00
parent 05267c24a9
commit 9b77e050e0
2 changed files with 7 additions and 7 deletions

View File

@@ -25,7 +25,7 @@
'author': 'Solutions Libergia inc.',
'category': 'Manufacturing',
'description': """
This module adds product price and stock to bom view
This module adds product price and stock to bom views
""",
'depends': ["base","mrp"],
'demo': [],

View File

@@ -20,15 +20,15 @@
#
##############################################################################
from openerp.osv import fields, osv
from openerp.osv import fields, orm
from openerp.tools.translate import _
class mrp_bom(osv.osv):
class mrp_bom(orm.Model):
_inherit = 'mrp.bom'
_columns ={
'product_standard_price': fields.related('product_id', 'standard_price', type='float', string='Cost Price', readonly=True),
'product_qty_available': fields.related('product_id', 'qty_available', type='float', string='Quantity On Hand', readonly=True),
'product_standard_price': fields.related('product_id', 'standard_price',
type='float', string='Cost Price', readonly=True),
'product_qty_available': fields.related('product_id', 'qty_available',
type='float', string='Quantity On Hand', readonly=True),
}
mrp_bom()