Use None as default value for module of view

Since 53fc70c2139f the module column of ir_ui_view has a foreign key constraint
on ir_module table so the default value must be NULL to ignore the constraint
when there is no module.

Closes #13816
This commit is contained in:
Cédric Krier committed 2025-01-13 19:28:18 +01:00
1 parent 1f0b754785
commit 4ff7ca6d6e
1 file changed
+1 -1
+1 -1
View File
@@ -129,7 +129,7 @@ class View(
@staticmethod
def default_module():
return Transaction().context.get('module') or ''
return Transaction().context.get('module')
def get_basis(self, name):
return not self.inherit or self.model != self.inherit.model