summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2017-09-25 11:33:12 +0200
committerOlivier Dony <odo@openerp.com>2017-09-25 12:03:55 +0200
commitdbb931976fd102a1eceea4ebf195efea7576f260 (patch)
treef3344d708db946bca7047bc644574ba42dcf1de0 /addons/web/static/src/xml/base.xml
parentf565a18cad26dd5cede9eb6731908b1ae51ff1c7 (diff)
[FIX] base: use better view inheritance (secondary) order
Currently, the view inheritance order is 'priority,name,id', the default order for the 'ir.ui.view' model. This commit changes the order to 'priority,id' while computing inheritance. This make views chronologically ordered according to their installation order, after the primary sorting on `priority`. This helps to automatically solve some inheritance order bugs that would have traditionally required explicit view priorities. Considering this example: an app C depends on two others apps A and B. We want the LESS files of C to come after the LESS files of A and B as CSS rules order matter. The only solution to make sure of that with the current implementation is to change priority field of C to be higher than 16 (default of A and B). With a complex hierarchy, that will induce errors. Ordering by 'priority,id' solves the problem, indeed views' ids of apps A and B will be lower than views' ids of app C. The "name" ordering is fine for list views display but not for views inheritance. Closes #19658
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions