{
"info": {
"author": "Camptocamp, Therp BV, Odoo Community Association (OCA)",
"author_email": "support@odoo-community.org",
"bugtrack_url": null,
"classifiers": [
"Framework :: Odoo",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python"
],
"description": "============================\nColorize field in tree views\n============================\n\n.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n !! This file is generated by oca-gen-addon-readme !!\n !! changes will be overwritten. !!\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n :target: https://odoo-community.org/page/development-status\n :alt: Beta\n.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png\n :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github\n :target: https://github.com/OCA/web/tree/12.0/web_tree_dynamic_colored_field\n :alt: OCA/web\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n :target: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_tree_dynamic_colored_field\n :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png\n :target: https://runbot.odoo-community.org/runbot/162/12.0\n :alt: Try me on Runbot\n\n|badge1| |badge2| |badge3| |badge4| |badge5| \n\nThis module aims to add support for dynamically coloring fields in tree view\naccording to data in the record.\n\nIt provides attributes on fields with the similar syntax as the ``colors`` attribute\nin tree tags.\n\nFurther, it provides a ``color_field`` attribute on tree tags's ``colors`` to use\na field's value as color.\n\nFeatures\n========\n\n* Add attribute ``bg_color`` on field's ``options`` to color background of a cell in tree view\n* Add attribute ``fg_color`` on field's ``options`` to change text color of a cell in tree view\n* Add attribute ``color_field`` on the tree element's ``colors`` to use as color\n\n**Table of contents**\n\n.. contents::\n :local:\n\nUsage\n=====\n\n* In the tree view declaration, put ``options='{\"bg_color\": \"red: customer==True\"}`` attribute in the ``field`` tag::\n\n ...\n \n \n ...\n \n ...\n \n \n ...\n\n With this example, column which renders 'name' field will have its background colored in red.\n\n* In the tree view declaration, put ``options='{\"fg_color\": \"white:customer == True\"}'`` attribute in the ``field`` tag::\n\n ...\n \n \n ...\n \n ...\n \n \n ...\n\n With this example, column which renders 'name' field will have its text colored in white on a customer records.\n\n* In the tree view declaration, use ``options='\"color_field\": \"my_color\"'`` attribute in the ``tree`` tag::\n\n ...\n \n \n ...\n \n ...\n \n \n ...\n\n* If you want to use more than one color, you can split the attributes using ';':\n\n.. code::\n\n options='{\"fg_color\": \"red:red_color == True; green:green_color == True\"}'\n\nExample:\n\n.. code:: xml\n\n ...\n \n \n ...\n \n ...\n \n \n ...\n\n With this example, the content of the field named `my_color` will be used to\n populate the `my_color` CSS value. Use a function field to return whichever\n color you want depending on the other record values. Note that this\n overrides the rest of `colors` attributes, and that you need the tree\n to load your field in the first place by adding it as invisible field.\n\n**Note that you should always use single quotes for fields' ``options`` and wrap nested values in double quotes since ``options`` is a JSON object.**\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues `_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us smashing it by providing a detailed and welcomed\n`feedback `_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n~~~~~~~\n\n* Camptocamp\n* Therp BV\n\nContributors\n~~~~~~~~~~~~\n\n* Damien Crier \n* Holger Brunn \n* Artem Kostyuk \n* Guewen Baconnier \n\nMaintainers\n~~~~~~~~~~~\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nThis module is part of the `OCA/web `_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n\n\n",
"description_content_type": "",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/OCA/web",
"keywords": "",
"license": "AGPL-3",
"maintainer": "",
"maintainer_email": "",
"name": "odoo12-addon-web-tree-dynamic-colored-field",
"package_url": "https://pypi.org/project/odoo12-addon-web-tree-dynamic-colored-field/",
"platform": "",
"project_url": "https://pypi.org/project/odoo12-addon-web-tree-dynamic-colored-field/",
"project_urls": {
"Homepage": "https://github.com/OCA/web"
},
"release_url": "https://pypi.org/project/odoo12-addon-web-tree-dynamic-colored-field/12.0.1.0.0.99.dev5/",
"requires_dist": [
"odoo (<12.1dev,>=12.0a)"
],
"requires_python": ">=3.5",
"summary": "Allows you to dynamically color fields on tree views",
"version": "12.0.1.0.0.99.dev5"
},
"last_serial": 5773875,
"releases": {
"12.0.1.0.0.99.dev3": [
{
"comment_text": "",
"digests": {
"md5": "a982d39600fe7c940631ad0bcfa98f70",
"sha256": "ad4940add3e47eafd649ab6bc26af4a37b5f012307071037e2d588d67d1d65bc"
},
"downloads": -1,
"filename": "odoo12_addon_web_tree_dynamic_colored_field-12.0.1.0.0.99.dev3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a982d39600fe7c940631ad0bcfa98f70",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 26553,
"upload_time": "2019-05-23T04:47:40",
"url": "https://files.pythonhosted.org/packages/07/bc/fe231a0ef778b1117d42e0c0e9949b6568ac054e91ad2bd3dc0fa2bf0bcb/odoo12_addon_web_tree_dynamic_colored_field-12.0.1.0.0.99.dev3-py3-none-any.whl"
}
],
"12.0.1.0.0.99.dev4": [
{
"comment_text": "",
"digests": {
"md5": "53f188d00f49ac0c69dbabefe5bcf9dd",
"sha256": "73a78a5e5fa7959fade7b1fda1a8e9ca3bf84493965a254820dc951d4da81755"
},
"downloads": -1,
"filename": "odoo12_addon_web_tree_dynamic_colored_field-12.0.1.0.0.99.dev4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "53f188d00f49ac0c69dbabefe5bcf9dd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 26551,
"upload_time": "2019-07-30T05:11:47",
"url": "https://files.pythonhosted.org/packages/b2/3f/f27ba5b5324c77ace8d0d447f8d099944001aa026b63f4f23cefa4f4b07f/odoo12_addon_web_tree_dynamic_colored_field-12.0.1.0.0.99.dev4-py3-none-any.whl"
}
],
"12.0.1.0.0.99.dev5": [
{
"comment_text": "",
"digests": {
"md5": "00973dfe1f3138d7ed68adf83138ec8d",
"sha256": "4396f3ab1bf86f1c2dac11b44b48e4a97dc30bf14871c01fa3677f94d0159a37"
},
"downloads": -1,
"filename": "odoo12_addon_web_tree_dynamic_colored_field-12.0.1.0.0.99.dev5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "00973dfe1f3138d7ed68adf83138ec8d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 27047,
"upload_time": "2019-09-03T04:54:45",
"url": "https://files.pythonhosted.org/packages/26/92/1fd4cccaf221a7ac6aa491142ca0f41c03c0484b515b2aa9b1bab8a80498/odoo12_addon_web_tree_dynamic_colored_field-12.0.1.0.0.99.dev5-py3-none-any.whl"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "00973dfe1f3138d7ed68adf83138ec8d",
"sha256": "4396f3ab1bf86f1c2dac11b44b48e4a97dc30bf14871c01fa3677f94d0159a37"
},
"downloads": -1,
"filename": "odoo12_addon_web_tree_dynamic_colored_field-12.0.1.0.0.99.dev5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "00973dfe1f3138d7ed68adf83138ec8d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 27047,
"upload_time": "2019-09-03T04:54:45",
"url": "https://files.pythonhosted.org/packages/26/92/1fd4cccaf221a7ac6aa491142ca0f41c03c0484b515b2aa9b1bab8a80498/odoo12_addon_web_tree_dynamic_colored_field-12.0.1.0.0.99.dev5-py3-none-any.whl"
}
]
}