OpenUpgrade icon indicating copy to clipboard operation
OpenUpgrade copied to clipboard

[16.0] "Found deprecated directive..." spam after OpenUpgrade

Open yibudak opened this issue 11 months ago • 0 comments

Hello everyone,

I'm currently working on an Odoo migration project, upgrading the system from version 12.0 to 16.0 using OpenUpgrade (and odoo-openupgrade-wizard as well). Most of the migration is done, but I have a problem with deprecation warnings.

2025-01-28 05:44:03,854 3100050 WARNING 16test2 odoo.addons.base.models.ir_qweb: Found deprecated directive @t-esc="title or 'Odoo'" in template 3426. Replace by @t-out

2025-01-28 05:44:03,855 3100050 WARNING 16test2 odoo.addons.base.models.ir_qweb: Found deprecated directive @t-esc='request.csrf_token(None)' in template 3426. Replace by @t-out

2025-01-28 05:44:03,855 3100050 WARNING 16test2 odoo.addons.base.models.ir_qweb: Found deprecated directive @t-esc='debug' in template 3426. Replace by @t-out

I've checked both OCA/OCB and odoo/odoo code, and yes, there are lots of deprecated uses of t-esc, but they don't throw any warning on the clean setup.

The questions are:

  1. Should I replace all t-esc directives with t-out in my fork?
  2. Could this problem be related to the OpenUpgrade process?

yibudak avatar Jan 28 '25 05:01 yibudak