Repository
OCA/contract · module folder · Try on Runboat
Module version
1.0.0
Category
Contract Management
Folder size
0.05 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
Weblate, OCA-git-bot, oca-ci, Quentin Groulard
Odoo dependencies
Python dependencies
python-dateutil
System dependencies
None
Required by
None
Description
This module extends the functionality of ``product_contract`` to add an option to compute
the total amounts on "contract" Sale Order lines, including every invoicing planned.

For instance, a product worth 10€ invoiced every month for one year would have a total
of 120€ (unit_price * #invoices) instead of 10€ (unit_price * quantity).

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
product_contract_configurator_form_views product.contract.configurator form Inherits product_contract.product_contract_configurator_form
product_template_form_view product.template form Inherits product_contract.product_template_form_contract_view
sale_order_form_view sale.order form Inherits product_contract.view_order_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • include_recurrence_in_price Boolean
    help='The amounts of the Sale Order Line will be multipliedby the number of times the line will be invoiced.'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • include_recurrence_in_price Boolean
    compute='_compute_product_contract_data' help='The amounts of the Sale Order Line will be multipliedby the number of times the line will be invoiced.' precompute=True readonly=False store=True
  • recurring_invoicing_number Float
    compute='_compute_recurring_invoice_number' digits=(16, 1) help='Number of times a line will be invoiced.' precompute=True readonly=False store=True
Public methods (0)

No public methods.