Tryton - Issues

 

Issue7918

Title negative product cost price for sales and production with UOM less than default
Priority bug Status unread
Superseder Nosy List MR, angel
Type Components
Assigned To Keywords
Reviews

Created on 2018-12-11.13:29:59 by MR, last changed by angel.

Messages
msg45259 (view) Author: [hidden] (MR) Date: 2018-12-11.13:29:58
Tryton 5.0. If I select UOM less than default ( for example, the product with default UOM in meters I sale in centimeters) for sale or production input, after few sale or production cycles I get negative product cost price in product cost history.
I don't know the coding, but in my opinion the problem is the value move.unit_price attached in product_cost_fifo/move.py function _update_fifo_out_product_cost_price in default UOM and after recalculated in stock/move.py  Move class method _compute_product_cost_price from move UOM to default UOM, it's mean the unit_price is 100 times bigger in my centimeters-meters case
History
Date User Action Args
2019-01-03 16:13:58angelsetnosy: + angel
2018-12-11 13:29:59MRcreate

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