Git Product home page Git Product logo

odoostep's Introduction

odooStep - An add-on to connect Process Maker with Odoo

This software is a final career project that intends to integrate a BPM tool (Process Maker) with the role of orchestration and a ERP software (Odoo) with the role of operations management. Both open source.

This software was developed to support Odoo 9 and Process Maker 3.1 as a Process Maker plugin.

You can see it in action on YouTube here and here.

Installation and configuration

You can download the plugin here.

And you can install in your ProcessMaker following this guidelines: http://wiki.processmaker.com/3.0/Plugins

Once installed, it must be configured in the "Odoo Config" menu with the data of the Odoo installation.

Configuration screen

Creating a step to connect with Odoo at a glance

By clicking on "Odoo Steps Creator" we access the management interface. Here we can see, create and edit the steps of Odoo.

Odoo Steps Creator

If we click on "New" we will see the creation form.

Creation form

The necessary fields are the following:

  • Method: Of the XML-RPC Odoo API. You can consult here.

  • Model: Model of Odoo, These models can be consulted in the Odoo itself, activating the developer mode and navigating in the side menu to "Database structure" โ†’ "Models" from the main "Settings" menu.

  • Parameters: Paramtros of the method. You can consult here. The format is like this:

    value, value, value ...

    value, value ...

    ...

  • Parameters KW: Parameters key-value of the method. You can consult here. The format is like this:

    key: value, value ...

    key: value ...

    ...

  • Output: A ProcessMaker variable previously created to save the return.

You can reference ProcessMaker variables in key-value parameters and parameters using the prefix "@@"

Parameters example

Once the step is created, it can be assigned to a task like any other step.

Extending the plugin

The plugin does not have all the combinations of variable types of input and output encoded for the different methods. For the cases not contemplated (which are many), the plugin can be easily extended both pre and postprocessors.

These functions must be created in the "SosApp.class.php" file within the "SosApp" class. The plugin detects the signature of these functions (such as Drupal hooks) and executes them when appropriate.

The format of the preprocessors is:

public function preprocess_method($ p, $ kwp)

And of the postprocessors:

public function postprocess_method_type($ output)

The words "method" and "type" must be replaced by the method and type of variable. There are several of these functions already written in the class that can serve as an example.

License

GNU Affero General Public License v3.0

You can check it here.

Please consider contributing to the code if it was helpful in your purpose.

odoostep's People

Contributors

ecdani avatar nicobustillos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

odoostep's Issues

Import the plugin: the file odooStep.tar doesn't contain class: odooStep

Dear,

I am new to Process Maker. I tried to install this plugin with Process Maker 3.1 by downloading the source code and create a .tar file --> Then import the tar file via Plugin Manager. However, I got this error

"The file odooStep.tar doesn't contain class: odooStep"

Please advise,
Thank you very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.