summaryrefslogtreecommitdiff
path: root/odoo/tools
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2020-07-16 09:49:10 +0000
committerXavier Morel <xmo@odoo.com>2020-07-28 13:03:13 +0000
commit6835aeb0de6895f7f4d6b23e0b4654465ef21d6a (patch)
treea01960df831f7f6fee07b99851dfc49a0978b222 /odoo/tools
parent96a3265118df686a0175b240c9636cfd2b53a492 (diff)
[REM] core, *: deprecate <act_window> and <report>
Convert deprecated tags through the codebase.
Diffstat (limited to 'odoo/tools')
-rw-r--r--odoo/tools/convert.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/odoo/tools/convert.py b/odoo/tools/convert.py
index 8e6efc7a9dc..0a6a0c23da8 100644
--- a/odoo/tools/convert.py
+++ b/odoo/tools/convert.py
@@ -8,6 +8,7 @@ import re
import subprocess
import sys
import time
+import warnings
from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
@@ -288,6 +289,7 @@ form: module.record_id""" % (xml_id,)
xml_id = rec.get('id','')
self._test_xml_id(xml_id)
+ warnings.warn(f"The <report> tag is deprecated, use a <record> tag for {xml_id!r}.", DeprecationWarning)
if rec.get('groups'):
g_names = rec.get('groups','').split(',')
@@ -327,6 +329,7 @@ form: module.record_id""" % (xml_id,)
name = rec.get('name')
xml_id = rec.get('id','')
self._test_xml_id(xml_id)
+ warnings.warn("The <act_window> tag is deprecated, use a <record> for {xml_id!r}.", DeprecationWarning)
view_id = False
if rec.get('view_id'):
view_id = self.id_get(rec.get('view_id'))