Skip to content

ADD create map place from crm_lead and fix map xml_id file

Xavier Bonet requested to merge ADD_allow_create_map_place_from_crm_lead into main

Add the crm_lead function self._create_map_place_proposal() that will create the related Map Place Proposal (crm.team). At this iteration, this function requires those 4 form_submission_meta_data keys be present on the crm.lead:

  • legal_state (string) whith 2 values allowed: active/on_building
  • latitude (string with float format). Ex: 41.54055001520333
  • longitude (string with float format). Ex: 2.4538454750224026
  • address_txt (string). Ex: Can Fugarolas. c/Tolón, núm 8-18. Cantonada Colón.08302 Mataró

There is also added an action_server that allow to call this function from the Actions menú from the form/tree views of crm.lead model.

Merge request reports

Loading