Skip to content

Commit dc8b24a

Browse files
committed
[FIX] l10n_uy_edi: rename of chart of account
Is given problem on the res.config.settings view, we update the UY companies to be link to the new UY chart template instead
1 parent 899fd88 commit dc8b24a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

l10n_uy_edi/17.0.0.0/post-migration.py

+10
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,13 @@ def migrate(env, version):
152152

153153
cron_ucfe_notif.unlink() if cron_ucfe_notif else False
154154
cron_vendor_bills_received.unlink() if cron_vendor_bills_received else False
155+
156+
# Cambio el plan de cuentas en 16 era uy_account en el modulo l10n_uy_account. Ahora en 17 el plan de cuentas esta
157+
# en l10n_uy y se llama 'uy'. Tenemos que actualizar este dato en la compañia porque si no cuando entramos al menu
158+
# de Ajustes recibimos este traceback https://gist.github.com/zaoral/461d737b35601c74d05ca3054d2f6e9f
159+
openupgrade.logged_query(env.cr, """
160+
UPDATE res_company
161+
SET
162+
chart_template = 'uy'
163+
WHERE chart_template = 'uy_account'
164+
""")

0 commit comments

Comments
 (0)