Skip to main content

Web Widget Color

Project description

Color widget for Odoo web client

This module aims to add a color picker to Odoo.

It’s a jsColor lib integration.

Features

  • The picker allow the user to quickly select a color on edit mode

    picker

  • Display the color on form view when you are not editing it

    formview

  • Display the color on list view to quickly find what’s wrong!

    listview

Usage

You need to declare a char field:

color = fields.Char(
    string="Color",
    help="Choose your color"
)

In the view declaration, put widget=’color’ attribute in the field tag:

...
<field name="arch" type="xml">
    <tree string="View name">
        ...
        <field name="color" widget="color"/>
        ...
    </tree>
</field>
...
<field name="arch" type="xml">
    <form string="View name">
        ...
        <field name="color" widget="color"/>
        ...
    </form>
</field>
...
Try me on Runbot

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Credits

Contributors

Maintainer

Odoo Community Association

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odoo11_addon_web_widget_color-11.0.1.0.0-py2.py3-none-any.whl (48.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file odoo11_addon_web_widget_color-11.0.1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for odoo11_addon_web_widget_color-11.0.1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d7a9213219884df63c731527a35adc75ee9f8ed91ebf2b1a8dc3a706a2ffbcba
MD5 9ea8ecffc56bc35621b11a41b1c03403
BLAKE2b-256 1c94a5e1d1fb7d78797355be4c47b7766404eff01fedc90e3fc3eddb2f028e12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page