项目作者: panlatent

项目描述 :
Yii2 Odoo Extension
高级语言: PHP
项目地址: git://github.com/panlatent/yii2-odoo.git
创建时间: 2018-12-01T12:20:26Z
项目社区:https://github.com/panlatent/yii2-odoo

开源协议:MIT License

下载






Odoo JSON-RPC Client, Query and ActiveRecord for Yii2



This extension provides the Odoo integration for the Yii framework 2.0.
It includes Web Service API support and also implements
the Query and ActiveRecord pattern.

Documentation is at Read The Docs.

Build Status
Coverage Status
Latest Stable Version
Total Downloads
Latest Unstable Version
License

Requirements

  • PHP 7.0 or higher

Installation

The preferred way to install this extension is through composer.

Either run

  1. php composer.phar require --prefer-dist panlatent/yii2-odoo "*"

or add

  1. "panlatent/yii2-odoo": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

Add the component to your application.

  1. 'components' => [
  2. 'odoo' => [
  3. 'class' => 'panlatent\odoo\Connection',
  4. 'dsn' => 'localhost:8000/jsonrpc',
  5. 'database' => '',
  6. 'username' => '',
  7. 'password' => '',
  8. ]
  9. ]

The extension support Yii2 Debug extension:

Add the panel component to your application.

  1. 'modules' => [
  2. 'debug' => [
  3. 'panels' => [
  4. 'odoo' => [
  5. 'class' => panlatent\odoo\debug\OdooPanel::class,
  6. ]
  7. ]
  8. ]
  9. ]

The extension support Yii2 Gii extension:

Add the panel component to your application.

  1. 'modules' => [
  2. 'gii' => [
  3. 'generators' => [
  4. \panlatent\odoo\gii\generators\model\Generator::class,
  5. ]
  6. ]
  7. ]

License

The Yii2 Odoo is open-sourced software licensed under the MIT license.