You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
4.4 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo noupdate="1">
  3. <record id="location_ftp" model="external.file.location">
  4. <field name="name">TEST FTP</field>
  5. <field name="protocol">ftp</field>
  6. <field name="address">my-ftp-address</field>
  7. <field name="login">my-ftp-user</field>
  8. <field name="password">my-ftp-password</field>
  9. <field name="port">21</field>
  10. </record>
  11. <record id="location_sftp" model="external.file.location">
  12. <field name="name">TEST SFTP</field>
  13. <field name="protocol">sftp</field>
  14. <field name="address">my-sftp-address</field>
  15. <field name="login">my-sftp-user</field>
  16. <field name="password">my-sftp-password</field>
  17. <field name="port">22</field>
  18. </record>
  19. <record id="location_filestore" model="external.file.location">
  20. <field name="name">TEST File Store</field>
  21. <field name="protocol">file_store</field>
  22. <field name="filestore_rootpath">/</field>
  23. </record>
  24. <record id="ftp_import_task" model="external.file.task">
  25. <field name="method_type">import</field>
  26. <field name="location_id" eval="ref('external_file_location.location_ftp')"/>
  27. <field name="filename">test-import-ftp.txt</field>
  28. <field name="filepath">/home/user/test</field>
  29. <field name="name">Import FTP Task</field>
  30. </record>
  31. <record id="ftp_export_task" model="external.file.task">
  32. <field name="method_type">export</field>
  33. <field name="location_id" eval="ref('external_file_location.location_ftp')"/>
  34. <field name="filepath">/home/user/test</field>
  35. <field name="name">Export FTP Task</field>
  36. </record>
  37. <record id="sftp_import_task" model="external.file.task">
  38. <field name="method_type">import</field>
  39. <field name="location_id" eval="ref('external_file_location.location_sftp')"/>
  40. <field name="filename">test-import-sftp.txt</field>
  41. <field name="filepath">/home/user/test</field>
  42. <field name="name">Import SFTP Task</field>
  43. </record>
  44. <record id="sftp_export_task" model="external.file.task">
  45. <field name="method_type">export</field>
  46. <field name="location_id" eval="ref('external_file_location.location_sftp')"/>
  47. <field name="filepath">/home/user/test</field>
  48. <field name="name">Export SFTP Task</field>
  49. </record>
  50. <record id="filestore_import_task" model="external.file.task">
  51. <field name="method_type">import</field>
  52. <field name="location_id" eval="ref('external_file_location.location_filestore')"/>
  53. <field name="filename">test-import-filestore.txt</field>
  54. <field name="filepath">/home/user/test</field>
  55. <field name="name">Import filestore Task</field>
  56. </record>
  57. <record id="filestore_export_task" model="external.file.task">
  58. <field name="method_type">export</field>
  59. <field name="location_id" eval="ref('external_file_location.location_filestore')"/>
  60. <field name="filepath">/home/user/test</field>
  61. <field name="name">Export filestore Task</field>
  62. </record>
  63. <record id="ir_attachment_export_file_sftp" model="ir.attachment.metadata">
  64. <field name="name">Sftp text export file</field>
  65. <field name="datas">dGVzdCBzZnRwIGZpbGUgZXhwb3J0</field>
  66. <field name="datas_fname">sftp_test_export.txt</field>
  67. <field name="task_id" eval="ref('external_file_location.sftp_export_task')"/>
  68. <field name="file_type">export_external_location</field>
  69. </record>
  70. <record id="ir_attachment_export_file_ftp" model="ir.attachment.metadata">
  71. <field name="name">ftp text export file</field>
  72. <field name="datas">dGVzdCBmdHAgZmlsZSBleHBvcnQ=</field>
  73. <field name="datas_fname">ftp_test_export.txt</field>
  74. <field name="task_id" eval="ref('external_file_location.ftp_export_task')"/>
  75. <field name="file_type">export_external_location</field>
  76. </record>
  77. <record id="ir_attachment_export_file_filestore" model="ir.attachment.metadata">
  78. <field name="name">filestore text export file</field>
  79. <field name="datas">dGVzdCBmaWxlc3RvcmUgZmlsZSBleHBvcnQ=</field>
  80. <field name="datas_fname">filestore_test_export.txt</field>
  81. <field name="task_id" eval="ref('external_file_location.filestore_export_task')"/>
  82. <field name="file_type">export_external_location</field>
  83. </record>
  84. </odoo>