{"action":"created","issue":{"url":"https://api.github.com/repos/esthermm/custom-addons/issues/2","repository_url":"https://api.github.com/repos/esthermm/custom-addons","labels_url":"https://api.github.com/repos/esthermm/custom-addons/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/esthermm/custom-addons/issues/2/comments","events_url":"https://api.github.com/repos/esthermm/custom-addons/issues/2/events","html_url":"https://github.com/esthermm/custom-addons/pull/2","id":155497019,"number":2,"title":"[IMP] ubar_custom: defined function in template because is the same for template and variant","user":{"login":"oihane","id":2323616,"avatar_url":"https://avatars.githubusercontent.com/u/2323616?v=3","gravatar_id":"","url":"https://api.github.com/users/oihane","html_url":"https://github.com/oihane","followers_url":"https://api.github.com/users/oihane/followers","following_url":"https://api.github.com/users/oihane/following{/other_user}","gists_url":"https://api.github.com/users/oihane/gists{/gist_id}","starred_url":"https://api.github.com/users/oihane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oihane/subscriptions","organizations_url":"https://api.github.com/users/oihane/orgs","repos_url":"https://api.github.com/users/oihane/repos","events_url":"https://api.github.com/users/oihane/events{/privacy}","received_events_url":"https://api.github.com/users/oihane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-18T13:08:58Z","updated_at":"2016-05-18T13:14:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/esthermm/custom-addons/pulls/2","html_url":"https://github.com/esthermm/custom-addons/pull/2","diff_url":"https://github.com/esthermm/custom-addons/pull/2.diff","patch_url":"https://github.com/esthermm/custom-addons/pull/2.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/esthermm/custom-addons/issues/comments/220022014","html_url":"https://github.com/esthermm/custom-addons/pull/2#issuecomment-220022014","issue_url":"https://api.github.com/repos/esthermm/custom-addons/issues/2","id":220022014,"user":{"login":"oihane","id":2323616,"avatar_url":"https://avatars.githubusercontent.com/u/2323616?v=3","gravatar_id":"","url":"https://api.github.com/users/oihane","html_url":"https://github.com/oihane","followers_url":"https://api.github.com/users/oihane/followers","following_url":"https://api.github.com/users/oihane/following{/other_user}","gists_url":"https://api.github.com/users/oihane/gists{/gist_id}","starred_url":"https://api.github.com/users/oihane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oihane/subscriptions","organizations_url":"https://api.github.com/users/oihane/orgs","repos_url":"https://api.github.com/users/oihane/repos","events_url":"https://api.github.com/users/oihane/events{/privacy}","received_events_url":"https://api.github.com/users/oihane/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T13:14:55Z","updated_at":"2016-05-18T13:14:55Z","body":"* Breve explicación de porque coger la categoría de la variante\r\n\r\nel modulo _sale_stock_ añade un campo relacional y de solo lectura en las líneas llamado `product_tmpl_id` pero lo normal es que te bases en el `product_id` a no ser que tengas instalado el _sale_product_variants_ porque es realmente ese modulo el que te permite elegir la plantilla frente a la variante."}}