[FIX] base: enforce deterministic view inheritance

If multiple views had the same name and same priority, the order
of application of their xpath was not deterministic. That may be a
big deal if both of them were doing xpath with position = inside.
This commit is contained in:
David Monjoie
2016-11-09 10:51:09 +01:00
parent cc444338ed
commit ca11d35a62
+1 -1
View File
@@ -131,7 +131,7 @@ TRANSLATED_ATTRS_RE = re.compile(r"@(%s)\b" % "|".join(TRANSLATED_ATTRS))
class View(models.Model):
_name = 'ir.ui.view'
_order = "priority,name"
_order = "priority,name,id"
# Holds the RNG schema
_relaxng_validator = None