Repository
OCA/edi · module folder · Try on Runboat
Module version
1.0.0
Category
Invoicing Management
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/edi
Last tracking update
2026-08-07 09:06:21
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Ricardoalso, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
ebill_postfinance
Description
The goal of this module is to allow sending invoices in different format
to external systems.

It extends the module account_invoice_transmit_method, adding options to
configure an url and credentials (Basic Authentication). In the UI a new
button Send ebill send the invoice pdf to the configure url.

The actual sending of the invoice is manage by queue.job and the
standard Odoo chatter on the invoice is used to inform the user on
success/failure of the dispatch.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
exception_sending_invoice exception_sending_invoice ir.ui.view qweb New
transmit_method_form Transmit Method Form view Export transmit.method form Inherits account_invoice_transmit_method.transmit_method_form
view_invoice_tree account.move tree Inherits account.view_invoice_tree
view_move_form Account Invoice Export on Invoice form view account.move form Inherits account.view_move_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (3)
  • invoice_export_confirmed Boolean
    copy=False
  • invoice_exported Boolean
    copy=False
  • send_through_http Boolean
    related='transmit_method_id.send_through_http'
Public methods (3)
  • export_invoice(self)
  • log_error_sending_invoice(self, values)
    Log an exception in invoice's chatter when sending fails. If an exception already exists it is update otherwise a new one is created.
  • log_success_sending_invoice(self)
    Log success sending invoice and clear existing exception, if any.

New fields (5)
  • destination_pwd Char
    copy=False string='Password'
  • destination_url Char
    string='Url'
  • destination_user Char
    copy=False string='User'
  • export_connection_timeout Integer
    default=10 help='Timeout in seconds, use 0 (zero) for no timeout.' string='Connection timeout'
  • send_through_http Boolean
    help='Adds a Send eBill button on the invoice' string='Enable send eBill'
Public methods (2)
  • get_transmission_http_header(self)
    Generate the HTTP header needed by the transmission method. For now only basic authentication is implemented.
  • get_transmission_url(self)
    Returns the base url used to export. Override it to add variable parameters.

Loading…

Loading…

Loading…

Loading…

Loading…