Comment 1 for bug 1284238

Revision history for this message
Andres Calle (TRESCLOUD) (andres-calle) wrote :

Dear Amit,

I think I've solved the issue, I've already tested it succesfully! :). As it represent changes to the core modules I would appreciate your support in testing again and merging.

For solving the issue it was needed to properly set the "Rounding Precision" of the related Unit of Meassure (associated to the product) to 0.001 which means 3 decimal positions (explained just in case someone else has this trouble). It fixed the quantity shown in the product form "A", now it shows the expected 9.043.

Still one problem remains which needs change in code as follows: The field quantity in account.move.line is still saved with only 2 decimal positions (saves 9.04) the following fix is needed on the base code:

#file addons/account/account_move_line, line 436
-- 'quantity': fields.float('Quantity', digits=(16,2), help="The optional quantity expressed by this line, eg: number of product sold. The quantity is not a legal requirement but is very useful for some reports."),
++ 'quantity': fields.float('Quantity', digits_compute=dp.get_precision('Product Unit of Measure'), help="The optional quantity expressed by this line, eg: number of product sold. The quantity is not a legal requirement but is very useful for some reports."),

Best Regards,

Andres Calle
TRESCLOUD Cia Ltda