Skip to content

Commit

Permalink
[IMP] Migrate to fs_storage
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-dacosta committed Jan 31, 2024
1 parent 76f0dfc commit a6bdabf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions purchase_edi_file/demo/edi_transport_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
<record id="supplier_12_config" model="edi.transport.config">
<field name="name">Demo config</field>
<field name="edi_transfer_method">external_location</field>
<field
name="edi_storage_backend_id"
ref="storage_backend.default_storage_backend"
/>
<field name="edi_storage_backend_id" ref="fs_storage.default_fs_storage" />
</record>

</odoo>
4 changes: 1 addition & 3 deletions purchase_edi_file/models/edi_transport_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ class EdiTransportConfig(models.Model):
("manual", "Manual"),
],
)
edi_storage_backend_id = fields.Many2one(
"storage.backend", string="FTP/SFTP Location"
)
edi_storage_backend_id = fields.Many2one("fs.storage", string="FTP/SFTP Location")
edi_mail_template_id = fields.Many2one(
"mail.template",
domain=[("model_id.model", "in", ("purchase.order", "res.partner"))],
Expand Down

0 comments on commit a6bdabf

Please sign in to comment.