angular-odoo
angular-odoo copied to clipboard
support multiple servers apps
Hi
I think that it would be nice to have multiple servers supports. If a user wants to develop a company that interacts with several odoo accounts it need to be easy to switch between servers inside the same app.
The code i was trying into my company app and it works is a change in jsonRpc-service.js at line 16
to add the function to change servers urls.
this.$get = function($http, $q, $timeout) {
var odooRpc = this.odooRpc;
---------------------------------New Code---------------------------------
/**
* Change the server url to support multiple servers handling
* @param url
*/
odooRpc.setServer = function(url){
odooRpc.odoo_server = url;
};
---------------------------------New Code---------------------------------
I try to clone and make a pull request but it fails me due to 403 permission error.
Hope you can add it and update the module.
Regards