Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

License: AGPL-3

Sale line quantity properties based

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 proceed 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 respect 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 ‘length 4’ and ‘width 2’), the needed formula (in this example ‘surface’) and last the quantity (UoS).

Usage

Try me on Runbot

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback here.

Credits

Contributors

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.

Release files for odoo8-addon-sale-line-quantity-properties-based 8.0.1.0.0.99.dev18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo8-addon-sale-line-quantity-properties-based 8.0.1.0.0.99.dev18
File Interpreter ABI Platform
odoo8_addon_sale_line_quantity_properties_based-8.0.1.0.0.99.dev18-py2-none-any.whl Python 2 none any Details

Release files / odoo8_addon_sale_line_quantity_properties_based-8.0.1.0.0.99.dev18-py2-none-any.whl

Download URL odoo8_addon_sale_line_quantity_properties_based-8.0.1.0.0.99.dev18-py2-none-any.whl
Size 53.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
8bbc1fb6cf2ba7715dfce3afe91d7bfe1671effda84c5980d26b35866796555c
BLAKE2b-256 checksum
How to use checksums
3f57feb584bf78e205d2b4d0ea2c0a9c37f6c1f870740e68bfd954bb7ee4994d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page