Skip to content

Commit

Permalink
[FIX] l10n_ar_ux: Recompute the commercial partner for edit de contac…
Browse files Browse the repository at this point in the history
…t form in portal

Ticekt: 73707
  • Loading branch information
mem-adhoc committed May 10, 2024
1 parent 4d7df68 commit 570c92c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions l10n_ar_ux/controllers/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 570c92c

Please sign in to comment.