Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Written by SAIN and RHT on the 03/07/2024
- # Reviewed by MGR on the 05/07/2024
- # Review: https://pastebin.com/Gcvi02NU
- # Need: Measure the time needed for a transfer to go from the ready status to the done. This will be used to track and improve the inventory operations. The current existing KPI (cycle time) can't be used since in a multi step environment you have to measure starting from the moment when the stock arrives on a specific location and not when the picking has been created.
- # Task: https://www.odoo.com/odoo/project/5686/tasks/4031858?cids=1
- for transfer in self:
- if transfer.date_done:
- transfer['x_operation_time_minutes'] = (transfer.date_done - (transfer.x_ready_date_time or datetime.datetime.now())).total_seconds() / 60.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement