[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:
Jorge Pinna Puissant
2019-11-13 08:08:05 +00:00
committed by fw-bot
parent fd81920f1f
commit 72fd12e4ae
+1
View File
@@ -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')