Product Contract Variable Quantity

product_contract_variable_quantity
REPOSITORY
REPOSITORYOCA/contract
GIT
GIThttps://github.com/OCA/contract.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/contract/tree/18.0/product_contract_variable_quantity
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Quentin Groulard, oca-ci, Tobias Zehntner
WEBSITE
WEBSITEhttps://github.com/OCA/contract
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:10
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/contract:
    - contract_variable_quantity
    - contract
    - product_contract
    - contract_termination
    - contract_line_successor
odoo/odoo:
    - base
    - account
    - base_setup
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale
    - sales_team
    - account_payment
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-dateutil
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module add default values to contract products for variable
quantity formula.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
product_contract_configurator_form_view product.contract.configurator xpath Inherits product_contract.product_contract_configurator_form
product_template_form_view product.template xpath Inherits product_contract.product_template_form_contract_view
view_order_form sale.order xpath Inherits sale.view_order_form
Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • qty_formula_id Many2one → contract.line.qty.formula
    comodel_name='contract.line.qty.formula' compute='_compute_qty_type' readonly=False store=True string='Qty. formula'
  • qty_type Selection
    compute='_compute_qty_type' default='fixed' readonly=False required=False selection=[('fixed', 'Fixed quantity'), ('variable', 'Variable quantity')] store=True string='Qty. type'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • qty_formula_id Many2one → contract.line.qty.formula
    comodel_name='contract.line.qty.formula' compute='_compute_qty_formula_id' precompute=True readonly=False store=True string='Qty. formula'
  • qty_type Selection
    compute='_compute_product_contract_data' default='fixed' precompute=True readonly=False required=False selection=[('fixed', 'Fixed quantity'), ('variable', 'Variable quantity')] store=True string='Qty. type'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/contract
GIT
GIThttps://github.com/OCA/contract.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/contract/tree/12.0/product_contract_variable_quantity
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSPedro M. Baeza, sbejaoui, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/contract
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/contract:
    - contract_variable_quantity
    - contract
    - product_contract
    - contract_sale
odoo/odoo:
    - base
    - account
    - base_setup
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
    - auth_signup
    - sale
    - sales_team
    - payment
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-dateutil
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
product_template_form_view account.invoice.select.contract (in product_contract_variable_quantity) product.template xpath Inherits product.product_template_form_view
view_order_form sale.order.form (in product_contract_variable_quantity) sale.order xpath Inherits sale.view_order_form
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • qty_formula_id Many2one → contract.line.qty.formula
    comodel_name='contract.line.qty.formula' string='Qty. formula'
  • qty_type Selection
    default='fixed' required=False selection=[('fixed', 'Fixed quantity'), ('variable', 'Variable quantity')] string='Qty. type'
Public methods (0)

No public methods.

New fields (2)
  • qty_formula_id Many2one → contract.line.qty.formula
    comodel_name='contract.line.qty.formula' string='Qty. formula'
  • qty_type Selection
    default='fixed' required=False selection=[('fixed', 'Fixed quantity'), ('variable', 'Variable quantity')] string='Qty. type'
Public methods (1)
  • onchange_product(self)
    @api.onchange('product_id')