Skip to content
Snippets Groups Projects

Corrected the user company which is used in unit tests.

Merged Etienne Ferriere requested to merge topic/13.0/TG-439 into branch/13.0
3 files
+ 9
4
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 3
3
@@ -37,7 +37,7 @@
@@ -37,7 +37,7 @@
the current user's company).
the current user's company).
"""
"""
company_id = self.env.user.company_id.id
company_id = self.env.company.id
for anc in self:
for anc in self:
blacklist = (company.id for company in anc.blacklist_ids)
blacklist = (company.id for company in anc.blacklist_ids)
@@ -47,7 +47,7 @@
@@ -47,7 +47,7 @@
"""Update the blacklist depending on the current user's company.
"""Update the blacklist depending on the current user's company.
"""
"""
company_id = self.env.user.company_id.id
company_id = self.env.company.id
for anc in self:
for anc in self:
blacklist = (company.id for company in anc.blacklist_ids)
blacklist = (company.id for company in anc.blacklist_ids)
@@ -68,7 +68,7 @@
@@ -68,7 +68,7 @@
the current user's company).
the current user's company).
"""
"""
company_id = self.env.user.company_id.id
company_id = self.env.company.id
# We assume the criterion was "disabled_per_company = False".
# We assume the criterion was "disabled_per_company = False".
dom = [
dom = [
Loading