| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/sale-workflow |
| GIT | |
| GIT | https://github.com/OCA/sale-workflow.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/sale-workflow/tree/8.0/sale_line_quantity_properties_based |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Sales Management |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Agile Business Group |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Agile Business Group |
| COMMITTERS | |
| COMMITTERS | Pedro M. Baeza, Stéphane Bidoul (ACSONE), Alex Comba, OCA Transbot, oca-travis, Weblate |
| WEBSITE | |
| WEBSITE | http://www.agilebg.com |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:11:21 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/sale-workflow: - sale_properties_dynamic_fields - sale_properties_easy_creation odoo/odoo: - sale_mrp - mrp - product - base - decimal_precision - base_setup - web_kanban - web - report - procurement - stock_account - stock - board - web_kanban_gauge - web_kanban_sparkline - account - analytic - edi - email_template - resource - sale_stock - sale - sales_team - account_voucher |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_normal_form_formula_view |
product.normal.formula.form | product.product | field | Inherits product.product_normal_form_view |
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (2)product_id_change(self, cr, uid, ids, pricelist, product_id, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False, flag=False, context=None)
quantity_property_ids_changed(self)
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/sale-workflow |
| GIT | |
| GIT | https://github.com/OCA/sale-workflow.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/sale-workflow/tree/7.0/sale_line_quantity_properties_based |
| VERSION | |
| VERSION | 0.1 |
| CATEGORY | |
| CATEGORY | Sales Management |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Agile Business Group |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Agile Business Group |
| COMMITTERS | |
| COMMITTERS | Lorenzo Battistini, Alexandre Fayolle, Pedro M. Baeza, Alex Comba, moylop260 |
| WEBSITE | |
| WEBSITE | http://www.agilebg.com |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:07:13 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/sale-workflow: - sale_properties_easy_creation OCA/server-tools: - web_context_tunnel odoo/odoo: - sale_mrp - mrp - product - base - process - web - decimal_precision - base_setup - web_kanban - procurement - stock - account - analytic - board - edi - email_template - resource - purchase - sale_stock - sale - account_voucher |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION |
Sale line quantity based on line properties
===========================================
*This module allows the calculation of the product quantity on the basis of a
formula that considers the properties specified by the user on the sale order
line and on the quantity (UoS).*
Example
--------
Provided the sale of a given number of pieces (shelves), that may be
’x’ meter long and ’y’ meter large, the formula enables the calculation of the
total area sold expressed in square meters:
10 [pcs of] (4 m x 0.5 m) shelves = 20 m² of wood
In order to have this function working, it is necessary to have the user
proceeding as follows:
Then s/he shall create properties such as ‘length 4’, ‘width 0.5’.
(Note: this can be more easily achieved by using the modules
'sale_properties_easy_creation' and/or 'sale_properties_dynamic_fields')
Properties must respond the following criteria:
* Name: ‘length 1’, ‘length 4’, ‘width 0.5’
* Property Group : either ‘length’ or ‘width’
* Value : the corresponding quantity (1, 4, 0.5...)
Property 'length 4'
* Name: ‘length 4’
* Property Group : ‘length’
* Value : 4
Property 'width 0.5'
* Name: ‘width 0.5’
* Property Group : ‘width’
* Value : 0.5
After this, the formula 'surface' must be created and associated
to the product:
```
result = float(properties['length']) * float(properties['width']) * qty_uos
```
Upon the registering of the order, the user will apply in the properties field
the desired properties (in this example the ‘lenght 4’ and ‘width 2’), the
needed formula (in this example 'surface') and last the quantity (UoS).
Contributors
------------
* Alex Comba <alex.comba@agilebg.com>
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_normal_form_formula_view |
product.normal.formula.form | product.product | field | Inherits product.product_normal_form_view |
view_order_form |
sale.order.form | sale.order | xpath | Inherits sale.view_order_form |
view_order_form_inherit |
sale.order.form.sale.stock | sale.order | field | Inherits sale_stock.view_order_form_inherit |
No new fields.
Public methods (0)No public methods.