Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Done by RHT and QCO on the 29/02/2024
- #Reviewed by ROS on the 14/03/2024
- #Review:https://pastebin.com/edit/NwVkW9Fw
- #911 Task: https://www.odoo.com/web#id=3681868&cids=1&model=project.task&view_type=form
- #Need: Have the PO information on the delivery (for SO/PO linked trough MTO)
- for move in self:
- if move.picking_id.picking_type_code == 'outgoing':
- po_list = move.picking_id.group_id.x_studio_purchase_orders.filtered(lambda po,mv=move: mv.product_id in po.order_line.product_id)
- move['x_studio_po_ref'] = ', '.join(po_list.mapped("name"))
- else:
- move['x_studio_po_ref'] = "/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement