Skip to content
Permalink
Browse files

[IMP] 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 ca2c2c0d7bce9da592d219e27661fa8b7ee9ae46
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 ca2c2c0

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