Fix apply inheritance specs on views (pre_locate)

pull/2494/head
Julien Coux 2021-05-21 11:44:17 +02:00 committed by Enric Tobella
parent be24def022
commit 434a40ba38
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class IrUiView(models.Model):
@api.model
def apply_inheritance_specs(self, source, specs_tree, pre_locate=lambda s: True):
for specs, handled_by in self._iter_inheritance_specs(specs_tree):
pre_locate(specs)
source = handled_by(source, specs)
return source