Merged in raimonesteve/trytond-stock_lot_cost (pull request #4)

DIGITS unit price and cost price from file configuration
This commit is contained in:
?ngel ?lvarez 2015-07-31 09:01:01 +02:00
commit 9a7737fffa
1 changed files with 4 additions and 1 deletions

View File

@ -183,7 +183,10 @@ class Location:
grouping=('product', 'lot'))
cost_values = dict((l.id, None) for l in locations)
for (location_id, product_id, lot_id), qty in pbl.iteritems():
for key, qty in pbl.iteritems():
if len(key) != 3:
continue
location_id, product_id, lot_id = key
cost_value = None
if lot_id:
lot = Lot(lot_id)