[IMP]stock: Specific condition

bzr revid: dbr@tinyerp.com-20120522095137-1658gnfqgostpcn2
This commit is contained in:
DBR (OpenERP) 2012-05-22 15:21:37 +05:30
parent d38c63e656
commit 17f484574d
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ class product_product(osv.osv):
field = 'reception_count'
elif move.picking_id.type == 'out':
field = 'delivery_count'
res[product_id][field] += 1
if field:
res[product_id][field] += 1
return res
def get_product_accounts(self, cr, uid, product_id, context=None):