diff --git a/addons/web_linkedin/static/src/js/linkedin.js b/addons/web_linkedin/static/src/js/linkedin.js index a04f0c69737..3e5f9a95c13 100644 --- a/addons/web_linkedin/static/src/js/linkedin.js +++ b/addons/web_linkedin/static/src/js/linkedin.js @@ -152,23 +152,24 @@ openerp.web_linkedin = function(instance) { APIKeyWarning: function(e) { var self = this; this.dialog = instance.web.dialog($(QWeb.render("Register.Linkedin")), { - title: _t("Configure your Linkedin Key API"), + title: _t("Connect to LinkedIn"), modal: true, width : 840, height:500, - close: function(){ self.dialog.remove();} + close: function(){ self.dialog.remove();}, + buttons:[ + { + text: _t("Cancel"), + click: function() { self.dialog.remove(); } + }] }); - this.dialog.parent().find('.ui-dialog-titlebar').append('').click(function(){ - self.dialog.remove(); - }) - $('.close').css({ 'margin': '10px 0 0 19px'}) $("#register").click(function() { var key = $("#apikey").val(); if(key.length){ var user = new instance.web.DataSet(self, "res.users"); user.call("set_linkedin_api_key", [key]); self.dialog.remove(), - self.__parentedParent.reload(); + //self.__parentedParent.reload(); } else { $("#apikey").css({'background-color':'#F66 '}) diff --git a/addons/web_linkedin/static/src/xml/linkedin.xml b/addons/web_linkedin/static/src/xml/linkedin.xml index 7f008aa2e13..6b0795049be 100644 --- a/addons/web_linkedin/static/src/xml/linkedin.xml +++ b/addons/web_linkedin/static/src/xml/linkedin.xml @@ -34,27 +34,25 @@
-
-

1) Go to : - - https://www.linkedin.com/secure/developer - -

-

2) Log you in Linkedin if you did not yet

-

3) Add a New Application

-

4) Fill in the Form

-
-
- -
-
-

5) Copy the API Key: - -

-
-
- -
+

Connect OpneERP to LinkedIn to allow synchronizing companies and people with LinkedIn contacts in order to
+ get their data automatically (photos, address, news). You just need to setup the API key once, and it will work
+ for all users of your system. +

+
+
+

1) Go to : + + https://www.linkedin.com/secure/developer + +

+

2) Log into LinkedIn if not already done

+

3) Click on "Add a new application"

+

4) Fill in the "Application Info" form with the following data:

+

- Integration URL: "https://yourcompany.my.openerp.com"

+

- Javascript API domain: "yourcompany.my.openerp.com"

+

5) Copy the API key here: + +