{"id":22308053,"url":"https://github.com/akretion/angular-odoo","last_synced_at":"2025-07-29T05:32:24.615Z","repository":{"id":27930664,"uuid":"31423042","full_name":"akretion/angular-odoo","owner":"akretion","description":"Call Odoo webservices from AngularJS","archived":false,"fork":false,"pushed_at":"2017-12-19T11:09:44.000Z","size":249,"stargazers_count":41,"open_issues_count":5,"forks_count":30,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-05-17T09:31:25.594Z","etag":null,"topics":["angularjs","odoo"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akretion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-27T14:32:14.000Z","updated_at":"2021-10-18T04:32:02.000Z","dependencies_parsed_at":"2022-08-20T06:40:24.200Z","dependency_job_id":null,"html_url":"https://github.com/akretion/angular-odoo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akretion/angular-odoo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akretion%2Fangular-odoo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akretion%2Fangular-odoo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akretion%2Fangular-odoo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akretion%2Fangular-odoo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akretion","download_url":"https://codeload.github.com/akretion/angular-odoo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akretion%2Fangular-odoo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267633670,"owners_count":24118777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angularjs","odoo"],"created_at":"2024-12-03T20:13:00.113Z","updated_at":"2025-07-29T05:32:24.253Z","avatar_url":"https://github.com/akretion.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### angular-odoo\n\nCall Odoo webservices from AngularJS\n\n\nWhy\n===\n\nOdoo is not HTTP friendly : every request shoud be POST, session_id should be added in the body, there some other stuff which should be added in each request...\n\nThis module gives you an abstraction and friendly methods in order to communicate with Odoo.\n\n\nRequirements\n===\n\n* OpenERP 7 or Odoo 8\n* Angular \u003e 1.4\n\n\nInstall\n===\n\nPrefered method: \n\n\t\tbower install angular-odoo\n\nAlternative :\n\nDownload dist/odoo.js or dist/odoo.min.js\n\nInclude\n===\n\nAdd the script to your page : \n\n```html\n\u003cscript src=\"path/to/angular-odoo/dist/odoo.js\"\u003e\u003c/script\u003e\n```\n\nAdd the module __odoo__ to your applicaiton:\n```js\n\tangular.module('yourApplication', ['odoo']);\n```\n\nUse in your services\n===\n\nAdd __jsonRpc__ as a dependency.\n\n```js\nangular.module('loginCtrl', ['$scope', 'jsonRpc', function($scope, jsonRpc) {\n\t\n\tjsonRpc.getDbList().then(function (result) {\n\t\t//get databases list\n\t\t$scope.dbs = result;\n\t});\n\n\t$scope.login = function(creds) {\n\t\tjsonRpc.login(creds.db, creds.username, creds.password).then(function () {\n\t\t\t//login successfull redirect here\n\t\t}, function(reason) {\n\t\t\t//display error\n\t\t});\n\t};\n}]);\n\n```\n\n\nHigh level functions : \n\n* login\n* isLoggedIn\n* logout\n* searchRead\n* getSessionInfo\n* getServerInfo\n* getDbList\n* syncDataImport\n* syncImportObject\n* call\n\n\nPlease read src/components/odoo/jsonRPC-service.js for code and detailled documentation.\n\n\nAt [Akretion](http://akretion.com), we write Angular / Ionic applications and use this lib in all our devs when Odoo is the backend.\n\n\nTests\n===\n\nThere is some tests in jsonRpc.spec.js\n\n\nContributors\n===\n\n* [Hparfr](https://github.com/hparfr)\n* [Sebastienbeau](https://github.com/sebastienbeau)\n* [Guewen](https://github.com/guewen)\n* [FranzPoize](https://github.com/FranzPoize) ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakretion%2Fangular-odoo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakretion%2Fangular-odoo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakretion%2Fangular-odoo/lists"}