Skip to content

[20.0][MIG] contract_line_successor: Migration to 20.0 - #1574

Open
gbaumgartner-callino wants to merge 18 commits into
OCA:20.0from
gbaumgartner-callino:20.0-mig-contract_line_successor
Open

gbaumgartner-callino wants to merge 18 commits into
OCA:20.0from
gbaumgartner-callino:20.0-mig-contract_line_successor

Conversation

@gbaumgartner-callino

@gbaumgartner-callino gbaumgartner-callino commented Oct 28, 2026 •

Copy link
Copy Markdown

Migration to 20.0.

Depends on:

Assisted-by: Claude Opus 5.5

sbejaoui and others added 17 commits October 28, 2026 15:13
…contract_termination

[REF] contract: remove abstract conract model

simplify contract definition

[IMP] contract: clean UI and improve UX

[FIX] contract: fix tour test

[IMP] contract: several imp

- use Command
- mark _update_recurring_next_date deprecated
- use list instead of tree

[FIX] contract: recurring_next_date is required only if next_period_date_end is set

[IMP] contract: contract template inherit from mail thread

[IMP] index contract.template product_id

[IMP] contract_line_successor: Auto renew interval should be different then 0

[FIX] contract_line_successor: Adding markup to messages

[IMP] contract: simplify multi-company ir.rule domain

[IMP] contract: remove invisible fields

[IMP] contract: use Command new sytnax

[FIX] contract: remove useless odoo-modules declaration in js

[FIX] contract: use text-end in report
Currently translated at 100.0% (87 of 87 strings)

Translation: contract-18.0/contract-18.0-contract_line_successor
Translate-URL: https://translation.odoo-community.org/projects/contract-18-0/contract-18-0-contract_line_successor/it/
Colour the contract line lists by the line's `state`:

- upcoming    -> info (blue, like a draft order)
- in-progress -> normal
- to-renew / upcoming-close -> primary (purple: needs attention before the end
  date, but not an error)
- closed / canceled -> muted

Warning (orange) is deliberately left free so it keeps meaning a genuine problem,
matching the contract itself (yellow = invoice generation error). This mirrors
the contract list colours and Odoo's draft/expired conventions, so a line's
status is readable at a glance. Replaces the previous
`create_invoice_visibility`-driven blue, which lit in-progress lines that
happened to be due for invoicing.

The same colours apply everywhere contract lines are listed: the standalone
list, both lists on the contract form, and the report view behind
Contracts > Reporting > Contract Lines.

The report view keeps `state` as a column of its own, as a badge, the way Odoo
shows state on invoices and sale orders - there the state is the thing being
reported on rather than a hidden input to the row colour. `is_auto_renew` and
`is_canceled` move behind the column selector: they are helper flags, and
`is_canceled` is now redundant with the row colour.
Currently translated at 100.0% (86 of 86 strings)

Translation: contract-19.0/contract-19.0-contract_line_successor
Translate-URL: https://translation.odoo-community.org/projects/contract-19-0/contract-19-0-contract_line_successor/nl/
Currently translated at 100.0% (86 of 86 strings)

Translation: contract-19.0/contract-19.0-contract_line_successor
Translate-URL: https://translation.odoo-community.org/projects/contract-19-0/contract-19-0-contract_line_successor/fr/
@oca-cla-bot

oca-cla-bot Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@notsebtho notsebtho left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tested on Odoo 20.0 at 480aff9, together with #1566, #1568 and #1575. The combined test run for the four modules passes (132 tests, 0 failed, 0 errors).

Approving. The "unreleased dependencies" check should clear once #1566 is merged.

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

Labels

mod:contract_line_successor Module contract_line_successor series:20.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants