Issue 9188

Title
Wrong cost price for non-default uom calculated in purchase shipment cost module (anglo saxon stock)
Priority
bug
Status
resolved
Nosy list
ced, mindauga, reviewbot, roundup-bot
Assigned to
mindauga
Keywords
review

Created on 2020-03-27.21:45:05 by mindauga, last changed 7 months ago by roundup-bot.

Messages

New changeset 71523c09f9b9 by C├ędric Krier in branch 'default':
Convert shipment cost into default uom
https://hg.tryton.org/tryton-env/rev/71523c09f9b9
New changeset 938f26a29b40 by  in branch 'default':
Convert shipment cost into default uom
https://hg.tryton.org/modules/purchase_shipment_cost/rev/938f26a29b40
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-03-27.23:51:39
Could you submit a patch following https://www.tryton.org/develop
Thanks.
Author: [hidden] (mindauga)
Date: 2020-03-27.21:45:04
purchase_shipment_cost (v. 5.4.0)
stock.py

class Move:
    
      def _get_anglo_saxon_move:
      ...
187      cost_price -= shipment_cost

cost_price is calculated per default(internal) uom but shipment_cost is calculated per move uom.
The result cost_price is wrong for moves in non default uom
History
Date User Action Args
2020-04-13 17:18:58roundup-botsetmessages: + msg57106
2020-04-13 17:18:54roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg57105
2020-04-12 09:59:33reviewbotsetmessages: + msg57037
2020-04-04 14:44:20reviewbotsetmessages: + msg56897
2020-04-04 13:56:32reviewbotsetmessages: + msg56894
2020-04-04 09:54:50reviewbotsetmessages: + msg56885
2020-03-28 12:57:50cedsetstatus: chatting -> testing
assignedto: mindauga
2020-03-28 09:59:29reviewbotsetnosy: + reviewbot
messages: + msg56720
2020-03-28 09:59:28reviewbotsetreviews: 256871002
keyword: + review
2020-03-27 23:51:40cedsetstatus: unread -> chatting
nosy: + ced
messages: + msg56702

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