[18.0][MIG] product_unique_barcode: Migration to 18.0#732
Open
[18.0][MIG] product_unique_barcode: Migration to 18.0#732
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR migrates the product_unique_barcode module from an earlier version to Odoo 18.0, implementing unique barcode constraints for products within the same company.
- Adds comprehensive barcode validation logic to prevent duplicate barcodes within the same company
- Implements pre-installation hooks to check for existing barcode conflicts
- Includes module documentation and metadata files for the new version
Reviewed Changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| product_unique_barcode/manifest.py | Module manifest defining dependencies, version 18.0.1.0.0, and pre-init hook |
| product_unique_barcode/models/product.py | Core logic implementing barcode uniqueness constraint with company-specific validation |
| product_unique_barcode/hooks.py | Pre-installation hook to detect existing barcode conflicts before module installation |
| product_unique_barcode/init.py | Module initialization importing models and hooks |
| product_unique_barcode/models/init.py | Models package initialization |
| product_unique_barcode/README.rst | Module documentation in reStructuredText format |
| product_unique_barcode/readme/DESCRIPTION.md | Brief module description |
| product_unique_barcode/readme/CONTRIBUTORS.md | Contributors information |
| product_unique_barcode/pyproject.toml | Python project configuration |
| product_unique_barcode/static/description/index.html | Generated HTML documentation |
dec7925 to
c925ac8
Compare
c925ac8 to
17997e8
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 18.0 #732 +/- ##
=======================================
Coverage ? 70.83%
=======================================
Files ? 4
Lines ? 24
Branches ? 4
=======================================
Hits ? 17
Misses ? 6
Partials ? 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
No description provided.