Skip to content

[18.0][MIG] account_bank_statement_balance_start_protection: Migration to 18.0#698

Open
deeniiz wants to merge 5 commits into18.0from
18.0-mig-account_bank_statement_balance_start_protection
Open

[18.0][MIG] account_bank_statement_balance_start_protection: Migration to 18.0#698
deeniiz wants to merge 5 commits into18.0from
18.0-mig-account_bank_statement_balance_start_protection

Conversation

@deeniiz
Copy link
Copy Markdown
Collaborator

@deeniiz deeniiz commented Sep 17, 2025

No description provided.

Copilot AI review requested due to automatic review settings September 17, 2025 14:46
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

This PR migrates the account_bank_statement_balance_start_protection module from an earlier version to Odoo 18.0. The module provides protection for cash statement balance start fields by making them read-only and hiding certain fields when the statement is in specific states.

  • Creates a complete new module structure for Odoo 18.0
  • Implements balance start protection logic through model inheritance and view modifications
  • Adds comprehensive documentation and project configuration files

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
__manifest__.py Module manifest with dependencies and metadata for version 18.0
models/account_bank_statement.py Extends account.bank.statement to add disable_balance_start field and protection logic
views/account_views.xml View inheritance to make balance_start readonly and hide balance_end_real based on conditions
README.rst Auto-generated documentation with module description and credits
readme/DESCRIPTION.md Simple module description for documentation generation
readme/CONTRIBUTORS.md Contributors list for documentation
pyproject.toml Python project configuration using whool build system
static/description/index.html Generated HTML documentation
models/__init__.py Module imports for models package
__init__.py Root module initialization

Comment thread account_bank_statement_balance_start_protection/views/account_views.xml Outdated
Comment thread account_bank_statement_balance_start_protection/models/account_bank_statement.py Outdated
@deeniiz deeniiz force-pushed the 18.0-mig-account_bank_statement_balance_start_protection branch from 19f7e01 to 1f3cfbb Compare December 5, 2025 09:54
@deeniiz deeniiz requested a review from eantones December 5, 2025 09:56
@deeniiz deeniiz force-pushed the 18.0-mig-account_bank_statement_balance_start_protection branch from 1f3cfbb to 2102c83 Compare March 12, 2026 10:17
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 12, 2026

Codecov Report

❌ Patch coverage is 58.82353% with 7 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (18.0@4b294fd). Learn more about missing BASE report.

Files with missing lines Patch % Lines
..._start_protection/models/account_bank_statement.py 53.33% 7 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             18.0     #698   +/-   ##
=======================================
  Coverage        ?   58.82%           
=======================================
  Files           ?        3           
  Lines           ?       17           
  Branches        ?        1           
=======================================
  Hits            ?       10           
  Misses          ?        7           
  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.

4 participants