summaryrefslogtreecommitdiff
path: root/odoo/tools/view_validation.py
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2019-08-08 15:47:53 +0000
committerjem-odoo <jem@openerp.com>2019-08-12 11:21:15 +0000
commit4b8af06d8a9477ffabe2aa220f0ed910a79b2344 (patch)
tree348cb2fe9b3ce5626fc4604c073550f3c17e8bcf /odoo/tools/view_validation.py
parentdf93bf175f7be9e7cb36665684ceaf30e7b6f4a7 (diff)
[IMP] base: extract gantt validation
All views defined in the 'enterprise' addons have their validation done manually in their respective addons. Each one ? No, one rebel still resists to the standart way to work. This commit moves the gantt validation to put it in its module. The idea is (for developper) to have only one module to change when adding feature in gantt view. Task-2050019
Diffstat (limited to 'odoo/tools/view_validation.py')
-rw-r--r--odoo/tools/view_validation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/tools/view_validation.py b/odoo/tools/view_validation.py
index 9751c386a2b..f135e52dc3a 100644
--- a/odoo/tools/view_validation.py
+++ b/odoo/tools/view_validation.py
@@ -183,7 +183,7 @@ def relaxng(view_type):
return _relaxng_cache[view_type]
-@validate('calendar', 'diagram', 'gantt', 'graph', 'pivot', 'search', 'tree', 'activity')
+@validate('calendar', 'diagram', 'graph', 'pivot', 'search', 'tree', 'activity')
def schema_valid(arch, **kwargs):
""" Get RNG validator and validate RNG file."""
validator = relaxng(arch.tag)