From 1d46c4df0cb83a3b7f5d1e38c9d06fd0571302ae Mon Sep 17 00:00:00 2001 From: younes Date: Wed, 22 Oct 2025 13:23:44 +0100 Subject: [PATCH] [FIX] exp_transaction_documents: fix bug --- odex25_transactions/exp_transaction_documents/models/entity.py | 1 + odex25_transactions/exp_transaction_documents/views/entity.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/odex25_transactions/exp_transaction_documents/models/entity.py b/odex25_transactions/exp_transaction_documents/models/entity.py index fd66c9040..afc5ccf01 100644 --- a/odex25_transactions/exp_transaction_documents/models/entity.py +++ b/odex25_transactions/exp_transaction_documents/models/entity.py @@ -132,6 +132,7 @@ class Entity(models.Model): @api.onchange('is_employee','employee_id') def onchange_employee_id(self): + self = self.sudo() self.name = self.employee_id.name self.person_id = self.employee_id.iqama_number.iqama_id self.email = self.employee_id.personal_email diff --git a/odex25_transactions/exp_transaction_documents/views/entity.xml b/odex25_transactions/exp_transaction_documents/views/entity.xml index 1a5a1d137..0c6f6957e 100644 --- a/odex25_transactions/exp_transaction_documents/views/entity.xml +++ b/odex25_transactions/exp_transaction_documents/views/entity.xml @@ -26,7 +26,7 @@ -