TIP: You can type at any time to perform a new search.
Contract Termination
contract_termination · OCA/contract
- Repository
- OCA/contract · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Uncategorized
- Folder size
- 0.13 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/contract
- Last tracking update
- 2026-08-07 08:43:01
- Authors
- ACSONE SA/NV, Odoo Community Association (OCA)
- Maintainers
- ACSONE SA/NV, Odoo Community Association (OCA)
- Committers
- Denis Roussel, Weblate, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- product_contract
- Description
The **Contract Termination** module extends the `contract` module, allowing users to properly manage the termination of contracts. It provides functionality to terminate contracts with a reason, track termination comments and dates, and prevent further modifications on terminated contracts unless reactivated. ## Features - **Terminate Contracts** - Users with the appropriate rights can terminate active contracts. - Capture a termination reason, comment, and termination date. - **Update or Cancel Termination** - Update termination details if needed. - Cancel (reactivate) a terminated contract. - **Contract Form Enhancements** - Display an alert on terminated contracts with the reason and comment. - Hide or disable contract actions (e.g., Send) and fields on terminated contracts. - Set contract fields as read-only after termination. - **Permissions** - Only users with the group `Contract: Can Terminate Contracts` can terminate or cancel termination of contracts.
Code Analysis ⓘ
Views touched (4)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
contract_contract_form_view |
contract.contract | form | Inherits contract.contract_contract_form_view | |
contract_contract_terminate_form_view |
contract.contract.terminate | form | New | |
contract_terminate_reason_form_view |
contract.terminate.reason | form | New | |
contract_terminate_reason_tree_view |
contract.terminate.reason | list | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (4)
New fields (4)
-
is_terminatedBooleancopy=Falsereadonly=Truestring='Terminated' -
terminate_commentTextcopy=Falsereadonly=Truestring='Termination Comment'tracking=True -
terminate_dateDatecopy=Falsereadonly=Truestring='Termination Date'tracking=True -
terminate_reason_idMany2one → contract.terminate.reasoncomodel_name='contract.terminate.reason'copy=Falseondelete='restrict'readonly=Truestring='Termination Reason'tracking=True
-
action_cancel_contract_termination(self) -
action_terminate_contract(self)
New fields (6)
-
contract_idMany2one → contract.contractcomodel_name='contract.contract'ondelete='cascade'required=Truestring='Contract' -
terminate_commentTextstring='Termination Comment' -
terminate_comment_requiredBooleanrelated='terminate_reason_id.terminate_comment_required' -
terminate_dateDaterequired=Truestring='Termination Date' -
terminate_reason_idMany2one → contract.terminate.reasoncomodel_name='contract.terminate.reason'ondelete='cascade'required=Truestring='Termination Reason' -
terminate_with_last_date_invoicedBooleanhelp='Terminate the contract lines with the last invoiced date if they cannot be terminated with the date reported in the wizard.'string='Terminate lines with last date invoiced'
-
terminate_contract(self)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
nameCharrequired=True -
terminate_comment_requiredBooleandefault=Truestring='Require a termination comment'
No public methods.
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 234 days ago
- Last activity
- 71 days ago
- Repository
- OCA/contract
- Pull request
- [19.0][MIG] contract_termination (#1367)
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 290 days ago
- Last activity
- 47 days ago
- Repository
- OCA/contract
- Pull request
- 19.0 [MIG] contract termination (#1335)