Skip to content

[18.0][FWP] Imp shopfloor_mobile_base: allow user input in date-picker-input + code cleanup#26

Open
TDu wants to merge 9 commits into
OCA:18.0from
camptocamp:18-ref-shopfloor_mobile_base-new-date_picker_input
Open

[18.0][FWP] Imp shopfloor_mobile_base: allow user input in date-picker-input + code cleanup#26
TDu wants to merge 9 commits into
OCA:18.0from
camptocamp:18-ref-shopfloor_mobile_base-new-date_picker_input

Conversation

@TDu
Copy link
Copy Markdown
Member

@TDu TDu commented May 8, 2026

Forward port of OCA/wms#1132
(not tested yet)

nicolas-delbovier-acsone and others added 8 commits May 8, 2026 09:34
Refactor the DatePicker component to use standard Vue event bubbling
instead of a global event hub and watchers.

- Replace the 'date' watcher with a manual $emit on the '@change'
  event to prevent redundant event triggers and improve performance.
- Remove the 'datepicker:newdate' event_hub listener as global
  broadcasting is unnecessary for this local UI component.
- Remove the 'handler_to_update_date' prop, shifting the responsibility
  of date processing to the parent component.
- Simplify the template and remove unused imports.
…g keyboard

- Use user locale for date input
- Use input masking to auto add the separators
- Prevent from entering invalid characters
- Show input error message in case of invalid input
- Reset input if date-picker is used instead
Changed the date-picker-input behavior to trigger the calendar popup
only when the prepend icon is clicked, rather than on text field focus.

This prevents the picker from obstructing the screen when users prefer
to type the date manually

Co-authored-by: Jacques-Etienne Baudoux <je.baudoux@gmail.com>
…input

Fixed a bug where invalid calendar dates (like Feb 29 in non-leap years)
were accepted and converted to the next valid date (March 01).
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @simahawk,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added mod:shopfloor_mobile_base Module shopfloor_mobile_base series:18.0 labels May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:shopfloor_mobile_base Module shopfloor_mobile_base series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants