{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/account-analytic/issues/36","labels_url":"https://api.github.com/repos/OCA/account-analytic/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/OCA/account-analytic/issues/36/comments","events_url":"https://api.github.com/repos/OCA/account-analytic/issues/36/events","html_url":"https://github.com/OCA/account-analytic/pull/36","id":100671256,"number":36,"title":"[8.0] analytic_partner_hr_timesheet","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},"labels":[{"url":"https://api.github.com/repos/OCA/account-analytic/labels/needs%20review","name":"needs review","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-08-13T01:37:10Z","updated_at":"2015-09-01T09:16:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OCA/account-analytic/pulls/36","html_url":"https://github.com/OCA/account-analytic/pull/36","diff_url":"https://github.com/OCA/account-analytic/pull/36.diff","patch_url":"https://github.com/OCA/account-analytic/pull/36.patch"},"body":"Partner in HR timesheets and its link with analytic\r\n===================================================\r\n\r\nThis module adds the partner on HR timesheets and propagate it to the\r\nauto-generated analytic entries on the \"Other partner\" field.\r\n\r\nInstallation\r\n============\r\n\r\nThis module is auto-installed by Odoo when *analytic_partner* and\r\n*hr_timesheet* are installed.\r\n\r\nUsage\r\n=====\r\n\r\nGo to Human Resources > Timesheet activities, and you will find there the\r\npartner field. You can set it, search for it or group by it.\r\n\r\nYou can also go to a partner, and click on the smart-button \"Activities\" to\r\nsee, edit or addd the related timesheet activities."},"comment":{"url":"https://api.github.com/repos/OCA/account-analytic/issues/comments/136645549","html_url":"https://github.com/OCA/account-analytic/pull/36#issuecomment-136645549","issue_url":"https://api.github.com/repos/OCA/account-analytic/issues/36","id":136645549,"user":{"login":"antespi","id":1881111,"avatar_url":"https://avatars.githubusercontent.com/u/1881111?v=3","gravatar_id":"","url":"https://api.github.com/users/antespi","html_url":"https://github.com/antespi","followers_url":"https://api.github.com/users/antespi/followers","following_url":"https://api.github.com/users/antespi/following{/other_user}","gists_url":"https://api.github.com/users/antespi/gists{/gist_id}","starred_url":"https://api.github.com/users/antespi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antespi/subscriptions","organizations_url":"https://api.github.com/users/antespi/orgs","repos_url":"https://api.github.com/users/antespi/repos","events_url":"https://api.github.com/users/antespi/events{/privacy}","received_events_url":"https://api.github.com/users/antespi/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T09:16:19Z","updated_at":"2015-09-01T09:16:19Z","body":"@pedrobaeza, I tried to do a complete workflow. Maybe I'm missing somethig:\r\n\r\n1. Search an analyltic account without a partner and check timesheet  option if not set.\r\n- For example: \"YourCompany / Internal / Training / Online\"\r\n2. Go to Agrolait partner and click on \"Activities\"\r\n3. Create an activity with 5 hours and that analytic account\r\n   - Partner ID is empty\r\n   - Other  partner is Agrolait \r\n   - That's correct\r\n4. Go to Sales > Invoicing > Time & material to invoice\r\n   - My activity is there, OK\r\n5. Select it and click on More > Create invoice\r\n   - A pop-up allows me to select description and force product\r\n6. When click on \"Create invoice\" button this error appears:\r\n\r\n```\r\nError!\r\n\r\nContract incomplete. Please fill in the Customer and Pricelist fields for Online.\r\n```\r\n\r\nI expect two things:\r\n\r\n1. Configure an analytic account as type \"Contract or Project\" filling \"Invoicing\" section and not setting a partner (because I'm going to do it in other_partner_id in each timesheet).\r\n2. When creating invoice from a timesheet, could wizard let me select which partner to invoice (partner_id or other_partner_id)? If yes, what would happend if several timesheets with different partners are selected? For fix this case, addon could invoice to other_partner_d if set, and to partner_id if other_partner_id is not set. Then wizard hasn't ask user for selecting partner.\r\n\r\nWhat do you think? \r\n\r\n"}}