Advertisement
rht_odoo

[3644910] x_studio_point_b

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