Skip to content

Commit

Permalink
Merge commit 'refs/pull/142389/head' of https://github.com/odoo/odoo
Browse files Browse the repository at this point in the history
…into 16.0-4345
  • Loading branch information
docker-odoo committed Nov 17, 2023
2 parents ca3906b + 5685e61 commit fa3923e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/mrp/report/mrp_report_bom_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def get_html(self, bom_id=False, searchQty=1, searchVariant=False):

@api.model
def get_warehouses(self):
return self.env['stock.warehouse'].search_read([('company_id', '=', self.env.company.id)], fields=['id', 'name'])
return self.env['stock.warehouse'].search_read([('company_id', 'in', self.env.companies.ids)], fields=['id', 'name'])

@api.model
def _compute_current_production_capacity(self, bom_data):
Expand Down

0 comments on commit fa3923e

Please sign in to comment.