From 0f8914d39a99e973e20d51379baf3001e8f4b9f3 Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Thu, 4 Jan 2024 18:05:33 +0100
Subject: [PATCH] [UPD] add current_ur_id in context

---
 models/res_users.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/models/res_users.py b/models/res_users.py
index 67182d8..f307ee7 100644
--- a/models/res_users.py
+++ b/models/res_users.py
@@ -64,4 +64,5 @@ class ResUsers(models.Model):
         context = super(ResUsers, self).context_get()
         new_context = context.copy()
         new_context["ur_id"] = user.company_id.ur_id.id
+        new_context["current_ur_id"] = self.env.company.ur_id.id
         return new_context
-- 
GitLab