Skip to content
Permalink
Browse files

[ADD] base: current company id to evaluation context

Add the id of the current company to the evaluation context for ir.rule
domains
  • Loading branch information...
jpp-odoo committed Nov 8, 2019
1 parent 2b36a60 commit 7abb81651cc3b37af33843a2b2561fc745a026a1
Showing with 1 addition and 0 deletions.
  1. +1 −0 odoo/addons/base/models/ir_rule.py
@@ -54,6 +54,7 @@ def _eval_context(self):
'user': self.env.user.with_context({}),
'time': time,
'company_ids': self.env.companies.ids,
'company_id': self.env.company.id,
}

@api.depends('groups')

0 comments on commit 7abb816

Please sign in to comment.
You can’t perform that action at this time.