{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/web/issues/96","labels_url":"https://api.github.com/repos/OCA/web/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/OCA/web/issues/96/comments","events_url":"https://api.github.com/repos/OCA/web/issues/96/events","html_url":"https://github.com/OCA/web/pull/96","id":61145734,"number":96,"title":"8.0 web widget x2many 2d matrix","user":{"login":"hbrunn","id":2563186,"avatar_url":"https://avatars.githubusercontent.com/u/2563186?v=3","gravatar_id":"","url":"https://api.github.com/users/hbrunn","html_url":"https://github.com/hbrunn","followers_url":"https://api.github.com/users/hbrunn/followers","following_url":"https://api.github.com/users/hbrunn/following{/other_user}","gists_url":"https://api.github.com/users/hbrunn/gists{/gist_id}","starred_url":"https://api.github.com/users/hbrunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbrunn/subscriptions","organizations_url":"https://api.github.com/users/hbrunn/orgs","repos_url":"https://api.github.com/users/hbrunn/repos","events_url":"https://api.github.com/users/hbrunn/events{/privacy}","received_events_url":"https://api.github.com/users/hbrunn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OCA/web/labels/needs%20review","name":"needs review","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OCA/web/milestones/3","html_url":"https://github.com/OCA/web/milestones/8.0","labels_url":"https://api.github.com/repos/OCA/web/milestones/3/labels","id":819641,"number":3,"title":"8.0","description":"","creator":{"login":"legalsylvain","id":3407482,"avatar_url":"https://avatars.githubusercontent.com/u/3407482?v=3","gravatar_id":"","url":"https://api.github.com/users/legalsylvain","html_url":"https://github.com/legalsylvain","followers_url":"https://api.github.com/users/legalsylvain/followers","following_url":"https://api.github.com/users/legalsylvain/following{/other_user}","gists_url":"https://api.github.com/users/legalsylvain/gists{/gist_id}","starred_url":"https://api.github.com/users/legalsylvain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legalsylvain/subscriptions","organizations_url":"https://api.github.com/users/legalsylvain/orgs","repos_url":"https://api.github.com/users/legalsylvain/repos","events_url":"https://api.github.com/users/legalsylvain/events{/privacy}","received_events_url":"https://api.github.com/users/legalsylvain/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":31,"state":"open","created_at":"2014-10-09T10:16:30Z","updated_at":"2015-04-16T09:33:33Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-03-13T17:20:30Z","updated_at":"2015-04-17T19:54:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OCA/web/pulls/96","html_url":"https://github.com/OCA/web/pull/96","diff_url":"https://github.com/OCA/web/pull/96.diff","patch_url":"https://github.com/OCA/web/pull/96.patch"},"body":"2D matrix for x2many fields\r\n===========================\r\n\r\nThis module allows to show an x2many field with 3-tuples\r\n($x_value, $y_value, $value) in a table\r\n\r\n           | $x_value1 | $x_value2 |\r\n|-------|---------|------\r\n| $y_value1 | $value1/1 | $value2/1 |\r\n| $y_value2 | $value1/2 | $value2/2 |\r\n\r\nwhere `value(n/n)` is editable.\r\n\r\nAn example use case would be: Select some projects and some employees so that a manager can easily fill in the planned_hours for one task per employee. The result could look like this:\r\n\r\n![screenshot](https://raw.githubusercontent.com/hbrunn/web/8.0-web_widget_x2many_2d_matrix/web_widget_x2many_2d_matrix/static/description/screenshot.png \"Screenshot\")\r\n\r\nUsage\r\n=====\r\n\r\nUse this widget by saying\r\n\r\n```xml\r\n<field name=\"my_field\" widget=\"x2many_2d_matrix\" />\r\n```\r\n\r\nThis assumes that my_field refers to a model with the fields `x`, `y` and\r\n`value`. If your fields are named differently, pass the correct names as\r\nattributes\r\n\r\n```xml\r\n<field name=\"my_field\" widget=\"x2many_2d_matrix\"\r\n field_x_axis=\"my_field1\" field_y_axis=\"my_field2\" field_value=\"my_field3\" />\r\n```\r\n\r\nYou can pass the following parameters:\r\n\r\nfield_x_axis\r\n    The field that indicates the x value of a point\r\nfield_y_axis\r\n    The field that indicates the y value of a point\r\nfield_label_x_axis\r\n    Use another field to display in the table header\r\nfield_label_y_axis\r\n    Use another field to display in the table header\r\nfield_value\r\n    Show this field as value\r\nshow_row_totals\r\n    If field_value is a numeric field, calculate row totals\r\nshow_column_totals\r\n    If field_value is a numeric field, calculate column totals\r\n\r\nKnown issues / Roadmap\r\n======================\r\n\r\n* it would be better to instantiate the proper field widget and let it render the input"},"comment":{"url":"https://api.github.com/repos/OCA/web/issues/comments/94062171","html_url":"https://github.com/OCA/web/pull/96#issuecomment-94062171","issue_url":"https://api.github.com/repos/OCA/web/issues/96","id":94062171,"user":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars.githubusercontent.com/u/7165771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T19:54:28Z","updated_at":"2015-04-17T19:54:28Z","body":"Very useful!\r\n\r\n:+1: "}}