Skip to content

Commit

Permalink
[FIX] stock: wrong name of field in groupby in sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechowskim committed Jan 17, 2019
1 parent 4c93e4b commit 8db20db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/stock/models/stock_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def _get_inventory_lines_values(self):
LEFT JOIN product_product
ON product_product.id = stock_quant.product_id
WHERE %s
GROUP BY product_id, location_id, lot_id, package_id, partner_id """ % domain, args)
GROUP BY product_id, location_id, lot_id, package_id, owner_id """ % domain, args)

for product_data in self.env.cr.dictfetchall():
# replace the None the dictionary by False, because falsy values are tested later on
Expand Down

0 comments on commit 8db20db

Please sign in to comment.