Anybody an idea how to set the decimal precision of a product based on the unit of measure it is sold it. For example product X sold in Kg has a decimal precision of 3 => Qty: 10.000Kg Product Y sold in Unit(s) had a decimal precision of 0 -> Qty: 10 Unit(s)
Thanks in advance.
Import this at the top of your
.pyfile:Now, imagine you have a product recordset (object/group of objects of products) in
self: