[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user