Advertisement
rht_odoo

[QW][4711731] Delivery Notes : Contact Notes and SO Notes

Apr 8th, 2025 (edited)
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.51 KB | None | 0 0
  1. # Done by RHT on the 08/04/2025
  2. # Need : Have a notes concatenating the Sale order notes and the customer notes
  3. # Task : https://www.odoo.com/odoo/project.task/4711731
  4. # Pastebin : https://pastebin.com/cx1kdA7N
  5. for delivery in records:
  6.     note = delivery.note or ""
  7.     partner_comment = delivery.partner_id.comment or ""
  8.     internal_note = delivery.sale_id.internal_note_display or ""
  9.     delivery["note"] = (
  10.     f"{note}<br/>"
  11.     f"Account Note :{partner_comment}<br/>"
  12.     f"Order Note :{internal_note}" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement