Skip to content

Commit

Permalink
Merge pull request #698 from Som-Energia/NEW_udesa_crawler
Browse files Browse the repository at this point in the history
new udesa crawler
  • Loading branch information
anxodio authored Jul 31, 2024
2 parents 5769bbc + 5919d6e commit 5f90703
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
9 changes: 9 additions & 0 deletions som_crawlers/data/som_crawlers_config_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,15 @@
<field name="port">22</field>
<field name="user_ultima_modificacio" ref="base.user_admin"/>
</record>
<record model="som.crawlers.config" id="udesa_ftp_conf">
<field name="name">udesa_ftp</field>
<field name="crawler">Selenium</field>
<field name="days_of_margin">5</field>
<field name="pending_files_only" eval="False"/>
<field name="browser">chrome</field>
<field name="port">2222</field>
<field name="user_ultima_modificacio" ref="base.user_admin"/>
</record>
<!-- Variables de configuració-->
<record model="res.config" id="som_crawlers_massive_importer_python_path">
<field name="name">som_crawlers_massive_importer_python_path</field>
Expand Down
15 changes: 15 additions & 0 deletions som_crawlers/data/som_crawlers_step_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1029,5 +1029,20 @@
<field name="params">{}</field>
<field name="task_id" ref="descarregar_escuer"/>
</record>
<!-- UDESA -->
<record model="som.crawlers.task.step" id="pas_descarregar_ftp_udesa">
<field name="name">Descarregar fitxers FTP UDESA</field>
<field name="sequence">1</field>
<field name="function">download_ftp_files</field>
<field name="params">{"dir_list": ["Entrada","Hist_Salida","Salida"]}</field>
<field name="task_id" ref="descarregar_udesa_ftp"/>
</record>
<record model="som.crawlers.task.step" id="pas_importar_udesa">
<field name="name">Importar fitxers XML</field>
<field name="sequence">2</field>
<field name="function">import_ftp_xml_files</field>
<field name="params">{}</field>
<field name="task_id" ref="descarregar_udesa_ftp"/>
</record>
</data>
</openerp>
6 changes: 6 additions & 0 deletions som_crawlers/data/som_crawlers_task_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,12 @@
<field name="active">True</field>
<field name="configuracio_id" ref="escuer_conf"/>
</record>
<!-- UDESA -->
<record model="som.crawlers.task" id="descarregar_udesa_ftp">
<field name="name">Descarregar FTP UDESA</field>
<field name="active">True</field>
<field name="configuracio_id" ref="udesa_ftp_conf"/>
</record>
<!-- TASQUES D'EXPORTACIÓ -->
<record model="som.crawlers.task" id="carregar_anselmo">
<field name="name">Carregar Anselmo</field>
Expand Down

0 comments on commit 5f90703

Please sign in to comment.