Skip to content

Latest commit

 

History

History
 
 

web_diagram_position

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
License: LGPL-v3

Web Diagram Position Saver

This module provides a way to save position of diagram elements

Usage

To use this module functionality you need to decorate node element of the diagram view with the coordinate attributes xpos and ypos like in the example below.

<record id="view_project_workflow_diagram" model="ir.ui.view">
    <field name="name">project.workflow.diagram</field>
    <field name="model">project.workflow</field>
    <field name="arch" type="xml">
        <diagram string="Workflow Editor">
            <node object="project.workflow.state" xpos="xpos" ypos="ypos" shape="rectangle:True"
                  bgcolor="blue:type=='todo';yellow:type=='in_progress';green:type=='done'">
                <field name="name"/>
                <field name="stage_id"/>
                <field name="type" invisible="1"/>
            </node>
            <arrow object="project.workflow.transition" source="src_id" destination="dst_id" label="['name']">
                <field name="src_id"/>
                <field name="dst_id"/>
                <field name="name"/>
            </arrow>
        </diagram>
    </field>
</record>

Credits

Contributors

Maintainer

Modoolar

This module is maintained by Modoolar.

As Odoo Gold partner, our company is specialized in Odoo ERP customization and business solutions development.
Beside that, we build cool apps on top of Odoo platform.

To contribute to this module, please visit https://modoolar.com