odoo/enterprise#67988

Created by fw-bot
Merged at 6f80dd62fc8ef26aad60522b99982dad56e69d21

Statuses:

label
odoo-dev:master-master-date-widget-work-with-datetime-imp-laro-sng_-fw
head
b13a7ddd22863cfc93cb429d1e010f10ebc6d068
merged
1 year ago by JavaScript, Mathieu Duckerts-Antoine (dam)
odoo/odoo odoo/enterprise odoo/documentation
17.0 #161705 #67258 #10325
saas-17.1 #175257 #67753 #10481
saas-17.2 #175419 #67835 #10545
saas-17.4 #175446 #67843 #10564
18.0
saas-18.2
saas-18.3
saas-18.4
master #175743 #67988 #10603

[FW][FIX] web_studio: apply datetime widget when unticking show time

After making changes in community PR: odoo/odoo#161705

The datetime widget was not being applied when we dragged and dropped a datetime field from the studio.

Steps to reproduce:

  • Open the Sales module and toggle Studio.
  • Drag and drop a datetime field into the list view.
  • Try to tick and untick the Show time option.

Observed behavior:
When ticking and unticking the show time option, the time part is not hiding before resetting the widget.

Expected behavior:
The time part should be hidden when we tick and untick the show time option without resetting the widget.

After this commit, the datetime widget will be applied when we drag and drop a datetime field from the studio and untick the show time boolean.

task-3698841

Forward-Port-Of: #67843
Forward-Port-Of: #67258