Skip to content

Commit

Permalink
[FIX] Missing to pass domain.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbcosta committed Jul 13, 2016
1 parent 71dbaa6 commit cca6b80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def compute(self, cr, uid, ids, date, context=None):
]

result = self.pool.get('stock.history').read_group(
cr, uid, domain=[], fields=fields, groupby=group_by,
context=context)
cr, uid, domain=[['date', '<=', date]], fields=fields,
groupby=group_by, context=context)

return result

Expand Down

0 comments on commit cca6b80

Please sign in to comment.