Input patterns (partner_autocomplete)
Glue module to make web_widget_pattern work on partner autocomplete fields
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Lets you apply input validation patterns (regular expressions) to fields that use the partner autocomplete widget, such as the VAT field on contacts. It is a technical glue module that installs automatically.
This is a technical glue module that combines two other modules: one that adds input patterns (regular expressions) to fields, and one that provides the partner autocomplete widget (the suggestion dropdown used on contact fields like VAT).
Without this module, a validation pattern defined on a field would not be enforced when that field uses the autocomplete widget. With it installed, the pattern is passed to the autocomplete component, so the same validation rule applies.
What changes in Odoo:
- The base model now recognises a pattern attribute on text fields and exposes it through the field description, so the web client can use it.
- The partner autocomplete widget template is extended to receive and apply the pattern.
- A demo view shows the pattern [A-Z]{2}[0-9]+ on the VAT field of the contact form, meaning the VAT must start with two uppercase letters followed by digits.
Where it appears: it affects the contact form (res.partner) and any other screen using the partner autocomplete widget. There are no new menus or reports.
Business rules: the only automatic behaviour is input validation according to the pattern defined on the field. No computations, emails, or scheduled jobs are added. The module installs automatically when both dependencies are present.
Depends on
Models and fields (1)
- base · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/web.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.