contract_termination
Extends Odoo contracts to manage terminations with reasons, comments, and controlled reactivation.
Key Features
- contract.contract: Adds termination fields and buttons so authorized users can finalize, update, or cancel a contract termination with reason, comment, and date.
- contract.contract: Displays an alert banner and makes key contract fields read-only once the contract is terminated.
- contract.contract: Stops eligible contract lines at termination, optionally using their last invoiced date when the wizard requests it.
- contract.contract.terminate: Provides a wizard to capture the termination reason, comment requirement, date, and line stop behavior.
- contract.line: Disables stop, cancel, and successor operations when the parent contract is terminated and excludes those lines from renewal searches.
- contract.terminate.reason: Lets administrators configure termination reasons and whether comments are mandatory.
- security: Introduces a specific access group that grants rights to terminate or reactivate contracts.