pricing.rst 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .. _pricing-functional:
  2. Pricing
  3. -------
  4. ***********
  5. Computation
  6. ***********
  7. Computing prices for configurable products is done differently from the legacy method.
  8. **Legacy method**
  9. In order to compute prices for standard variants Odoo does the following:
  10. 1. Uses the product template price as a starting / base price.
  11. 2. Loops through all attribute values of the product variant
  12. 3. **Adds the template base price + sum of all price_extra fields on each attribute value.**
  13. **Product configurator method**
  14. Everything until step 2 remains the same. What is different is that we do not use the price_extra field
  15. from the product.attribute.value.
  16. Instead we use the price of the product linked to the product.attribute.value.
  17. **Base price (product.template) + sum of all products related to the attribute.values on the variant.**
  18. As such if you want to compute an extra price for a certain attribute, create a regular product, set a price and link the product to the attribute value in the form view.
  19. .. note::
  20. In order for live pricing updates in the website configurator to work the same setup must be made
  21. For a technical explanation on how this is implemented please check the :ref:`Pricing Technical <pricing-technical>`.
  22. ******
  23. Format
  24. ******
  25. The format in which the price is displayed depends on the user's language.
  26. It follows the rules set in Settings->Languages-> * Language of the user *
  27. If you want to apply another format that is not available in the language model visit :ref:`Pricing Technical <pricing-technical>`.