Skip to content

Commit

Permalink
[FIX] pre-commit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-dacosta committed Jan 31, 2024
1 parent 06e320c commit 76f0dfc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 0 additions & 1 deletion purchase_edi_file/models/edi_transport_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class EdiTransportConfig(models.Model):
("external_location", "SFTP/FTP"),
("manual", "Manual"),
],
string="Edi Transfer Method",
)
edi_storage_backend_id = fields.Many2one(
"storage.backend", string="FTP/SFTP Location"
Expand Down
7 changes: 6 additions & 1 deletion purchase_edi_file/views/purchase_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
<field name="inherit_id" ref="purchase.purchase_order_form" />
<field name="arch" type="xml">
<button name="button_approve" position="after">
<button name="generate_and_send_edi_files" type="object" string="Generate EDI" states="sent,confirmed,approved,purchase"/>
<button
name="generate_and_send_edi_files"
type="object"
string="Generate EDI"
states="sent,confirmed,approved,purchase"
/>
</button>
</field>
</record>
Expand Down
8 changes: 6 additions & 2 deletions purchase_edi_file/views/purchase_order_line.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
<field name="view_mode">tree</field>
</record>

<menuitem id="purchase_line_export_menu" name="Purchase Line Export"
<menuitem
id="purchase_line_export_menu"
name="Purchase Line Export"
parent="purchase_edi_file.edi_purchase_configuration_menu"
action="purchase_line_export_action" sequence="5"/>
action="purchase_line_export_action"
sequence="5"
/>

</odoo>

0 comments on commit 76f0dfc

Please sign in to comment.