I am showing a float variable in a Qweb report:
<t-set="my_qweb_float_variable" t-value="4.0"/>
<span t-esc="'%.4f'% my_qweb_float_variable"/>
I want to round it with the decimal precision of Product Price. I am rounding it to 4 digits because I know that Product Price has a decimal precision of 4 digits, but the right way would be to get the precision value from the record stored in the decimal_precision
table, just in case users change it.
Any ideas?