diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-08-06 16:19:38 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-08-06 16:19:38 +0200 |
| commit | 2662110aaa6f856a147c048833e44a5bda746244 (patch) | |
| tree | 38adbb8f601a2bf21227c9acde83edf0981b8b55 /addons/web_linkedin/static/src/js/linkedin.js | |
| parent | 00cbc1d84f59d9ea3203df29177c1f95d850c827 (diff) | |
Began profile url
bzr revid: nicolas.vanhoren@openerp.com-20120806141938-lbbv9e0eqfvlijvz
Diffstat (limited to 'addons/web_linkedin/static/src/js/linkedin.js')
| -rw-r--r-- | addons/web_linkedin/static/src/js/linkedin.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/addons/web_linkedin/static/src/js/linkedin.js b/addons/web_linkedin/static/src/js/linkedin.js index 9ddbff78fa6..77296943177 100644 --- a/addons/web_linkedin/static/src/js/linkedin.js +++ b/addons/web_linkedin/static/src/js/linkedin.js @@ -93,7 +93,10 @@ openerp.web_linkedin = function(instance) { to_change.photo = data; })); } - } else { //people + /* + to_change.linkedinUrl = _.str.sprintf("http://www.linkedin.com/company/%d", entity.id); + */ + } else { // people to_change.name = _.str.sprintf("%s %s", entity.firstName, entity.lastName); if (entity.pictureUrl) { defs.push(self.rpc('/web_linkedin/binary/url2binary', @@ -101,6 +104,9 @@ openerp.web_linkedin = function(instance) { to_change.photo = data; })); } + /* + to_change.linkedinUrl = entity.publicProfileUrl; + */ } $.when.apply($, defs).then(function() { self.view.on_processed_onchange({value:to_change}); @@ -132,7 +138,7 @@ openerp.web_linkedin = function(instance) { IN.API.Raw(_.str.sprintf("company-search:(companies:(id,name,logo-url))?keywords=%s&count=%d", encodeURI(this.text), this.limit)).result(function (result) { cdef.resolve(result); }); - IN.API.PeopleSearch().fields(["id", "first-name", "last-name","picture-url"]). + IN.API.PeopleSearch().fields(["id", "first-name", "last-name", "picture-url", "public-profile-url"]). params({"keywords": this.text, "count": this.limit}).result(function(result) { pdef.resolve(result); }); |
