StarUML Odoo Addon Generator for Odoo version 10-16

by
Odoo

494.95

v 10.0 v 11.0 v 12.0 Third Party 155
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 75
Technical Name vit_odoogen
LicenseOPL-1
Websitehttp://vitraining.com
Versions 17.0 15.0 16.0 14.0 13.0 11.0 10.0 12.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 75
Technical Name vit_odoogen
LicenseOPL-1
Websitehttp://vitraining.com
Versions 17.0 15.0 16.0 14.0 13.0 11.0 10.0 12.0
image-dashboard

Turn your Ideas into Reality

Meet Odoo Addon Generator. Generates Fully-Installable Odoo Add-on From UML Diagram FAST with NO ERROR! Compatible for Odoo version 10, 11, 12, 13, 14, 15, and 16.

Presented at Odoo Experience, Brussels, 2022

Watch the recording on Odoo Youtube Channel below

Sample Diagrams

Sample Diagram Presented at Odoo Experience 2022

Sample Diagram 1: Academic Information System

Sample Diagram 2: Cow Breeding System

Sample Diagram 3: Many2many Relation

Hot Feature

Save Much Money

Just download this addon. Draw class and it's relational diagrams. Our generator automatically generates Error-Free addon.
Save hundred or thousand of dollars just for prototyping your ideas and proof of concept.
image-ai-explore

Simply Amazing

With this StarUML generator extension, you can create the COMPLETE, RUNNING, ERROR FREE,
and READY to install Odoo addon from UML diagram created on StarUML application.

StarUML is freely-evaluatable modeling software where you can generate Java, PHP,
Python code directly from UML class diagram.

image-ai-insight

Generator Features

With this StarUML extension code generator script, you can directly create Odoo addon from your class diagrams

Char Field
Date and Date Time Field
Integer Field
Float Field
Many2one Relational Field
One2many Relational Field
Many2many Relational Field
Selection Field
XML Tree View
XML Form View
XML Kanban View
XML Calendar View
XML Graph View
XML Pivot View
XML Menu Items and Sub Menus
XML Action Buttons
Python Action Methods
Qweb Reports for each Classes
Addon Manifest File
Model Security Access Control CSV Files
Compute Fields
Related Fields
Binary Fields
Image Fields
XML Domain
XML Widget Attributes
Field Attributes Available in Python Field Specification
Field Attributes Available in XML Field Specification
Compatible Community / Enterprise / Odoo.Sh
Support Odoo Version 10,11,12,13,14,15,16
JSON Format for Defining Manifest
JSON Format for Defining Field Attributes
On Change Method Decorator
XML Inherited View for res.partner
XML Inherited View for res.users
XML Inherited View for res.currency
XML Inherited View for account.account
XML Inherited View for account.journal
XML Sequence Definition
Workflow Buttons for State Field
Application Icon
Application User Groups

Videos

Watch our Youtube videos for demonstration

Basic Introduction

Sample addon generated from UML diagram created with StarUML. Create basic models and relationship and generate and install the add-on.

Inheritance

Create inheritance from existing Odoo models and relationship to the new models and generate and upgrade the add-on.

Binary Field

Create image binary field and automatically show it on kanban template!

Short intro in Indonesian language

Short intro creating a simple addon in Indonesian language.

Installation Steps

  • Download StarUML from staruml.io and install it on your local computer if you have not one yet.
  • Install this addon. Go to Settings - Odoo Generator menu and download the extension script.
  • Extract the extension ZIP file onto the StarUML extensions path:
    • for Mac OS: /Users/<user>/Library/Application Support/StarUML/extensions/user
    • for Windows: C:\Users\<user>\AppData\Roaming\StarUML\extensions\user
    • for Linux: ~/.config/StarUML/extensions/user
  • Make sure that the staruml-odoo-pro folder is in the extensions path and the main.js file is in the folder.
  • Restart StarUML.
  • For detailed installation process of the StarUML extension, please check here: https://docs.staruml.io/user-guide/managing-extensions

Usage

Rules when diagramming the UML for Odoo Add-on on StarUML

Configuration

  • Click Tools > Odoo > Configure to set your addon setting
  • Namespace: is your class namespace
  • Odoo Version: what version of Odoo you want to generate the addon for, example 10, 11, 12, 13, 14, 15, or 16
  • English Language: check for English grammar for One2many and Many2many fields by adding "s" after the field label name
  • Docstring: Yes or No to wether generate to documentation string on your class or not
  • Installation Path: your python installation path (optional)
  • Use Tab: whether you want to use Tab character instead of spaces on your python indentation
  • Indent Spaces: number of indent spaces on your python code.

