Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Done by RHT on the xx/03/2024
- #Reviewed by ROS on the 15/03/2024
- #Review:
- #911: https://www.odoo.com/web#id=3790350&cids=1&model=project.task&view_type=form
- for sol in self:
- purchase_order_ids = sol.order_id._get_purchase_orders()
- purchase_line_ids = purchase_order_ids.order_line.filtered(lambda pol, current_sol = sol: pol.state != 'cancel' and pol.product_id.id == current_sol.product_id.id)
- sol['x_studio_purchase_price'] = purchase_line_ids[:1].price_unit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement