Advertisement
rht_odoo

[3792792]x_studio_discount

Apr 3rd, 2024
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. #Done by RHT on the 07/03/2024
  2. #Reviewed by EMI on the 03/04/2024
  3. #Review:
  4. #911 task:
  5. #Need: to know the discounted amount
  6. for so in self:
  7.   discount = 0
  8.   for line in so.order_line:
  9.     if line.product_id.x_studio_prime:
  10.       discount -= line.price_unit
  11.   so["x_studio_discount"] = discount
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement