Tryton - Issues



Title Keep history of cost price modification
Priority feature Status testing
Superseder Conflict between wizards "wizard_recompute_cost_price" and "wizard_update_cost_price", Update cost of moves when recomputing product cost price
View: 7273, 8795
Nosy List ced, pokoli, reviewbot
Type behavior Components account_stock_continental, stock
Assigned To ced Keywords
Reviews 260751002
View: 260751002

Created on 2019-12-16.17:10:19 by ced, last changed by reviewbot.

review260751002 updated at
review260751002 updated at
review260751002 updated at
msg54771 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2020-01-09.15:07:11
Here is review260751002
The main difference with msg54538 is that cost price revision is applied at the beginning of the day.
New review260751002 at
msg54538 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-12-16.17:10:19
With issue8795 updating the cost price manually will be lost on the next stock move created.
Indeed we need to store the manual cost price modification in such way that the re-computation can take it into account.
The data to store must be the product, company (and any other cost_price depending fields), the date. It should store an absolute cost_price or a formula to compute new cost_price based on current one (e.g. for 10% reduction: cost_price * 0.9). This data is used by the recompute methods at the end of the day computation and the result is used as new cost_price.
The wizard should be moved in stock module.
The account_stock_continental should be plugged on the recompute cost price update to create automatically (thanks to issue7273) the accounting move.
Date User Action Args
2020-01-09 18:02:28reviewbotsetmessages: + msg54778
2020-01-09 17:30:43reviewbotsetmessages: + msg54777
2020-01-09 16:30:23reviewbotsetnosy: + reviewbot
messages: + msg54776
2020-01-09 15:07:12cedsetstatus: in-progress -> testing
nosy: - reviewbot
messages: + msg54771
keyword: - review
2020-01-09 15:05:05reviewbotsetnosy: + reviewbot
messages: + msg54770
2020-01-09 15:05:04reviewbotsetreviews: 260751002
keyword: + review
2020-01-08 15:38:17cedsetstatus: unread -> in-progress
assignedto: ced
2020-01-08 14:36:02cedlinkissue7273 superseder
2019-12-16 17:23:18pokolisetnosy: + pokoli
2019-12-16 17:10:19cedcreate

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