Issue 9664

Title
Decimals on fifo_quantity field
Priority
bug
Status
resolved
Nosy list
bernatnan, reviewbot, roundup-bot
Assigned to
bernatnan
Keywords
review

Created on 2020-10-01.15:36:33 by bernatnan, last changed 1 month ago by roundup-bot.

Messages

New changeset 1c540c621623 by Bernat in branch '5.6':
Do not set fifo_quantity greater than quantity
https://hg.tryton.org/modules/product_cost_fifo/rev/1c540c621623

New changeset 7981da987b7e by Bernat in branch '5.4':
Do not set fifo_quantity greater than quantity
https://hg.tryton.org/modules/product_cost_fifo/rev/7981da987b7e

New changeset 76648eff51e3 by Bernat in branch '5.0':
Do not set fifo_quantity greater than quantity
https://hg.tryton.org/modules/product_cost_fifo/rev/76648eff51e3
New changeset 7941b8f34c84 by C├ędric Krier in branch 'default':
Do not set fifo_quantity greater than quantity
https://hg.tryton.org/tryton-env/rev/7941b8f34c84
New changeset c21747a2ee84 by Bernat in branch 'default':
Do not set fifo_quantity greater than quantity
https://hg.tryton.org/modules/product_cost_fifo/rev/c21747a2ee84
Author: [hidden] (bernatnan)
Date: 2020-10-01.15:36:33
On product_cost_fifo module, when calculate the fifo_quantity field, its a float, on _update_fifo_out_product_cost_price function, some times the value obtained has some extra decimals and after, when try to save, control that the fifo_quantity field will be less or equal than the quantity, and raise and exception because it's not true.
History
Date User Action Args
2020-10-30 19:58:24roundup-botsetkeyword: - backport
messages: + msg61560
2020-10-21 23:34:58roundup-botsetmessages: + msg61140
2020-10-21 23:34:55roundup-botsetmessages: + msg61139
nosy: + roundup-bot
status: chatting -> resolved
2020-10-21 23:31:26cedsetkeyword: + backport
2020-10-12 18:33:01reviewbotsetmessages: + msg60876
2020-10-11 23:08:00reviewbotsetmessages: + msg60798
2020-10-10 09:30:16reviewbotsetmessages: + msg60756
2020-10-09 13:51:43reviewbotsetmessages: + msg60703
2020-10-09 13:31:09reviewbotsetmessages: + msg60702
2020-10-07 12:54:08reviewbotsetmessages: + msg60621

Showing 10 items. Show all history (warning: this could be VERY long)