{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/maintainer-tools/issues/388","repository_url":"https://api.github.com/repos/OCA/maintainer-tools","labels_url":"https://api.github.com/repos/OCA/maintainer-tools/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/OCA/maintainer-tools/issues/388/comments","events_url":"https://api.github.com/repos/OCA/maintainer-tools/issues/388/events","html_url":"https://github.com/OCA/maintainer-tools/issues/388","id":374206328,"node_id":"MDU6SXNzdWUzNzQyMDYzMjg=","number":388,"title":"Discrepancy between doc and module template on how XML files should be named","user":{"login":"luisg123v","id":19801181,"node_id":"MDQ6VXNlcjE5ODAxMTgx","avatar_url":"https://avatars1.githubusercontent.com/u/19801181?v=4","gravatar_id":"","url":"https://api.github.com/users/luisg123v","html_url":"https://github.com/luisg123v","followers_url":"https://api.github.com/users/luisg123v/followers","following_url":"https://api.github.com/users/luisg123v/following{/other_user}","gists_url":"https://api.github.com/users/luisg123v/gists{/gist_id}","starred_url":"https://api.github.com/users/luisg123v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisg123v/subscriptions","organizations_url":"https://api.github.com/users/luisg123v/orgs","repos_url":"https://api.github.com/users/luisg123v/repos","events_url":"https://api.github.com/users/luisg123v/events{/privacy}","received_events_url":"https://api.github.com/users/luisg123v/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-26T02:51:29Z","updated_at":"2018-10-26T07:28:54Z","closed_at":null,"author_association":"NONE","body":"According to [the documentation](https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md#user-content-file-naming), XML files should be named without suffix, i.e. data/`res_partner.xml`, `views/res_partner.xml`, etc.\r\n\r\nHowever, if we check the module template, we'll notice  it's with suffix for [data](https://github.com/OCA/maintainer-tools/blob/master/template/module/data/model_name_data.xml), [demo](https://github.com/OCA/maintainer-tools/blob/master/template/module/demo/model_name_demo.xml) and [views](https://github.com/OCA/maintainer-tools/blob/master/template/module/views/model_name_view.xml).\r\n\r\nTo solve this, I see three possibilities:\r\n1. Modify the documentation to match the template\r\n1. Modify the template to match the documentation\r\n1. Modify the documentation to encourage both alternatives"},"comment":{"url":"https://api.github.com/repos/OCA/maintainer-tools/issues/comments/433314264","html_url":"https://github.com/OCA/maintainer-tools/issues/388#issuecomment-433314264","issue_url":"https://api.github.com/repos/OCA/maintainer-tools/issues/388","id":433314264,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzMxNDI2NA==","user":{"login":"pedrobaeza","id":7165771,"node_id":"MDQ6VXNlcjcxNjU3NzE=","avatar_url":"https://avatars2.githubusercontent.com/u/7165771?v=4","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":"2018-10-26T07:28:54Z","updated_at":"2018-10-26T07:28:54Z","author_association":"CONTRIBUTOR","body":"Thanks for bringing this to table.\r\n\r\nYes, this is a discrepancy. For me, we should go for option 1, as the suffix is important when you are looking for file name, so the suffix gives you the rest of the information."}}
{"actor":{"display_login":"pedrobaeza"}}