diff --git a/odoo/addons/base/models/ir_rule.py b/odoo/addons/base/models/ir_rule.py
index 3d4e8ec0cba66fd3408b375284d73582f11bdb94..7566a86738460d44fc7617489ccad43d418e594f 100644
--- a/odoo/addons/base/models/ir_rule.py
+++ b/odoo/addons/base/models/ir_rule.py
@@ -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')