mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[fix] lot qty
This commit is contained in:
@@ -84,7 +84,7 @@ class stock_production_lot(orm.Model):
|
||||
for location in location_obj.browse(cr, uid, loc_ids, context=context):
|
||||
c = context.copy()
|
||||
c.update({
|
||||
'location': location.id,
|
||||
'location_id': location.id,
|
||||
'compute_child': False
|
||||
})
|
||||
|
||||
|
||||
@@ -172,3 +172,5 @@
|
||||
!python {model: stock.production.lot}: |
|
||||
lot = self.browse(cr, uid, ref('lot_icecream_0'), context=context)
|
||||
assert lot.standard_price == 120, "Price is not updated."
|
||||
balance = self.pool.get('account.account').browse(cr, uid, ref('account.stk')).balance
|
||||
assert balance == 6000.0, "Purchased Stocks balance is %s, not 6000 (old balance + (lot.standard_price - new_price) * lot.stock_available)" % balance
|
||||
|
||||
Reference in New Issue
Block a user