Skip to content

[18.0][MIG] stock_location_code: Migration to 18.0#708

Open
deeniiz wants to merge 8 commits into18.0from
18.0-mig-stock_location_code
Open

[18.0][MIG] stock_location_code: Migration to 18.0#708
deeniiz wants to merge 8 commits into18.0from
18.0-mig-stock_location_code

Conversation

@deeniiz
Copy link
Copy Markdown
Collaborator

@deeniiz deeniiz commented Sep 19, 2025

No description provided.

Copilot AI review requested due to automatic review settings September 19, 2025 10:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Migration module introducing a unique per-company location code for stock locations in Odoo 18.0.

  • Adds a new Char field code to stock.location with SQL uniqueness constraint per company.
  • Extends form and tree views to expose the new field.
  • Adds standard README and metadata scaffolding for the module.

Reviewed Changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
stock_location_code/manifest.py Declares new module, dependencies, and view data.
stock_location_code/models/stock_location.py Introduces code field and uniqueness SQL constraint.
stock_location_code/views/stock_location_views.xml Injects code field into form and tree views.
stock_location_code/README.rst Auto-generated addon README describing purpose and credits.
stock_location_code/readme/DESCRIPTION.md Short description for generator tooling.
stock_location_code/readme/CONTRIBUTORS.md Lists contributors.
stock_location_code/static/description/index.html Generated HTML description (non-functional docs).
stock_location_code/models/init.py Imports model extension.
stock_location_code/init.py Initializes models package.
stock_location_code/pyproject.toml Build system configuration (whool).

Comment thread stock_location_code/models/stock_location.py
Comment thread stock_location_code/models/stock_location.py
Copy link
Copy Markdown
Member

@eantones eantones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a spanish translations please

Comment thread stock_location_code/i18n/es.po Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.

"license": "AGPL-3",
"website": "https://github.com/NuoBiT/odoo-addons",
"depends": [
"stock",
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the trailing comma after 'stock' in the depends list. Single-item lists don't require a trailing comma.

Suggested change
"stock",
"stock"

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 1, 2026

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale label Mar 1, 2026
@eantones eantones added no stale and removed stale labels Mar 1, 2026
@deeniiz deeniiz force-pushed the 18.0-mig-stock_location_code branch from f13ad2b to 19c782a Compare March 12, 2026 10:40
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (18.0@4b294fd). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             18.0      #708   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?         3           
  Lines           ?         7           
  Branches        ?         0           
========================================
  Hits            ?         7           
  Misses          ?         0           
  Partials        ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants