{"action":"closed","number":15,"pull_request":{"url":"https://api.github.com/repos/OCA/connector-cmis/pulls/15","id":72510324,"html_url":"https://github.com/OCA/connector-cmis/pull/15","diff_url":"https://github.com/OCA/connector-cmis/pull/15.diff","patch_url":"https://github.com/OCA/connector-cmis/pull/15.patch","issue_url":"https://api.github.com/repos/OCA/connector-cmis/issues/15","number":15,"state":"closed","locked":false,"title":"[9.0] connector cmis enhancement","user":{"login":"lmignon","id":544090,"avatar_url":"https://avatars.githubusercontent.com/u/544090?v=3","gravatar_id":"","url":"https://api.github.com/users/lmignon","html_url":"https://github.com/lmignon","followers_url":"https://api.github.com/users/lmignon/followers","following_url":"https://api.github.com/users/lmignon/following{/other_user}","gists_url":"https://api.github.com/users/lmignon/gists{/gist_id}","starred_url":"https://api.github.com/users/lmignon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmignon/subscriptions","organizations_url":"https://api.github.com/users/lmignon/orgs","repos_url":"https://api.github.com/users/lmignon/repos","events_url":"https://api.github.com/users/lmignon/events{/privacy}","received_events_url":"https://api.github.com/users/lmignon/received_events","type":"User","site_admin":false},"body":"This PR is based on #9 \r\n\r\n### The rationale\r\n\r\nThese changes aims to provide the basis to develop new Odoo models linked to a specific content into a CMIS container.\r\nFor example, it's a common need to manage in a unified way a claim and all the documents related to the claim. By default, odoo let's you attach document to a claim but doesn't provide all the functionalities required to efficiently manage these documents (versioning, metadata, content indexation, typing, rendering, editorial process management, ...). All these requirements are already provided by some externals tools as Alfresco, Nuxeo, ...\r\n\r\n### The results\r\n\r\nThanks to the functionalities provided by this PR, you can extend the `crm.claim` model to link one claim to a folder in a cmis container as simple as writing\r\n\r\n```python\r\nfrom openerp import models\r\n\r\n\r\nclass CrmClaim(models.Model):\r\n    _name = 'crm.claim'\r\n    _inherit = ['crm.claim', 'cmis.folder']\r\n\r\n```\r\n\r\nA new widget will allow you to display the content of a cmis:folder linked to a claim. To use this new widget you should override the intial form as follow.\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<odoo>\r\n    <data>\r\n\r\n        <record id=\"crm_case_claims_form_view\" model=\"ir.ui.view\">\r\n            <field name=\"name\">CRM - Claims Form (cmis_crm_claim)</field>\r\n            <field name=\"model\">crm.claim</field>\r\n            <field name=\"inherit_id\" ref=\"crm_claim.crm_case_claims_form_view\"/>\r\n            <field name=\"arch\" type=\"xml\">\r\n                <notebook position=\"inside\">\r\n                    <page string=\"Documents\" groups=\"base.group_user\">\r\n                        <field name=\"cmis_objectid\" readonly=\"1\" widget=\"cmis_viewer\"/>\r\n                        <field name=\"cmis_backend_id\" readonly=\"1\" invisible=\"1\"/>\r\n                    </page>\r\n                </notebook>\r\n            </field>\r\n        </record>   \r\n    </data>\r\n\r\n</odoo>\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/544090/15782363/3e9ba272-29aa-11e6-9897-47be8282a79c.png)\r\n\r\nAnd you are now able to see all the documents related to the claim on the claim itself, and do all your work into odoo even if your documents are stored into a cmis container\r\n\r\nhttps://www.youtube.com/watch?v=TK49kl0Viyk\r\n\r\nAs already announced, the widget will be published on OCA and is compatible Odoo community/entreprise.","created_at":"2016-06-03T13:52:47Z","updated_at":"2016-09-09T14:50:40Z","closed_at":"2016-09-09T14:50:40Z","merged_at":null,"merge_commit_sha":"1771d22a90b54cea01b9a17fe5d97ad15ad43d09","assignee":{"login":"lmignon","id":544090,"avatar_url":"https://avatars.githubusercontent.com/u/544090?v=3","gravatar_id":"","url":"https://api.github.com/users/lmignon","html_url":"https://github.com/lmignon","followers_url":"https://api.github.com/users/lmignon/followers","following_url":"https://api.github.com/users/lmignon/following{/other_user}","gists_url":"https://api.github.com/users/lmignon/gists{/gist_id}","starred_url":"https://api.github.com/users/lmignon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmignon/subscriptions","organizations_url":"https://api.github.com/users/lmignon/orgs","repos_url":"https://api.github.com/users/lmignon/repos","events_url":"https://api.github.com/users/lmignon/events{/privacy}","received_events_url":"https://api.github.com/users/lmignon/received_events","type":"User","site_admin":false},"assignees":[{"login":"lmignon","id":544090,"avatar_url":"https://avatars.githubusercontent.com/u/544090?v=3","gravatar_id":"","url":"https://api.github.com/users/lmignon","html_url":"https://github.com/lmignon","followers_url":"https://api.github.com/users/lmignon/followers","following_url":"https://api.github.com/users/lmignon/following{/other_user}","gists_url":"https://api.github.com/users/lmignon/gists{/gist_id}","starred_url":"https://api.github.com/users/lmignon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmignon/subscriptions","organizations_url":"https://api.github.com/users/lmignon/orgs","repos_url":"https://api.github.com/users/lmignon/repos","events_url":"https://api.github.com/users/lmignon/events{/privacy}","received_events_url":"https://api.github.com/users/lmignon/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/OCA/connector-cmis/milestones/3","html_url":"https://github.com/OCA/connector-cmis/milestones/9.0","labels_url":"https://api.github.com/repos/OCA/connector-cmis/milestones/3/labels","id":1538798,"number":3,"title":"9.0","description":"","creator":{"login":"max3903","id":939952,"avatar_url":"https://avatars.githubusercontent.com/u/939952?v=3","gravatar_id":"","url":"https://api.github.com/users/max3903","html_url":"https://github.com/max3903","followers_url":"https://api.github.com/users/max3903/followers","following_url":"https://api.github.com/users/max3903/following{/other_user}","gists_url":"https://api.github.com/users/max3903/gists{/gist_id}","starred_url":"https://api.github.com/users/max3903/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max3903/subscriptions","organizations_url":"https://api.github.com/users/max3903/orgs","repos_url":"https://api.github.com/users/max3903/repos","events_url":"https://api.github.com/users/max3903/events{/privacy}","received_events_url":"https://api.github.com/users/max3903/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":3,"state":"open","created_at":"2016-01-23T19:26:11Z","updated_at":"2016-09-09T14:50:40Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OCA/connector-cmis/pulls/15/commits","review_comments_url":"https://api.github.com/repos/OCA/connector-cmis/pulls/15/comments","review_comment_url":"https://api.github.com/repos/OCA/connector-cmis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/connector-cmis/issues/15/comments","statuses_url":"https://api.github.com/repos/OCA/connector-cmis/statuses/b49a62609fe789d2dd1fb22614032049c28417ba","head":{"label":"acsone:9.0-cmis-enhanced","ref":"9.0-cmis-enhanced","sha":"b49a62609fe789d2dd1fb22614032049c28417ba","user":{"login":"acsone","id":7601056,"avatar_url":"https://avatars.githubusercontent.com/u/7601056?v=3","gravatar_id":"","url":"https://api.github.com/users/acsone","html_url":"https://github.com/acsone","followers_url":"https://api.github.com/users/acsone/followers","following_url":"https://api.github.com/users/acsone/following{/other_user}","gists_url":"https://api.github.com/users/acsone/gists{/gist_id}","starred_url":"https://api.github.com/users/acsone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acsone/subscriptions","organizations_url":"https://api.github.com/users/acsone/orgs","repos_url":"https://api.github.com/users/acsone/repos","events_url":"https://api.github.com/users/acsone/events{/privacy}","received_events_url":"https://api.github.com/users/acsone/received_events","type":"Organization","site_admin":false},"repo":{"id":35667918,"name":"connector-cmis","full_name":"acsone/connector-cmis","owner":{"login":"acsone","id":7601056,"avatar_url":"https://avatars.githubusercontent.com/u/7601056?v=3","gravatar_id":"","url":"https://api.github.com/users/acsone","html_url":"https://github.com/acsone","followers_url":"https://api.github.com/users/acsone/followers","following_url":"https://api.github.com/users/acsone/following{/other_user}","gists_url":"https://api.github.com/users/acsone/gists{/gist_id}","starred_url":"https://api.github.com/users/acsone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acsone/subscriptions","organizations_url":"https://api.github.com/users/acsone/orgs","repos_url":"https://api.github.com/users/acsone/repos","events_url":"https://api.github.com/users/acsone/events{/privacy}","received_events_url":"https://api.github.com/users/acsone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acsone/connector-cmis","description":"","fork":true,"url":"https://api.github.com/repos/acsone/connector-cmis","forks_url":"https://api.github.com/repos/acsone/connector-cmis/forks","keys_url":"https://api.github.com/repos/acsone/connector-cmis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acsone/connector-cmis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acsone/connector-cmis/teams","hooks_url":"https://api.github.com/repos/acsone/connector-cmis/hooks","issue_events_url":"https://api.github.com/repos/acsone/connector-cmis/issues/events{/number}","events_url":"https://api.github.com/repos/acsone/connector-cmis/events","assignees_url":"https://api.github.com/repos/acsone/connector-cmis/assignees{/user}","branches_url":"https://api.github.com/repos/acsone/connector-cmis/branches{/branch}","tags_url":"https://api.github.com/repos/acsone/connector-cmis/tags","blobs_url":"https://api.github.com/repos/acsone/connector-cmis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acsone/connector-cmis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acsone/connector-cmis/git/refs{/sha}","trees_url":"https://api.github.com/repos/acsone/connector-cmis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acsone/connector-cmis/statuses/{sha}","languages_url":"https://api.github.com/repos/acsone/connector-cmis/languages","stargazers_url":"https://api.github.com/repos/acsone/connector-cmis/stargazers","contributors_url":"https://api.github.com/repos/acsone/connector-cmis/contributors","subscribers_url":"https://api.github.com/repos/acsone/connector-cmis/subscribers","subscription_url":"https://api.github.com/repos/acsone/connector-cmis/subscription","commits_url":"https://api.github.com/repos/acsone/connector-cmis/commits{/sha}","git_commits_url":"https://api.github.com/repos/acsone/connector-cmis/git/commits{/sha}","comments_url":"https://api.github.com/repos/acsone/connector-cmis/comments{/number}","issue_comment_url":"https://api.github.com/repos/acsone/connector-cmis/issues/comments{/number}","contents_url":"https://api.github.com/repos/acsone/connector-cmis/contents/{+path}","compare_url":"https://api.github.com/repos/acsone/connector-cmis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acsone/connector-cmis/merges","archive_url":"https://api.github.com/repos/acsone/connector-cmis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acsone/connector-cmis/downloads","issues_url":"https://api.github.com/repos/acsone/connector-cmis/issues{/number}","pulls_url":"https://api.github.com/repos/acsone/connector-cmis/pulls{/number}","milestones_url":"https://api.github.com/repos/acsone/connector-cmis/milestones{/number}","notifications_url":"https://api.github.com/repos/acsone/connector-cmis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acsone/connector-cmis/labels{/name}","releases_url":"https://api.github.com/repos/acsone/connector-cmis/releases{/id}","deployments_url":"https://api.github.com/repos/acsone/connector-cmis/deployments","created_at":"2015-05-15T10:20:06Z","updated_at":"2015-05-15T10:20:06Z","pushed_at":"2016-09-09T14:47:30Z","git_url":"git://github.com/acsone/connector-cmis.git","ssh_url":"git@github.com:acsone/connector-cmis.git","clone_url":"https://github.com/acsone/connector-cmis.git","svn_url":"https://github.com/acsone/connector-cmis","homepage":null,"size":302,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"7.0"}},"base":{"label":"OCA:9.0","ref":"9.0","sha":"4a2a842152cd11e3f4ff6ea469db58003611ada5","user":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"repo":{"id":20923822,"name":"connector-cmis","full_name":"OCA/connector-cmis","owner":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OCA/connector-cmis","description":"CMIS Connector","fork":false,"url":"https://api.github.com/repos/OCA/connector-cmis","forks_url":"https://api.github.com/repos/OCA/connector-cmis/forks","keys_url":"https://api.github.com/repos/OCA/connector-cmis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/connector-cmis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/connector-cmis/teams","hooks_url":"https://api.github.com/repos/OCA/connector-cmis/hooks","issue_events_url":"https://api.github.com/repos/OCA/connector-cmis/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/connector-cmis/events","assignees_url":"https://api.github.com/repos/OCA/connector-cmis/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/connector-cmis/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/connector-cmis/tags","blobs_url":"https://api.github.com/repos/OCA/connector-cmis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/connector-cmis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/connector-cmis/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/connector-cmis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/connector-cmis/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/connector-cmis/languages","stargazers_url":"https://api.github.com/repos/OCA/connector-cmis/stargazers","contributors_url":"https://api.github.com/repos/OCA/connector-cmis/contributors","subscribers_url":"https://api.github.com/repos/OCA/connector-cmis/subscribers","subscription_url":"https://api.github.com/repos/OCA/connector-cmis/subscription","commits_url":"https://api.github.com/repos/OCA/connector-cmis/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/connector-cmis/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/connector-cmis/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/connector-cmis/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/connector-cmis/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/connector-cmis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/connector-cmis/merges","archive_url":"https://api.github.com/repos/OCA/connector-cmis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/connector-cmis/downloads","issues_url":"https://api.github.com/repos/OCA/connector-cmis/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/connector-cmis/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/connector-cmis/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/connector-cmis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/connector-cmis/labels{/name}","releases_url":"https://api.github.com/repos/OCA/connector-cmis/releases{/id}","deployments_url":"https://api.github.com/repos/OCA/connector-cmis/deployments","created_at":"2014-06-17T13:13:09Z","updated_at":"2016-04-25T17:32:04Z","pushed_at":"2016-09-09T14:49:56Z","git_url":"git://github.com/OCA/connector-cmis.git","ssh_url":"git@github.com:OCA/connector-cmis.git","clone_url":"https://github.com/OCA/connector-cmis.git","svn_url":"https://github.com/OCA/connector-cmis","homepage":"https://odoo-community.org/project/document-maintainers-22","size":244,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":5,"forks":18,"open_issues":5,"watchers":7,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/connector-cmis/pulls/15"},"html":{"href":"https://github.com/OCA/connector-cmis/pull/15"},"issue":{"href":"https://api.github.com/repos/OCA/connector-cmis/issues/15"},"comments":{"href":"https://api.github.com/repos/OCA/connector-cmis/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/connector-cmis/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/connector-cmis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/connector-cmis/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/connector-cmis/statuses/b49a62609fe789d2dd1fb22614032049c28417ba"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":6,"review_comments":0,"commits":46,"additions":902,"deletions":1397,"changed_files":57}}
{"actor":{"display_login":"lmignon"}}