GithubHelp home page GithubHelp logo

akretion / aktooor Goto Github PK

View Code? Open in Web Editor NEW
5.0 16.0 5.0 94 KB

forms to edit Odoo entities in your Ruby web app (based on simple_form)

License: MIT License

Ruby 73.34% JavaScript 2.07% CSS 4.60% XSLT 7.52% Shell 1.21% HTML 11.27%

aktooor's Introduction

Build Status Dependency Status

Aktooor: OpenERP forms (via_simple_form) for your Ruby web app

Aktooor makes it straightforward to develop forms for OpenERP. You can achieve the same kinds of forms as in OpenERP itself (same complexity) but with more freedom as Rails allows you. And mostly these are forms that you can embed in your Ruby web project, be it Rails or any other Rack framework (Sinatra etc..)

To do that, Aktooor extends simple_form with form builder methods that properly introspect OpenERP meta-data (via Ooor) to make the right default decisions.

So first it's a good idea to learn simple_form . In a word, simple_form extends Rails form_for builder to support a higher level form modeling abstractions. Also, simple_form integrates automatically with Twitter Bootstrap 3 and other CSS frameworks.

Aktooor works on Ooor objects, so you you should learn Ooor too. Ooor objects are proxies to your OpenERP objects that use the OpenERP JSON API just like you would talk JSON with say MongoDB. But with Ooor you also probably want to leave most of the business logic inside the OpenERP Python runtime and just call it with the JSON API through Ooor. Eventually, you can still implement some business logic in Ruby, that allows you to leave it unaffacted by the OpenER viral AGPL license, just like when you interract with AGPL MongoDB again.

Aktooor can work both on OpenERP mono-connection objects (like the ProductProduct constant) or multi-sessions objects that can map OpenERP credentials to the specific web-app credentials of the user (TODO document that better). It integrates smoothly with the Ooorest actionpack layer to alliviate you from all this session mapping plumping.

So Aktooor extends simple_form further and provides an ooor_form_for helper instead. Inside, fields that map to fields of an OpenERP Ooor::Base proxy object will need to use ooor_input instead of just input.

Aktooor also goes further by automatically generating proper dynamic association widgets using the select2 JQuery plugin.

Aktooor also supports nested forms (like a sale order and its order lines) using the cocoon framework.

You may think that Aktooor can be made to look like the OpenERP web client. There is a wiki page talking about the similarities and differences with the OpenERP web client https://github.com/akretion/aktooor/wiki/similarities-and-difference-between-Aktooor-and-OpenERP-web-client .

This project uses MIT-LICENSE.

aktooor's People

Contributors

rvalyi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aktooor's Issues

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.