Skip to content

[18.0][MIG] contract_line_tax: Migration to 18.0#726

Open
deeniiz wants to merge 12 commits into18.0from
18.0-mig-contract_line_tax
Open

[18.0][MIG] contract_line_tax: Migration to 18.0#726
deeniiz wants to merge 12 commits into18.0from
18.0-mig-contract_line_tax

Conversation

@deeniiz
Copy link
Copy Markdown
Collaborator

@deeniiz deeniiz commented Sep 30, 2025

No description provided.

Copilot AI review requested due to automatic review settings September 30, 2025 07:50
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 contract_line_tax module from a previous version to Odoo 18.0. The module adds tax functionality to contract lines and propagates those taxes to generated invoices.

Key changes:

  • Complete module structure migration with models, views, tests, and documentation
  • Implementation of tax handling in contract lines with fiscal position mapping
  • Addition of comprehensive test coverage for tax propagation functionality

Reviewed Changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
contract_line_tax/__manifest__.py Module manifest defining dependencies and metadata for 18.0
contract_line_tax/models/contract_line.py Core model extending contract.line with tax_ids field and invoice line preparation
contract_line_tax/views/contract_view.xml XML views adding tax fields to contract forms and lists
contract_line_tax/tests/test_contract_line.py Test cases verifying tax propagation from contract lines to invoices
contract_line_tax/i18n/es.po Spanish translation file with outdated version reference
Other files Supporting documentation, README files, and module structure files

Comment thread contract_line_tax/views/contract_view.xml Outdated
Comment thread contract_line_tax/views/contract_view.xml Outdated
Comment thread contract_line_tax/i18n/es.po Outdated
@deeniiz deeniiz force-pushed the 18.0-mig-contract_line_tax branch 2 times, most recently from 83798d6 to 7e1b18d Compare September 30, 2025 08:13
@deeniiz deeniiz requested review from Copilot and eantones September 30, 2025 08:34
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 13 out of 14 changed files in this pull request and generated 4 comments.

>
<field
name="tax_ids"
domain="[('type_tax_use', '=', parent.contract_type),('company_id','=',parent.company_id)]"
Copy link

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

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

Missing spaces around operators in domain expressions. Add spaces around '=' and ',' for better readability: [('type_tax_use', '=', parent.contract_type), ('company_id', '=', parent.company_id)]

Copilot uses AI. Check for mistakes.
>
<field
name="tax_ids"
domain="[('type_tax_use', '=', parent.contract_type),('company_id','=',parent.company_id)]"
Copy link

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

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

Missing spaces around operators in domain expressions. Add spaces around '=' and ',' for better readability: [('type_tax_use', '=', parent.contract_type), ('company_id', '=', parent.company_id)]

Copilot uses AI. Check for mistakes.
<field
colspan="4"
name="tax_ids"
domain="[('type_tax_use', '=', parent.contract_type),('company_id','=',parent.company_id)]"
Copy link

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

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

Missing spaces around operators in domain expressions. Add spaces around '=' and ',' for better readability: [('type_tax_use', '=', parent.contract_type), ('company_id', '=', parent.company_id)]

Copilot uses AI. Check for mistakes.
Comment thread contract_line_tax/models/contract_line.py
@deeniiz deeniiz force-pushed the 18.0-mig-contract_line_tax branch from 7e1b18d to 167b92a Compare March 12, 2026 11:55
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 12, 2026

Codecov Report

❌ Patch coverage is 92.68293% with 3 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
contract_line_tax/models/contract_line.py 78.57% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             18.0     #726   +/-   ##
=======================================
  Coverage        ?   92.68%           
=======================================
  Files           ?        5           
  Lines           ?       41           
  Branches        ?        6           
=======================================
  Hits            ?       38           
  Misses          ?        1           
  Partials        ?        2           

☔ 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.

7 participants