{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python :: 2.7" ], "description": ".. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg\n :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n\n===========================\n2D matrix for x2many fields\n===========================\n\nThis module allows to show an x2many field with 3-tuples\n($x_value, $y_value, $value) in a table\n\n========= =========== ===========\n\\ $x_value1 $x_value2\n========= =========== ===========\n$y_value1 $value(1/1) $value(2/1)\n$y_value2 $value(1/2) $value(2/2)\n========= =========== ===========\n\nwhere `value(n/n)` is editable.\n\nAn example use case would be: Select some projects and some employees so that\na manager can easily fill in the planned_hours for one task per employee. The\nresult could look like this:\n\n.. image:: /web_widget_x2many_2d_matrix/static/description/screenshot.png\n :alt: Screenshot\n\nThe beauty of this is that you have an arbitrary amount of columns with this\nwidget, trying to get this in standard x2many lists involves some quite ugly\nhacks.\n\nUsage\n=====\n\nUse this widget by saying::\n\n\n\nThis assumes that my_field refers to a model with the fields `x`, `y` and\n`value`. If your fields are named differently, pass the correct names as\nattributes::\n\n\n\nYou can pass the following parameters:\n\nfield_x_axis\n The field that indicates the x value of a point\nfield_y_axis\n The field that indicates the y value of a point\nfield_label_x_axis\n Use another field to display in the table header\nfield_label_y_axis\n Use another field to display in the table header\nfield_value\n Show this field as value\nshow_row_totals\n If field_value is a numeric field, calculate row totals\nshow_column_totals\n If field_value is a numeric field, calculate column totals\nfield_att_\n Declare as many options prefixed with this string as you need for binding\n a field value with an HTML node attribute (disabled, class, style...)\n called as the `` passed in the option.\n\n.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas\n :alt: Try me on Runbot\n :target: https://runbot.odoo-community.org/runbot/162/8.0\n\nExample\n=======\n\nYou need a data structure already filled with values. Let's assume we want to\nuse this widget in a wizard that lets the user fill in planned hours for one\ntask per project per user. In this case, we can use ``project.task`` as our\ndata model and point to it from our wizard. The crucial part is that we fill\nthe field in the default function::\n\n class MyWizard(models.TransientModel):\n _name = 'my.wizard'\n\n def _default_task_ids(self):\n # your list of project should come from the context, some selection\n # in a previous wizard or wherever else\n projects = self.env['project.project'].browse([1, 2, 3])\n # same with users\n users = self.env['res.users'].browse([1, 2, 3])\n return [\n (0, 0, {'project_id': p.id, 'user_id': u.id, 'planned_hours': 0})\n # if the project doesn't have a task for the user, create a new one\n if not p.task_ids.filtered(lambda x: x.user_id == u) else\n # otherwise, return the task\n (4, p.task_ids.filtered(lambda x: x.user_id == u)[0].id)\n for p in projects\n for u in users\n ]\n\n task_ids = fields.Many2many('project.task', default=_default_task_ids)\n\nNow in our wizard, we can use::\n\n\n\nNote that all values in the matrix must exist, so you need to create them\npreviously if not present, but you can control visually the editability of\nthe fields in the matrix through `field_att_disabled` option with a control\nfield.\n\nKnown issues / Roadmap\n======================\n\n* it would be worth trying to instantiate the proper field widget and let it render the input\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n`_. In case of trouble, please\ncheck there if your issue has already been reported. If you spotted it first,\nhelp us smashing it by providing a detailed and welcomed feedback.\n\nCredits\n=======\n\nContributors\n------------\n\n* Holger Brunn \n* Pedro M. Baeza \n\nMaintainer\n----------\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\n\nThis module is maintained by the OCA.\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\nTo contribute to this module, please visit https://odoo-community.org.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "AGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo8-addon-web-widget-x2many-2d-matrix", "package_url": "https://pypi.org/project/odoo8-addon-web-widget-x2many-2d-matrix/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/odoo8-addon-web-widget-x2many-2d-matrix/", "project_urls": null, "release_url": "https://pypi.org/project/odoo8-addon-web-widget-x2many-2d-matrix/8.0.1.1.0/", "requires_dist": [ "odoo (<9.0a,>=8.0a)" ], "requires_python": "", "summary": "Show list fields as a matrix", "version": "8.0.1.1.0" }, "last_serial": 4423543, "releases": { "8.0.1.0.0.99.dev17": [ { "comment_text": "", "digests": { "md5": "5d4052ab7fee29402f586a54d52f3aae", "sha256": "964287e07a2b3876611b73f3a346d849394e2442229f00d84e6554b12e3460a8" }, "downloads": -1, "filename": "odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.0.0.99.dev17-py2-none-any.whl", "has_sig": false, "md5_digest": "5d4052ab7fee29402f586a54d52f3aae", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 45662, "upload_time": "2017-04-11T17:00:47", "url": "https://files.pythonhosted.org/packages/41/f5/d6dae6e7932ed42b9f9eaa5b0aaabe561d5433144dce5a5668ca07412311/odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.0.0.99.dev17-py2-none-any.whl" } ], "8.0.1.1.0": [ { "comment_text": "", "digests": { "md5": "c1dc40b892c7a64c58bd2ae771e9e689", "sha256": "e4adba0d5bff380e2aec4bf2d5f7157d96d257f07ac1770045d5bc3014fdbe9c" }, "downloads": -1, "filename": "odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "c1dc40b892c7a64c58bd2ae771e9e689", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 45778, "upload_time": "2017-04-11T17:00:51", "url": "https://files.pythonhosted.org/packages/aa/7d/8f45607f2636a15ff36a2f097efbeacfbced1413139409cdfebb0c4ceead/odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0-py2-none-any.whl" } ], "8.0.1.1.0.99.dev1": [ { "comment_text": "", "digests": { "md5": "cc0c887ebcb6ecf194862f1ee0d21675", "sha256": "ea5fd7e8518a7dd7b3d9ed71f5939d7e00def05f897b6ef9f33172905c2295e2" }, "downloads": -1, "filename": "odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev1-py2-none-any.whl", "has_sig": false, "md5_digest": "cc0c887ebcb6ecf194862f1ee0d21675", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 48002, "upload_time": "2017-04-11T17:00:55", "url": "https://files.pythonhosted.org/packages/85/fe/4b01ae0f1fc6e85dc6220226571c8af90fc492c5405e3665976511a7cf7d/odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev1-py2-none-any.whl" } ], "8.0.1.1.0.99.dev2": [ { "comment_text": "", "digests": { "md5": "549938347ffdd54bce21ddab86dab219", "sha256": "e0730b21683a0f89a6cee55f03a00856898c5d80b39462975b80f6022dba093a" }, "downloads": -1, "filename": "odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev2-py2-none-any.whl", "has_sig": false, "md5_digest": "549938347ffdd54bce21ddab86dab219", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 48312, "upload_time": "2017-04-11T17:01:00", "url": "https://files.pythonhosted.org/packages/3a/64/c2945abfd043a19794d66abc157f091115c603fc90056010c935b3e4255e/odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev2-py2-none-any.whl" } ], "8.0.1.1.0.99.dev3": [ { "comment_text": "", "digests": { "md5": "7deaf0150893e055cff249fac8be2515", "sha256": "9a2c6320f7200f6b86679982dae87cd37b7ba116765b2ebffa9bb753b10687a5" }, "downloads": -1, "filename": "odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev3-py2-none-any.whl", "has_sig": false, "md5_digest": "7deaf0150893e055cff249fac8be2515", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 48573, "upload_time": "2017-04-11T17:01:03", "url": "https://files.pythonhosted.org/packages/b5/9b/db2a32e86be7e90ab60167a6e8889bf67f5e0fbbebd42f4701b584ce91e4/odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev3-py2-none-any.whl" } ], "8.0.1.1.0.99.dev4": [ { "comment_text": "", "digests": { "md5": "1ed86d21b1918d1d7c1128785408fc2c", "sha256": "0bbd3a5e92cdbeee9b17a70f4669849fc90cb3b0f84d849f33992d65b8a9af5a" }, "downloads": -1, "filename": "odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev4-py2-none-any.whl", "has_sig": false, "md5_digest": "1ed86d21b1918d1d7c1128785408fc2c", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 70008, "upload_time": "2017-04-11T17:01:07", "url": "https://files.pythonhosted.org/packages/c6/83/f4e5c00cd74fe403824235c8dad3f12f11825c0f8a3bcba688cbd3280d7b/odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev4-py2-none-any.whl" } ], "8.0.1.1.0.99.dev5": [ { "comment_text": "", "digests": { "md5": "b516d079c111cdc79ac066f52b68b152", "sha256": "9a220fb42f25cf0ab521899dd127b95fcf49b41ad47b9885632521e2319f80fe" }, "downloads": -1, "filename": "odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev5-py2-none-any.whl", "has_sig": false, "md5_digest": "b516d079c111cdc79ac066f52b68b152", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 70700, "upload_time": "2017-04-11T17:01:11", "url": "https://files.pythonhosted.org/packages/22/c9/99733b720730ef5a07b8710faff368e774cedd3ac364c0836d9f3da651d5/odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev5-py2-none-any.whl" } ], "8.0.1.1.0.99.dev6": [ { "comment_text": "", "digests": { "md5": "c34b8ef8bb77a857d0207a9ec09137bd", "sha256": "25fe7ca3c5d6baddbbe951700ab7002d1bf92bf9af365800796b9f466e16f721" }, "downloads": -1, "filename": "odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev6-py2-none-any.whl", "has_sig": false, "md5_digest": "c34b8ef8bb77a857d0207a9ec09137bd", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 80274, "upload_time": "2017-05-02T05:11:19", "url": "https://files.pythonhosted.org/packages/59/30/3900ebde1fd3aadbeda344c2922e3281daa8f3435d7f7d82b7e00707b7fb/odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev6-py2-none-any.whl" } ], "8.0.1.1.0.99.dev7": [ { "comment_text": "", "digests": { "md5": "6f1571ccd73046d36c5c2ede29bf3e7d", "sha256": "d4de646e8ea6a48e1691f0c678b0d9eecf2662edc59248c5eb7b30e8cb87b9ed" }, "downloads": -1, "filename": "odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev7-py2-none-any.whl", "has_sig": false, "md5_digest": "6f1571ccd73046d36c5c2ede29bf3e7d", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 80937, "upload_time": "2018-06-24T04:38:10", "url": "https://files.pythonhosted.org/packages/1f/4e/43b489ca6867b4a72d523f5f89e5f1938dfc1a826fd32b1f166257ed97f1/odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev7-py2-none-any.whl" } ], "8.0.1.1.0.99.dev8": [ { "comment_text": "", "digests": { "md5": "d3b0c42a846e8cda55197cde2794ce56", "sha256": "20d0eeac3bbf9e92a5ccae2c84d1f0c964c24dce5c311b25950ba172b4da26c1" }, "downloads": -1, "filename": "odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev8-py2-none-any.whl", "has_sig": false, "md5_digest": "d3b0c42a846e8cda55197cde2794ce56", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 80961, "upload_time": "2018-06-27T04:33:12", "url": "https://files.pythonhosted.org/packages/e9/41/e5fe50011f1de5705161ef512af0c20b70aa5c1ab005dbb33fc76b55d618/odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev8-py2-none-any.whl" } ], "8.0.1.1.0.99.dev9": [ { "comment_text": "", "digests": { "md5": "238e827c3a07c01d0f5dc33a62c676db", "sha256": "b5fc9d5ecc604819df5478aff6e1f7191f189a1d2bcb335b266b9ef2359fb769" }, "downloads": -1, "filename": "odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev9-py2-none-any.whl", "has_sig": false, "md5_digest": "238e827c3a07c01d0f5dc33a62c676db", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 77707, "upload_time": "2018-10-28T05:34:14", "url": "https://files.pythonhosted.org/packages/ab/af/42526ded30df7028f25026b5c2f3cfeebd349172b32e67e5cd1a5504f6b0/odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0.99.dev9-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c1dc40b892c7a64c58bd2ae771e9e689", "sha256": "e4adba0d5bff380e2aec4bf2d5f7157d96d257f07ac1770045d5bc3014fdbe9c" }, "downloads": -1, "filename": "odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "c1dc40b892c7a64c58bd2ae771e9e689", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 45778, "upload_time": "2017-04-11T17:00:51", "url": "https://files.pythonhosted.org/packages/aa/7d/8f45607f2636a15ff36a2f097efbeacfbced1413139409cdfebb0c4ceead/odoo8_addon_web_widget_x2many_2d_matrix-8.0.1.1.0-py2-none-any.whl" } ] }