Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 2682 |
Technical Name |
draw_shape_v3 |
License | OPL-1 |
Versions | 17.0 18.0 |
Odoo Draw Shape
Interactive Shape Drawing and Region Management for Odoo
A powerful interactive drawing tool that allows you to create, edit and manage geometric shapes and regions on a grid canvas with advanced drawing capabilities and hierarchical region management.
Key Features
Drawing Tools & Features
Hand Tool
Pan and navigate canvas
Draw Polygons
Create custom shapes
Edit Shapes
Modify existing regions
Styling
Colors, borders & effects
How It Works
1. Access Canvas Overview
Open the Draw Shape app to access the overview interface mode view/

2. Access Drawing Canvas
Open the Draw Shape application to access the interactive drawing canvas with grid system.

3. Select Drawing Tools
Choose from various tools: Hand tool for navigation, Polygon tool for drawing shapes.

4. Create Regions
Draw polygons by clicking on points on the canvas to define the boundaries of the area. After drawing the desired shape, click enter to display the record creation popup.



5. Customize Appearance
Customize shape colors, border styles, and other visual attributes. Switch to the hand tool and select the shape you want to adjust. Once you adjust the shape's attributes, the data is automatically updated in the shape's database.


6. Manage Region Hierarchy
Create parent-child relationships between regions to manage areas in an organized manner. In "view mode" click on any shape to draw a child shape for the selected shape.




7. Navigation & Zoom
Use the zoom controls and hand tools to navigate large drawings efficiently. Additionally, inserting shapes between two shapes can be handled with the layer row.



8. Write & Delete Regions
Double click on a shape to display a popup to edit the shape's information. To delete a shape, in "hand" mode, select a shape and use the delete button to delete the shape.


9. Export PDF & Print Map
Use 2 buttons Export PDF and Print to print map directly


Technical Implementation
Built with modern Odoo OWL framework for optimal performance
Interactive canvas with HTML5 drawing capabilities
Grid-based coordinate system for precise shape positioning
Hierarchical region management with parent-child relationships
JSON coordinate storage for efficient shape data management
Usage Instructions
To access the Draw Shape application:
- Navigate to the Draw Shape menu in your Odoo application
- Click on "Draw Shape" to open the interactive drawing canvas
- Use the toolbar to select drawing tools and customize properties
- Click on the canvas to create polygon points and define regions
- Save your regions to the database for future reference
The application provides:
- Interactive drawing canvas with grid system
- Shape creation and editing tools
- Region hierarchy management
- Customizable styling options
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