Fix average cost price computation
context locations should be list of ids and not instances issue3037 review703002 (transplanted from 9a4d2bccf7f8fe00d32955d82342dfd627d749a1)
This commit is contained in:
1 parent
72ea676ef7
commit
7ffa8380da
1 file changed
+2
-1
@@ -331,9 +331,10 @@ class Move(ModelSQL, ModelView):
|
||||
company = Company(company)
|
||||
|
||||
context = {}
|
||||
context['locations'] = Location.search([
|
||||
locations = Location.search([
|
||||
('type', '=', 'storage'),
|
||||
])
|
||||
context['locations'] = [l.id for l in locations]
|
||||
context['stock_date_end'] = Date.today()
|
||||
with Transaction().set_context(context):
|
||||
product = Product(product_id)
|
||||
|
||||
Reference in new issue
Block a user