OCA / server-ux

GNU Affero General Public License v3.0
158 stars 514 forks source link

[17.0] date_range : editing a field in a form with studio throws error #909

Open therbin200 opened 2 months ago

therbin200 commented 2 months ago

Module

date_range

Describe the bug

The edition of a field in a form view with studio (simple as adding a domain on invisible condition) throws and error :

Caused by: TypeError: Cannot read properties of undefined (reading 'dateRanges') at TreeEditor.getValueEditorInfo (https://xxxxx/web/assets/debug/web.assets_web.js:205170:42) (/date_range/static/src/js/tree_editor.esm.js:49)

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Open view form with studio
  2. Edit the invisible condition of a field
  3. Click on new rule

Expected behavior The list of the field and the conditions must appears.