Issue 9740

Title
Add shipment cost to outgoing moves
Priority
feature
Status
resolved
Superseder
Add cost, revenue and margin reporting (issue 9665)
Nosy list
ced, mrichez, reviewbot, roundup-bot
Assigned to
ced
Keywords
review

Created on 2020-10-19.19:28:54 by ced, last changed 2 months ago by roundup-bot.

Messages

New changeset 5ef75edd345d by Cédric Krier in branch 'default':
Correct super call to _get_shipment_cost
https://hg.tryton.org/tryton-env/rev/5ef75edd345d
New changeset 54aa4fef671c by Cédric Krier in branch 'default':
Correct super call to _get_shipment_cost
https://hg.tryton.org/modules/sale_shipment_cost/rev/54aa4fef671c
New changeset 6f893e0a8319 by Cédric Krier in branch 'default':
Add stock_shipment_cost module
https://hg.tryton.org/tryton-env/rev/6f893e0a8319
New changeset 97d0cd22c864 by Cédric Krier in branch 'default':
Add stock_shipment_cost module
https://hg.tryton.org/readthedocs/rev/97d0cd22c864
New changeset 57f8fc239d2a by Cédric Krier in branch 'default':
Add stock_shipment_cost module
https://hg.tryton.org/modules/stock_shipment_cost/rev/57f8fc239d2a
New changeset 591fbe106448 by Cédric Krier in branch 'default':
Add stock_shipment_cost module
https://hg.tryton.org/modules/stock_package_shipping/rev/591fbe106448
New changeset db13fe64f50a by Cédric Krier in branch 'default':
Add cost for shipment and allow shipment costs to not be sold
https://hg.tryton.org/modules/sale_shipment_cost/rev/db13fe64f50a
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-10-20.18:53:43

I reuse the same design as for production. By default there is no guarantee that we will have the weight of each product. But I could use the same design as for landed cost but I do not think we should set the method on each shipment but only with a global configuration.

Author: [hidden] (mrichez)
Date: 2020-10-20.13:57:10

I add this question in rietveld but it should be here instead:

As it's shipment, would it be more logical to do calculation based on weight ?
Or maybe this method should be configurable?

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-10-19.19:28:54

Following https://discuss.tryton.org/t/about-include-more-cost-to-compute-margin/3313.
I propose to add a new module stock_shipment_cost which will add the shipment cost to a new field on the outgoing moves.
Also the sale_shipment_cost is adapted to allow to not invoice the shipment cost to the customer and in this case, the cost will be added to the shipment cost.

History
Date User Action Args
2021-03-03 09:44:49roundup-botsetmessages: + msg65076
2021-03-03 09:44:46roundup-botsetmessages: + msg65075
2021-02-27 14:45:06roundup-botsetmessages: + msg64916
2021-02-27 14:45:04roundup-botsetmessages: + msg64915
2021-02-27 14:44:59roundup-botsetmessages: + msg64914
2021-02-27 14:44:51roundup-botsetmessages: + msg64913
2021-02-27 14:44:47roundup-botsetmessages: + msg64912
nosy: + roundup-bot
status: testing -> resolved
2021-02-14 13:27:51reviewbotsetmessages: + msg64551
2021-01-27 10:27:51reviewbotsetmessages: + msg64118
2021-01-25 17:51:08reviewbotsetmessages: + msg64091

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