v 7.0 v 8.0 Third Party 293
Download for v 7.0
Required Apps MRP (mrp)
Purchase Management (purchase)
Warehouse Management (stock)
Sales Management (sale)
eInvoicing & Payments (account_voucher)
Included Dependencies
Technical Name sale_line_quantity_properties_based
Also available in version v 8.0
You bought this module and need support? Click here!

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).


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).


Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.