Skip to content

[MIG][web_widget_char_size]: Migration to 19.0 - #3647

Open
jmanuelmendozacoronado-hoverture wants to merge 10 commits into
OCA:19.0from
jmanuelmendozacoronado-hoverture:19.0-mig-web_widget_char_size
Open

jmanuelmendozacoronado-hoverture wants to merge 10 commits into
OCA:19.0from
jmanuelmendozacoronado-hoverture:19.0-mig-web_widget_char_size

Conversation

@jmanuelmendozacoronado-hoverture

Copy link
Copy Markdown

[MIG] web_widget_char_size: Migration to 19.0

Description

This PR migrates the web_widget_char_size module to Odoo 19.0.

This technical module allows developers to add a size option to Char fields in the web client (e.g., <field name="ref" options="{'size': 5}"/>), which restricts the input to the specified number of characters at the UI level.

Changes

  • Bumped the version to 19.0.1.0.0 in __manifest__.py.
  • Validated that the JavaScript patch on CharField.prototype and extractProps remains fully compatible with the Odoo 19 web framework without requiring structural changes.
  • Added the module to the repository's README.md in the list of available addons.

(Note: As documented in previous versions, this extension applies strictly to the base CharField and does not affect fields that utilize specialized wrappers or autocomplete widgets, such as EmailField or the vat combobox).

@OCA-git-bot OCA-git-bot added series:19.0 mod:web_widget_char_size Module web_widget_char_size labels Aug 31, 2026

@BhaveshHeliconia BhaveshHeliconia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only functional review!

@tarteo tarteo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reword the migration commit from

[MIG][web_widget_char_size] Migration to 19.0

to

[MIG] web_widget_char_size: Migration to 19.0

Tested on runboat works but only for simple char fields, website (with widget url) doesn't work, although this is also the case in 18.0

@jmanuelmendozacoronado-hoverture

Copy link
Copy Markdown
Author

Please reword the migration commit from

[MIG][web_widget_char_size] Migration to 19.0

to

[MIG] web_widget_char_size: Migration to 19.0

Tested on runboat works but only for simple char fields, website (with widget url) doesn't work, although this is also the case in 18.0

Hello! I've updated the commit message as requested. I've also fixed the issue where the module wasn't working with other char fields like url, phone, and email/website. It should now apply the size limit correctly to all of them.

@tarteo

tarteo commented Sep 13, 2026

Copy link
Copy Markdown
Member

I'm on leave atm (until October), so please continue if I don't reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:web_widget_char_size Module web_widget_char_size series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants