[IMP] base: current company id to evaluation context
Add the id of the current company to the evaluation context for ir.rule domains closes odoo/odoo#40162 X-original-commit: 8bf4b8e015fa61f3929dbb8f1d81e1127272cfbb Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
This commit is contained in:
committed by
fw-bot
parent
fd81920f1f
commit
72fd12e4ae
@@ -54,6 +54,7 @@ class IrRule(models.Model):
|
||||
'user': self.env.user.with_context({}),
|
||||
'time': time,
|
||||
'company_ids': self.env.companies.ids,
|
||||
'company_id': self.env.company.id,
|
||||
}
|
||||
|
||||
@api.depends('groups')
|
||||
|
||||
Reference in New Issue
Block a user