{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/24243","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/24243/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/24243/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/24243/events","html_url":"https://github.com/odoo/odoo/pull/24243","id":314485332,"number":24243,"title":"More grouping features","user":{"login":"yelizariev","id":186131,"avatar_url":"https://avatars0.githubusercontent.com/u/186131?v=4","gravatar_id":"","url":"https://api.github.com/users/yelizariev","html_url":"https://github.com/yelizariev","followers_url":"https://api.github.com/users/yelizariev/followers","following_url":"https://api.github.com/users/yelizariev/following{/other_user}","gists_url":"https://api.github.com/users/yelizariev/gists{/gist_id}","starred_url":"https://api.github.com/users/yelizariev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yelizariev/subscriptions","organizations_url":"https://api.github.com/users/yelizariev/orgs","repos_url":"https://api.github.com/users/yelizariev/repos","events_url":"https://api.github.com/users/yelizariev/events{/privacy}","received_events_url":"https://api.github.com/users/yelizariev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-16T03:02:50Z","updated_at":"2018-04-16T08:13:51Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/24243","html_url":"https://github.com/odoo/odoo/pull/24243","diff_url":"https://github.com/odoo/odoo/pull/24243.diff","patch_url":"https://github.com/odoo/odoo/pull/24243.patch"},"body":"**New type of grouping.** \r\n\r\nFor example ``date:only_hour`` -- group by one of 24 value. Allows to analyze which hour of a day has most sales. Other examples:\r\n\r\n                  * 'date:only_hour' -- group by every hour of a day (one of 24 values) \r\n                  * 'date:only_hour_15minute' -- group by every 15 min of a day (one of 24*4 values)\r\n                  * 'date:only_dow' -- group by day of a week (one of 7 values)\r\n                  * 'date:only_dow_hour' -- group by hour of each day of a week (one of 7*24 values)\r\n                  * 'date:only_doy' -- group by day of a year (one of 365 values)\r\n\r\n**More flexible usual grouping**\r\n\r\nAllows to specify number in grouping, e.g. ``date:2month`` -- group by 2 monthes (Jan-Feb, Mar-Apr, etc.)\r\n\r\n--\r\nI confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr\r\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/381516690","html_url":"https://github.com/odoo/odoo/pull/24243#issuecomment-381516690","issue_url":"https://api.github.com/repos/odoo/odoo/issues/24243","id":381516690,"user":{"login":"odony","id":2039870,"avatar_url":"https://avatars3.githubusercontent.com/u/2039870?v=4","gravatar_id":"","url":"https://api.github.com/users/odony","html_url":"https://github.com/odony","followers_url":"https://api.github.com/users/odony/followers","following_url":"https://api.github.com/users/odony/following{/other_user}","gists_url":"https://api.github.com/users/odony/gists{/gist_id}","starred_url":"https://api.github.com/users/odony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odony/subscriptions","organizations_url":"https://api.github.com/users/odony/orgs","repos_url":"https://api.github.com/users/odony/repos","events_url":"https://api.github.com/users/odony/events{/privacy}","received_events_url":"https://api.github.com/users/odony/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T08:13:51Z","updated_at":"2018-04-16T08:13:51Z","author_association":"CONTRIBUTOR","body":"I think that's a great deal of overkill for the framework. As @mart-e suggested on #24203, such custom cases should be done in userland, not in the framework. We should instead think of how to make it easier for addons to provide custom grouping operators and possibly plug them in the UI.\r\n\r\n@ged-odoo What do you think?"}}
{"actor":{"display_login":"odony"}}