diff --git a/addons/account_peppol/__init__.py b/addons/account_peppol/__init__.py index 7d05ac17566..9e975e8396d 100644 --- a/addons/account_peppol/__init__.py +++ b/addons/account_peppol/__init__.py @@ -4,3 +4,8 @@ from . import models from . import wizard from . import tools + +def pre_init_hook(env): + view = env.ref("account_edi_ubl_cii.account_move_send_form") + if "ubl_partner_warning" not in view.arch: + view.reset_arch(mode='hard') diff --git a/addons/account_peppol/__manifest__.py b/addons/account_peppol/__manifest__.py index 179307d1786..b05633dd9f0 100644 --- a/addons/account_peppol/__manifest__.py +++ b/addons/account_peppol/__manifest__.py @@ -30,5 +30,6 @@ 'web.assets_backend': [ 'account_peppol/static/src/components/**/*', ], - } + }, + 'pre_init_hook': 'pre_init_hook', }