All Projects → akretion → angular-odoo

akretion / angular-odoo

Licence: other
Call Odoo webservices from AngularJS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to angular-odoo

ypereirareis.github.io
DevOps, Symfony and VueJs developer. Articles and experiences on docker, grafana, prometheus, RabbitMQ, PHP, MySQL, Admin, Nginx, Haproxy, SSH,...
Stars: ✭ 15 (-63.41%)
Mutual labels:  angularjs
Angular4-seed
Angular 4 Seed for Angular Forms
Stars: ✭ 37 (-9.76%)
Mutual labels:  angularjs
oxide
Oxide Odoo Distribution
Stars: ✭ 13 (-68.29%)
Mutual labels:  odoo
generic-addons
Set of generic addons for Odoo
Stars: ✭ 26 (-36.59%)
Mutual labels:  odoo
angularjs-jest-example
✅ AngularJs with Jest example
Stars: ✭ 13 (-68.29%)
Mutual labels:  angularjs
odoo-helper-scripts
The easiest way to install and manage development odoo instances / projects.
Stars: ✭ 34 (-17.07%)
Mutual labels:  odoo
gravitee-management-webui
Gravitee.io - API Management - Management UI
Stars: ✭ 107 (+160.98%)
Mutual labels:  angularjs
odoo-k8s
Odoo on Kubernetes demo application. (with minikube and standalone)
Stars: ✭ 40 (-2.44%)
Mutual labels:  odoo
ADM-treeView
Pure AngularJs TreeView
Stars: ✭ 30 (-26.83%)
Mutual labels:  angularjs
odooku
Run Odoo as a service
Stars: ✭ 52 (+26.83%)
Mutual labels:  odoo
Beetle.js
🪲 Javascript ORM, manage your data easily.
Stars: ✭ 53 (+29.27%)
Mutual labels:  angularjs
angular-heremaps
AngularJS directive for working with Here Maps
Stars: ✭ 19 (-53.66%)
Mutual labels:  angularjs
ledgeraccounting
Simple web-based accounting and budgeting tool built upon the popular accounting software, hledger
Stars: ✭ 28 (-31.71%)
Mutual labels:  angularjs
angular-sticky-navigation-directive
Angular directive to make a sticky element, quick demo here: http://ng-milk.github.io/angular-sticky-navigation-directive/
Stars: ✭ 20 (-51.22%)
Mutual labels:  angularjs
odoo-11.0-windows-installation
Install odoo-11.0 from source on Windows
Stars: ✭ 34 (-17.07%)
Mutual labels:  odoo
router
Keep your Angular2+ router state in Redux
Stars: ✭ 28 (-31.71%)
Mutual labels:  angularjs
chord-transitions
Transitioning Chord Diagram Demo with Angular/D3
Stars: ✭ 38 (-7.32%)
Mutual labels:  angularjs
muk base
MuK Odoo Base Modules
Stars: ✭ 33 (-19.51%)
Mutual labels:  odoo
VscOdooSnippets
Odoo Snippets for Visual Studio Code
Stars: ✭ 29 (-29.27%)
Mutual labels:  odoo
speed-admin
A rapid application development framework for Laravel.
Stars: ✭ 31 (-24.39%)
Mutual labels:  odoo

angular-odoo

Call Odoo webservices from AngularJS

Why

Odoo 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...

This module gives you an abstraction and friendly methods in order to communicate with Odoo.

Requirements

  • OpenERP 7 or Odoo 8
  • Angular > 1.4

Install

Prefered method:

	bower install angular-odoo

Alternative :

Download dist/odoo.js or dist/odoo.min.js

Include

Add the script to your page :

<script src="path/to/angular-odoo/dist/odoo.js"></script>

Add the module odoo to your applicaiton:

	angular.module('yourApplication', ['odoo']);

Use in your services

Add jsonRpc as a dependency.

angular.module('loginCtrl', ['$scope', 'jsonRpc', function($scope, jsonRpc) {
	
	jsonRpc.getDbList().then(function (result) {
		//get databases list
		$scope.dbs = result;
	});

	$scope.login = function(creds) {
		jsonRpc.login(creds.db, creds.username, creds.password).then(function () {
			//login successfull redirect here
		}, function(reason) {
			//display error
		});
	};
}]);

High level functions :

  • login
  • isLoggedIn
  • logout
  • searchRead
  • getSessionInfo
  • getServerInfo
  • getDbList
  • syncDataImport
  • syncImportObject
  • call

Please read src/components/odoo/jsonRPC-service.js for code and detailled documentation.

At Akretion, we write Angular / Ionic applications and use this lib in all our devs when Odoo is the backend.

Tests

There is some tests in jsonRpc.spec.js

Contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].