Files
tryton/modules/product/doc/reference.rst
T

35 lines
1011 B
ReStructuredText
Raw Normal View History

2024-01-24 10:16:04 +01:00
API Reference
*************
2024-01-23 23:31:34 +01:00
Price
=====
.. data:: trytond.modules.product.price_digits
A :py:class:`tuple <tuple>` containing the digits to use to store unit
prices.
.. function:: trytond.modules.product.round_price(value[, rounding])
Round the value following ``rounding`` to be stored as unit price.
2024-01-23 23:31:48 +01:00
Units of Measure conversion
===========================
.. data:: trytond.modules.product.uom_conversion_digits
A :py:class:`tuple <tuple>` containing the digits to use to store conversion
rates or factors.
2024-01-24 10:16:04 +01:00
Product Deactivatable
=====================
.. class:: trytond.modules.product.TemplateDeactivatableMixin
A :class:`~trytond:trytond.model.DeactivableMixin` that includes the soft
deletion state of the ``template`` record for record soft deletion.
.. class:: trytond.modules.product.ProductDeactivatableMixin
A :class:`~trytond.modules.product.TemplateDeactivatableMixin` that includes
the soft deletion state of the ``product`` record for record soft deletion.