From 2a85ab9d939aa09b8ee83acebe4b67f0b0fa0fe2 Mon Sep 17 00:00:00 2001 From: docker-odoo Date: Fri, 10 May 2024 17:21:28 +0000 Subject: [PATCH] [FIX] l10n_ar_ux: Recompute the commercial partner for edit de contact form in portal Ticekt: 73707 --- l10n_ar_ux/controllers/portal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/l10n_ar_ux/controllers/portal.py b/l10n_ar_ux/controllers/portal.py index 1a0038bfd..8aa4078ab 100644 --- a/l10n_ar_ux/controllers/portal.py +++ b/l10n_ar_ux/controllers/portal.py @@ -47,6 +47,8 @@ def account(self, redirect=None, **post): afip_responsibilities = request.env['l10n_ar.afip.responsibility.type'].sudo().search([]) uid = request.session.uid partner = request.env['res.users'].browse(uid).partner_id if uid else request.env['res.partner'] + #recomputamos el commercial partner porque al editar el fomrulario perdemos ese dato + partner.sudo()._compute_commercial_partner() partner = partner.with_context(show_address=1).sudo() response.qcontext.update({ 'identification_types': identification_types,