mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
16 lines
405 B
JavaScript
16 lines
405 B
JavaScript
/** @odoo-module **/
|
|
|
|
import {AutoComplete} from "@web/core/autocomplete/autocomplete";
|
|
|
|
const _extractProps = AutoComplete.extractProps;
|
|
AutoComplete.extractProps = ({attrs, field}) => {
|
|
return Object.assign(_extractProps({attrs, field}), {
|
|
pattern: attrs.pattern || field.pattern,
|
|
});
|
|
};
|
|
|
|
AutoComplete.props = {
|
|
...AutoComplete.props,
|
|
pattern: {type: String, optional: true},
|
|
};
|