Issue 10959

Title
Store allocation factors to unallocate
Priority
feature
Status
resolved
Nosy list
ced, reviewbot, roundup-bot
Assigned to
ced
Keywords
review

Created on 2021-11-15.12:26:05 by ced, last changed 11 months ago by roundup-bot.

Messages

New changeset db8d5f13e309 by Cédric Krier in branch 'default':
Store allocation factors
https://hg.tryton.org/tryton-env/rev/db8d5f13e309
New changeset 98c3e3c4b7bf by Cédric Krier in branch 'default':
Store allocation factors
https://hg.tryton.org/modules/account_stock_landed_cost_weight/rev/98c3e3c4b7bf
New changeset 8df8f7487458 by Cédric Krier in branch 'default':
Store allocation factors
https://hg.tryton.org/modules/account_stock_landed_cost/rev/8df8f7487458
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-11-15.12:26:05

When canceling a landed cost we invert the application of the landed cost. But the factors computed when canceling may not be the same as computed when applying. For example the unit price of the moves may have been changed by the recomputation (when posting an invoice for example).
I think it will be better to store the factors used when allocating and reuse them when unallocating. This is now doable easily with the Dict field.

History
Date User Action Args
2021-12-16 22:31:37roundup-botsetmessages: + msg72618
2021-12-16 22:31:33roundup-botsetmessages: + msg72617
2021-12-16 22:31:29roundup-botsetmessages: + msg72616
nosy: + roundup-bot
status: testing -> resolved
2021-11-15 12:57:49reviewbotsetmessages: + msg71668
nosy: + reviewbot
2021-11-15 12:27:32cedsetkeyword: + review
reviews: 351051002
status: in-progress -> testing
2021-11-15 12:26:05cedcreate

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