Created on 2019-05-20.15:31:20 by ced, last changed 39 months ago by roundup-bot.
New changeset b705e7f82fc6 by Cédric Krier in branch 'default': Improve moves synchronisation on shipments https://hg.tryton.org/tryton-env/rev/b705e7f82fc6
New changeset 2987a2201834 by Cédric Krier in branch 'default': Improve moves synchronisation on shipments https://hg.tryton.org/modules/stock_lot/rev/2987a2201834
New changeset 38e2a76db719 by Cédric Krier in branch 'default': Improve moves synchronisation on shipments https://hg.tryton.org/modules/stock/rev/38e2a76db719
issue8566 must be fixed before otherwise this one will break it even more.
Here is review261811002 which simplify the synchronization but also support lot for internal shipment. The major difference is that changing the product of a inventory move will affect the outgoing move either. A second difference is that move without any inventory will be set to zero instead of being deleted.
With issue8253, we will have a link between the inventory moves and the outgoing moves. So I think the synchronization could be simplified and hardened by using the origin. If we synchronize by origin then we could simplify the design for stock_lot. So the algorithm could be: - compute quantity per origin and a key (default: product and extended with lot) from the inventory moves - update quantity of outgoing moves using origin of quantity: - check if the key is valid for original move: - if yes: update quantity if lower or create new move if higher - if no: copy with default quantity and other key values - update quantity to zero for missing origin - create new move for unknown origins This will also support to change the product (standard replacement) on inventory move and update it on the outgoing move.
|2019-10-30 12:42:38||ced||link||issue8775 superseder|
|2019-08-18 19:23:08||roundup-bot||set||messages: + msg51338|
|2019-08-18 19:23:03||roundup-bot||set||messages: + msg51337|
|2019-08-18 19:22:58||roundup-bot||set||status: testing -> resolved|
nosy: + roundup-bot
messages: + msg51336
superseder: + No invoice created for shipment out between supplier and customer
|2019-07-18 10:10:47||reviewbot||set||messages: + msg50711|
messages: + msg50586
|2019-07-09 17:54:48||ced||set||status: in-progress -> testing|
messages: + msg50585
keyword: + review
|2019-07-04 15:35:36||pokoli||set||nosy: + pokoli|
|2019-05-21 10:21:48||tbruyere||set||nosy: + tbruyere, mrichez|
Showing 10 items. Show all history (warning: this could be VERY long)