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.

99 lines
4.4 KiB

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