Comment 4 for bug 459027

Revision history for this message
Omar (Pexego) (omar7r) wrote :

Hi,

Review the first post, this error it shows too in purchase.order.line, when in web client product_id_change is fired, when i select a product, it sets price_unit field to for example 1,1213 because i has price_accuracy 5, but in web client when try to show the result it shows the value rounded to 2 digits because as in the first post was said in class Float of web client is defined digit=2 as constant, then the function calls format.format_decimal(float(value) or 0.0, self.digit) and executes inside:
 v = ("%%.%df" % digits) % value. Then always in on_change event with floats will show 2 decimals. In gtk it works fine.

Thanks.