Do not instantiate record with default for the form of the wizard view

The default values are already set using the defaults of the wizard view.

Closes #13723
This commit is contained in:
Cédric Krier
2024-12-01 23:48:17 +01:00
parent e2ee8f5b13
commit b6fd7fdf8a
+1 -1
View File
@@ -1251,7 +1251,7 @@ class Wizard(object):
if 'view' in result:
view = result['view']
self.form = Model.get(
view['fields_view']['model'], self._config)()
view['fields_view']['model'], self._config)(_default=False)
if 'defaults' in view:
self.form._default_set(view['defaults'])
if 'values' in view: