Advertisement
rht_odoo

[3644910] x_studio_point_a

Apr 11th, 2024
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.82 KB | None | 0 0
  1. # Done by RHT on the 10/01/2024
  2. # Reviewed by KHBA on the 05/02/2024
  3. # 911 task: https://www.odoo.com/web#id=3644910&cids=1&model=project.task&view_type=form
  4. # Review:
  5. # Business need: have a concatenate of all information about point A
  6. # Video: #N/A
  7.  
  8. for circuit in self:
  9.   text = ""
  10.   if circuit.x_studio_point_a_mh:
  11.     text += "Point A: "  + circuit.x_studio_point_a_mh + "\n"
  12.   if circuit.x_studio_point_a_full_name:
  13.     text += "Point A - full name: " + str(circuit.x_studio_point_a_full_name) + "\n"
  14.   if circuit.x_studio_point_a_gps_coordinates:
  15.     text += "Point A - GPS coordinates: " + str(circuit.x_studio_point_a_gps_coordinates) + "\n"
  16.   if circuit.x_studio_point_a_termination_type:
  17.     text += "Point A - termination type: " + str(circuit.x_studio_point_a_termination_type)
  18.   circuit['x_studio_point_a'] = text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement