Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netesy/clarity
A Odoo JSON-RPC Connector library for Flutter in a Clarified manner
https://github.com/netesy/clarity
Last synced: about 2 months ago
JSON representation
A Odoo JSON-RPC Connector library for Flutter in a Clarified manner
- Host: GitHub
- URL: https://github.com/netesy/clarity
- Owner: netesy
- License: other
- Created: 2022-08-23T12:39:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-24T06:53:37.000Z (over 2 years ago)
- Last Synced: 2023-08-09T13:44:25.751Z (over 1 year ago)
- Language: Dart
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Clarity
A Odoo JSON_RPC connector with clarity of intentions.
This package contains set of method to call Odoo API with JSON-RPC using a Laravel Elequent Fluent Interface. You can call any odoo methods,
controllers some of the information as below.1. Version Information
2. Session information
3. Authenticate user
4. Database listing
5. Create/Update/Unlink records
6. Read records with fields for given ids of model
7. Search and read based on domain filters.
8. CallKW method for calling any model level methods with arguments.
9. Calling json controller with params.## CODE
```dart
clarity = Clarity('address', 'username', 'password', 'table_name');
```### List Modules
```dart
clarity.listModules().list();
```### List Databases
```dart
clarity.listDatabases().list();
```### Select Table
```dart
clarity.from('model_name').search('id').offset(0).limit(100).get();
```### Select Fields
```dart
clarity.select(['name', 'country_id', 'comment']).from('res.partner').get();
```### Read
```dart
clarity.from('model_name').read('id').offset(0).limit(100).get();
```### Offset
```dart
clarity.from('model_name').search('id').offset(0).limit(100).get();
```### Limit
```dart
clarity.from('model_name').read('id').offset(0).limit(100).get();
```### Search
```dart
clarity.from('model_name').search([]).get();
```### Count
```dart
clarity.from('model_name').count([]).get();
```### Delete
```dart
clarity.from('model_name').delete('id').get();
```### Create
```dart
clarity.from('model_name').create([]).get();
```### Update
```dart
clarity.from('model_name').insert([]).get();
```## Todo
```
clarity.where('conditions').get();
clarity.save('');
clarity.update();
```Documentation:
Please write me your feedback/issue on [email protected]