{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/multi-company/issues/10","labels_url":"https://api.github.com/repos/OCA/multi-company/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/OCA/multi-company/issues/10/comments","events_url":"https://api.github.com/repos/OCA/multi-company/issues/10/events","html_url":"https://github.com/OCA/multi-company/issues/10","id":60642473,"number":10,"title":"Module product_autocompany breaks travis ci test","user":{"login":"duanyp1991","id":3785252,"avatar_url":"https://avatars.githubusercontent.com/u/3785252?v=3","gravatar_id":"","url":"https://api.github.com/users/duanyp1991","html_url":"https://github.com/duanyp1991","followers_url":"https://api.github.com/users/duanyp1991/followers","following_url":"https://api.github.com/users/duanyp1991/following{/other_user}","gists_url":"https://api.github.com/users/duanyp1991/gists{/gist_id}","starred_url":"https://api.github.com/users/duanyp1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duanyp1991/subscriptions","organizations_url":"https://api.github.com/users/duanyp1991/orgs","repos_url":"https://api.github.com/users/duanyp1991/repos","events_url":"https://api.github.com/users/duanyp1991/events{/privacy}","received_events_url":"https://api.github.com/users/duanyp1991/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-11T11:08:37Z","updated_at":"2015-03-12T06:31:26Z","closed_at":null,"body":"    \r\n  The module: product_autocompany makes company_id on model(product_template) required \r\nhowever the demo data in sale/sale_demo.xml:326 have one record of product with empty company_id.\r\n\r\n  This actually is quite normal in a real project, some customized modules might change the standard workflow which make the standard tests fail."},"comment":{"url":"https://api.github.com/repos/OCA/multi-company/issues/comments/78430500","html_url":"https://github.com/OCA/multi-company/issues/10#issuecomment-78430500","issue_url":"https://api.github.com/repos/OCA/multi-company/issues/10","id":78430500,"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-03-12T06:31:26Z","updated_at":"2015-03-12T06:31:26Z","body":"For v7, if you check for `version is None`, you can execute it in first install. For v8, you have to use a pre or post-init hook. See an example here:\r\n\r\nhttps://github.com/odoomrp/odoomrp-wip/blob/8.0/quality_control_stock/__openerp__.py#L42\r\nhttps://github.com/odoomrp/odoomrp-wip/blob/8.0/quality_control_stock/__init__.py#L10"}}