$ 518.54
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 92 |
Technical Name |
vit_odoogen |
License | OPL-1 |
Website | https://vitraining.com |
Versions | 10.0 11.0 12.0 13.0 14.0 15.0 16.0 17.0 |

Turn your Ideas into Reality
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
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.

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.

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










































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.


Need Help ?
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