[FIX]: stock: Production lots should not be created for product which is of type=service

lp bug: https://launchpad.net/bugs/641110 fixed

bzr revid: rpa@tinyerp.com-20101110121319-ai7zni54lkfw6f29
This commit is contained in:
rpa (Open ERP) 2010-11-10 17:43:19 +05:30
parent 6035e26903
commit 0705b7bad7
1 changed files with 1 additions and 1 deletions

View File

@ -1353,7 +1353,7 @@ class stock_production_lot(osv.osv):
'name': fields.char('Serial Number', size=64, required=True, help="Unique serial number, will be displayed as: PREFIX/SERIAL [INT_REF]"),
'ref': fields.char('Internal Reference', size=256, help="Internal reference number in case it differs from the manufacturer's serial number"),
'prefix': fields.char('Prefix', size=64, help="Optional prefix to prepend when displaying this serial number: PREFIX/SERIAL [INT_REF]"),
'product_id': fields.many2one('product.product', 'Product', required=True),
'product_id': fields.many2one('product.product', 'Product', required=True, domain=[('type', '<>', 'service')]),
'date': fields.datetime('Creation Date', required=True),
'stock_available': fields.function(_get_stock, fnct_search=_stock_search, method=True, type="float", string="Available", select=True,
help="Current quantity of products with this Production Lot Number available in company warehouses",