Skip to content
Snippets Groups Projects
Commit 8bf4b8e0 authored by Jorge Pinna Puissant's avatar Jorge Pinna Puissant
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

closes odoo/odoo#40035

Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
parent 660cebb4
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment