Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Product Lifecycle Management (PLM)
  3. Product Lifecycle Management Batch conversion v 19.0
  4. Sales Conditions FAQ

Product Lifecycle Management Batch conversion

by OmniaSolutions https://odooplm.omniasolutions.website
Odoo
v 19.0 Third Party 932
Download for v 19.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Manufacturing (mrp)
• Discuss (mail)
• Inventory (stock)
Community Apps Dependencies Show
Product Lifecycle Management
Lines of code 27730
Technical Name plm_automated_convertion
LicenseAGPL-3
Websitehttps://odooplm.omniasolutions.website
Versions 9.0 10.0 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0
You bought this module and need support? Click here!

PLM Automated Conversion

Background conversion engine for CAD files inside Odoo PLM. Converts source documents to derivative formats (preview images, 3D web models) automatically via a job queue, and on-demand when opening the 3D viewer.

Supported Conversions

SourceTargetMethod
.stp / .step.3mfCadQuery + OpenCASCADE — preserves original component names from STEP instance labels
.stp / .step.gltf / .glbCadQuery + OpenCASCADE — preserves original component names
.stp / .step.stlCadQuery exporters
.stp / .step.pngnumpy-stl + matplotlib
.stl.3mfto-3mf library
.stl.pngnumpy-stl + matplotlib
.dxf.png / .pdf / .svgezdxf + matplotlib
.obj.pngInternal OBJ renderer

STEP Name Preservation

Standard CadQuery STEP import uses the definition label (shared part name) for all instances, causing duplicate-name errors in assemblies where the same part appears more than once. This module includes a custom importer that reads the instance label (comp_label) from the XCAF document for each placement, falling back to the definition name only when the instance has none.

# Simplified logic inside _import_step_preserve_names()
inst_name = _get_name(comp_label) or _get_name(ref_label) or f"part_{i}"
# Guarantee uniqueness within this parent level
if inst_name in name_counter:
    name_counter[inst_name] += 1
    inst_name = f"{inst_name}_{name_counter[inst_name]}"

This ensures the component tree in glTF/3MF output matches the original CAD assembly structure.

3MF Export

The built-in CadQuery 3MF exporter does not preserve assembly hierarchy or component names. This module provides a custom exporter (_export_assembly_to_3mf) that:

  • Traverses the full assembly tree recursively
  • Tessellates each leaf shape with its accumulated world transform applied
  • Writes a valid 3MF ZIP with one named <object> per component
  • Registers the 3MF namespace as the default XML namespace so querySelectorAll('object') in Three.js finds elements correctly (avoids ns0: prefix issue from Python's ElementTree)

Preview Image Copying

When a conversion job completes, the preview image (ir.attachment.preview) from the source document is copied to the converted document. This allows the converted 3MF or glTF to display the same thumbnail as the original STEP file.

Job Queue (plm.convert.stack)

Conversions are queued as plm.convert.stack records and processed by a scheduled action. This prevents long-running CAD conversions from blocking the Odoo web request.

FieldDescription
start_document_idSource ir.attachment
end_document_idResulting ir.attachment after conversion
start_formatSource extension (e.g. .stp)
end_formatTarget extension (e.g. .3mf)
conversion_doneSet to True once the job completes
operation_typeCONVERT or UPDATE (preview update)

On-Demand Conversion (3D Web Integration)

When a user clicks 3D Web on a STEP attachment, the plm_web_3d module calls _get_or_create_3mf_from_step():

  1. Search for an existing ir.attachment where source_convert_document = this_step and name ends in .3mf.
  2. If found — open it immediately (no re-conversion).
  3. If not found — call convert_from_step_to('.3mf'), create a new ir.attachment, copy the preview, and open the result.
Converted files are cached: subsequent opens of the same STEP file are instant.

Python Dependencies

pip install ezdxf
pip install matplotlib
pip install cadquery        # includes OpenCASCADE (OCP)
pip install numpy-stl
pip install to-3mf
CadQuery requires Python 3.10+ and a compatible OpenCASCADE build. On Odoo.sh use only_on_non_sh_requirements.txt for environment-specific overrides.

Conversion Format Records

plm.convert.format records in data/data.xml define which source extensions are automatically queued for conversion. Pre-configured records include:

XML IDSourceTarget
update_stp_preview_png.stp.png (preview)
update_step_preview_png.step.png (preview)
update_stp_preview_3mf.stp.3mf
update_stp_preview_gltf.stp.gltf
update_stp_preview_glb.stp.glb
update_step_preview_3mf.step.3mf
update_step_preview_gltf.step.gltf
update_step_preview_glb.step.glb

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, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with