mirror of https://github.com/OCA/web.git
Currently translated at 100.0% (1 of 1 strings) Translation: web-16.0/web-16.0-web_widget_pattern Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_pattern/it/ |
||
---|---|---|
.. | ||
demo | ||
i18n | ||
models | ||
readme | ||
static | ||
tests | ||
README.rst | ||
__init__.py | ||
__manifest__.py |
README.rst
============== Input patterns ============== .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:049fefbca58070d1187e57e952f2eac13aa3aa4f636ca6c84e2ec8e67f4cd125 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png :target: https://odoo-community.org/page/development-status :alt: Alpha .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github :target: https://github.com/OCA/web/tree/16.0/web_widget_pattern :alt: OCA/web .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_pattern :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| This module allows to use `patterns <https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern>`__ in text fields in the backend. .. IMPORTANT:: This is an alpha version, the data model and design can change at any time without warning. Only for development or testing purpose, do not use in production. `More details on development status <https://odoo-community.org/page/development-status>`_ **Table of contents** .. contents:: :local: Usage ===== You can either define a pattern in your Python source code on a field as in .. code:: python my_field = fields.Char(pattern='[0-9]') or on view level as in .. code:: xml <field name="my_field" pattern="[0-9]" /> Demo data adds a pattern on the street2 field on partner forms to only allow numbers. Known issues / Roadmap ====================== - allow to optionally validate fields against its pattern server side - support text, url, email, phone, ... fields - support using a pattern from a computed field Bug Tracker =========== Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed `feedback <https://github.com/OCA/web/issues/new?body=module:%20web_widget_pattern%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Do not contact contributors directly about support or help with technical issues. Credits ======= Authors ------- * Hunki Enterprises BV Contributors ------------ - Holger Brunn <mail@hunki-enterprises.com> (https://hunki-enteprises.com) Maintainers ----------- This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. .. |maintainer-hbrunn| image:: https://github.com/hbrunn.png?size=40px :target: https://github.com/hbrunn :alt: hbrunn Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: |maintainer-hbrunn| This module is part of the `OCA/web <https://github.com/OCA/web/tree/16.0/web_widget_pattern>`_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.