Odoo Object Name

  • Odoo object name is automatically generated from "namespace" and "className", eg "my_addon.my_object"
  • On class inheritance, you may force you Odoo object name to be different from your UML class name by adding an attributed called _name on the class and set the name on _defaultValue field, eg "res.partner".
  • This _name attribute is mandatory if you inherit your Odoo object from another Object

Inheritance

  • If the object is inherted from other Odoo object, create an attribute called _inherit and _name
  • The parent object name is set on defaultValue field, e.g "res.partner"

Odoo Fields

  • Every attribute on UML class is converted into Odoo object field
  • Set the Odoo field type on type field
  • Example: Char will be converted to fields.Char(), Integer to fields.Integer(), and so on.

Odoo Field Attributes

The Documentation box contains JSON format information for specifying the Python field attributes as well as the XML field attributes.

The JSON format example:

{
    "xml_domain": "[('company_id', '=', company_id )]",
    "help": "Select level",
    "compute":"_compute_method"  
}


JSON key prefixed with "xml_" will be placed on XML files, and other will be placed on Python files.

Relational Field

Create a UML association between two classes and set the multiplicity of each end to generate One2many, Many2one, or Many2many relation on Odoo Object.

It will be converted to field on each object with Odoo relation type: Many2one, One2many, or Many2many.

If multiplicity is one of `0..*`, `1..*`, `*`, then the field will be initialized with:

  • `0..*` or `1..*` : fields.Many2one()
  • `1` : fields.One2many()
  • `*` : fields.Many2many()

Selection Field

Just create an attribute with type Selection and set the selection values on defaultValue field.

Kanban image

The generator generates Kanban template XML already. To display image on the kanban, just create an attribute with type Binary and set the name to image_small, then it will be displayed on the kanban.

Graph View

The generator generates Graph view XML already, as long as you have at least one Many2one field on the model, then it will create the Graph XML view for you.

Calendar View

The generator generates Calendar view XML already, as long as you have at least one Date or Datetime field on the model, then it will create the Calendar XML view for you.

Methods

Just create the operation on the UML class diagram, it will be converted automatically to Odoo class methods where you are ready to define the logic or inherit them.

Action Buttons Methods

Create the operation on the UML class diagram prefixed with "action_", it will be converted automatically to Odoo class methods and the corresponding buttons on the XML file.

Qweb Report

Qweb reports are automatically generated along with all relational fields as well as normal fields! So just inherit or modify them to adjust your requirements!

State Fields and Sequence

When you have "state" field on your model, the generator will create action buttons on the form, put it under "Operation" menu of the application, and generate the sequence for document numbering.

You can easily modify the sequence numbering by editing the generated inherited module.

Addon Manifest

The Documentation box on the Class Diagram can contain JSON format information for specifying Manifest file.

The JSON format example:

{
    "depends":["base", "hr" , "xedu_common"],
    "name":"xEduPSB",
    "summary":"xEdu PSB module",
    "description":"xEdu PSB module module generated by StarUML Generator",
    "version":"2.0",
    "icon":"icon2"
}


All keys defined here will replace the default Manifest data for the addon.

JSON key "icon" is a special key to define the APplication Icon. Available icon code is 1 to 10.
support-free-

Need Help ?

Contact us after purchasing to be included on our Telegram Channel and enjoy lifetime upgrade for further Odoo Versions.

Chat with Us (+62) 821 15416334

Email Us (admin@vitraining.com)

Our Youtube Playlist

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
need more features
by
vitrainingshop@gmail.com
on 10/8/19, 6:13 PM

good works... can you add more features like creating web pages based on the models? like creating web CRUD page ?


by
Nino Rodriguez
on 4/7/20, 4:47 AM

Do you have this for v13?

Re:
by
Akhmad Daniel Sembiring
on 4/7/20, 5:47 AM Author

Yes it works for v13


First in the world !
by
Johann Y
on 10/20/19, 6:14 PM

top


amazing...
by
jeremy
on 10/8/19, 5:27 PM

1 click, complex add-on generated and installed with no error. what i need now is just to inherit and define the code and logics required.


a w e s o m e !
by
jeremy
on 10/8/19, 7:48 AM

you are rocks! this save my days finding errors manually


this helps me a lot!
by
akusara
on 10/8/19, 7:33 AM

bought this a few days ago, now i can create huge module with 30+ object with easy , no errors! great job ..