[FIX] base_view_inheritance_extension: parse old value

pull/3109/head
Alessio Renda 2024-05-15 16:53:07 +02:00 committed by Sébastien Alix
parent 808dc5b90e
commit 444feb8523
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ class IrUiView(models.Model):
else: else:
new_value = str(expression.AND([old_domain, new_domain])) new_value = str(expression.AND([old_domain, new_domain]))
new_value = self.str2var_domain_text(new_value) new_value = self.str2var_domain_text(new_value)
old_value = "".join(old_value.splitlines())
else: else:
# We must ensure that the domain definition has not line breaks because # We must ensure that the domain definition has not line breaks because
# in update mode the domain cause an invalid syntax error # in update mode the domain cause an invalid syntax error