| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/contract |
| GIT | |
| GIT | https://github.com/OCA/contract.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/contract/tree/18.0/product_contract_variable_quantity |
| VERSION | |
| VERSION | 1.0.1 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), ACSONE SA/NV |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), ACSONE SA/NV |
| COMMITTERS | |
| COMMITTERS | Weblate, OCA-git-bot, Quentin Groulard, oca-ci, Tobias Zehntner |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/contract |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-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 - 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. |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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 |
No new fields.
Public methods (0)No public methods.
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'
No public methods.
No new fields.
Public methods (0)No public methods.
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'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/contract |
| GIT | |
| GIT | https://github.com/OCA/contract.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/contract/tree/12.0/product_contract_variable_quantity |
| VERSION | |
| VERSION | 1.0.1 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), ACSONE SA/NV |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), ACSONE SA/NV |
| COMMITTERS | |
| COMMITTERS | Pedro M. Baeza, sbejaoui, OCA Transbot, oca-travis, Weblate, OCA-git-bot |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/contract |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-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 - 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 | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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 |
No new fields.
Public methods (0)No public methods.
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'
No public methods.
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'
onchange_product(self)