Skip to content

Commit

Permalink
Merge 6ed1df2 into ebffb28
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredoavanzosc committed Apr 14, 2016
2 parents ebffb28 + 6ed1df2 commit c83bb99
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stock_planning/wizard/wiz_stock_planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ def calculate_stock_planning(self):
for procurement in proc_obj._find_procurements_from_stock_planning(
self.company, fdate, category=self.category,
template=self.template, product=self.product, periods=True):
product_datas = self._find_product_in_table(
product_datas, procurement.product_id, procurement.location_id)
if (not self.locations or
(self.locations and procurement.location_id.id in
self.locations.ids)):
product_datas = self._find_product_in_table(
product_datas, procurement.product_id,
procurement.location_id)
self._generate_stock_planning(product_datas)
return {'name': _('Stock Planning'),
'type': 'ir.actions.act_window',
Expand Down

0 comments on commit c83bb99

Please sign in to comment.