connector_onshape: Onshape PLM connector for Odoo#523
Open
connector_onshape: Onshape PLM connector for Odoo#523
Conversation
New OCA-style connector module for bidirectional synchronization between Odoo and Onshape cloud CAD/PLM platform. Features: - HMAC and OAuth2 authentication with Onshape API - Document, element, and part discovery from Onshape workspace - Product binding with 4-strategy SKU matching (exact, extension strip, version strip, case-insensitive) - Assembly BOM import with component match scoring - Part number/description export from Odoo to Onshape metadata - Webhook receiver for real-time change notifications - Event listener for auto-export on product changes - Queue job integration for async processing with retry patterns - Cron jobs for scheduled background synchronization - Import wizard for guided document/product/BOM imports - Rate limit handling and API quota exhaustion detection (402) Models: onshape.backend, onshape.document, onshape.document.element, onshape.product.product, onshape.mrp.bom Test suite: 51 test methods covering backend, adapter, importers, exporters, mappers, binder, webhooks, listener, and wizard. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add OAuth2 Authorization Code flow as an alternative to HMAC authentication. Includes token exchange, refresh, CSRF protection, and context-aware error handling for API quota (402) responses.
setuptools 82+ removed pkg_resources, which broke the setuptools-odoo-make-default and setuptools-odoo-get-requirements hooks. Version 3.3.2 pins setuptools<82 to restore compatibility. Co-Authored-By: Claude Opus 4.6 <[email protected]>
48b7138 to
f5dc996
Compare
f5dc996 to
ff9de7b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New module
connector_onshape— bidirectional sync between Onshape CAD/PLM and Odoo products/BOMs using the OCA Connector framework.Features:
product.productrecordsqueue_jobwith rate-limit awarenessModels:
onshape.backend— backend configuration (inheritsconnector.backend)onshape.document/onshape.document.element— document + element trackingonshape.product.product— product binding with compound external IDsonshape.mrp.bom— BOM binding for assembly syncComponents:
doc_id/elem_id/part_id)Also included: Bump
setuptools-odoofrom 3.1.8 → 3.3.2 to fixpkg_resourcesModuleNotFoundErrorin pre-commit CI (setuptools 82+ removedpkg_resources; 3.3.2 pinssetuptools<82).55 tests, all passing. CI green (tests + pre-commit).
Test plan
🤖 Generated with Claude Code