odoo/enterprise#67258

Created by Lakshay Roopchandani (laro)
Merged at 7ae67b649da22de51fb6eebe33260849f38f2820

Statuses:

label
odoo-dev:master-date-widget-work-with-datetime-imp-laro
head
006ec58cabd1a91032fd3de1fd10fda6cd331485
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

[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