Skip to content

Commit

Permalink
Merge PR #1037 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Jan 28, 2025
2 parents 9dc0add + fc57302 commit ed67005
Show file tree
Hide file tree
Showing 21 changed files with 1,242 additions and 0 deletions.
101 changes: 101 additions & 0 deletions account_invoice_export/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
======================
Account Invoice Export
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ded419ed17e642aaf14f71f78778c50e6480162d6931a6431f2574ffafa15adf
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github
:target: https://github.com/OCA/edi/tree/17.0/account_invoice_export
:alt: OCA/edi
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/edi-17-0/edi-17-0-account_invoice_export
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/edi/issues/new?body=module:%20account_invoice_export%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Camptocamp SA

Contributors
------------

- Thierry Ducrest <thierry.ducrest@camptocamp.com>
- Tam (Nguyen Duc) <tamnd@trobz.com>

Other credits
-------------

The development of this module has been financially supported by:

- Camptocamp

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-TDu| image:: https://github.com/TDu.png?size=40px
:target: https://github.com/TDu
:alt: TDu

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-TDu|

This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/17.0/account_invoice_export>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions account_invoice_export/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
22 changes: 22 additions & 0 deletions account_invoice_export/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

{
"name": "Account Invoice Export",
"version": "17.0.1.0.0",
"category": "Invoicing Management",
"license": "AGPL-3",
"development_status": "Beta",
"summary": "",
"author": "Camptocamp SA, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/edi",
"depends": ["account", "account_invoice_transmit_method"],
"maintainers": ["TDu"],
"data": [
"data/mail_activity_type.xml",
"views/transmit_method.xml",
"views/account_move.xml",
"views/message_template.xml",
],
"installable": True,
}
10 changes: 10 additions & 0 deletions account_invoice_export/data/mail_activity_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="mail_activity_transmit_warning" model="mail.activity.type">
<field name="name">Transmission Error</field>
<field name="icon">fa-warning</field>
<field name="delay_count">0</field>
<field name="sequence">99</field>
<field name="decoration_type">warning</field>
</record>
</odoo>
149 changes: 149 additions & 0 deletions account_invoice_export/i18n/account_invoice_export.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_export
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_invoice_export
#: model:ir.model.fields,help:account_invoice_export.field_account_bank_statement_line__send_through_http
#: model:ir.model.fields,help:account_invoice_export.field_account_move__send_through_http
#: model:ir.model.fields,help:account_invoice_export.field_account_payment__send_through_http
#: model:ir.model.fields,help:account_invoice_export.field_transmit_method__send_through_http
msgid "Adds a Send eBill button on the invoice"
msgstr ""

#. module: account_invoice_export
#. odoo-python
#: code:addons/account_invoice_export/models/account_move.py:0
#, python-format
msgid "An error of type {} occured."
msgstr ""

#. module: account_invoice_export
#: model_terms:ir.ui.view,arch_db:account_invoice_export.transmit_method_form
msgid ""
"By default the PDF of the invoice will be sent using the connection "
"parameters below (basic authenticaiton)."
msgstr ""

#. module: account_invoice_export
#: model_terms:ir.ui.view,arch_db:account_invoice_export.view_move_form
msgid "Ebill has already been sent. Are you sure you want to send it again ?"
msgstr ""

#. module: account_invoice_export
#: model:ir.model.fields,field_description:account_invoice_export.field_account_bank_statement_line__send_through_http
#: model:ir.model.fields,field_description:account_invoice_export.field_account_move__send_through_http
#: model:ir.model.fields,field_description:account_invoice_export.field_account_payment__send_through_http
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method__send_through_http
msgid "Enable send eBill"
msgstr ""

#. module: account_invoice_export
#: model_terms:ir.ui.view,arch_db:account_invoice_export.exception_sending_invoice
msgid "Error sending invoice to"
msgstr ""

#. module: account_invoice_export
#. odoo-python
#: code:addons/account_invoice_export/models/account_move.py:0
#, python-format
msgid "HTTP error {status_code} sending invoice to {method_name}"
msgstr ""

#. module: account_invoice_export
#: model_terms:ir.ui.view,arch_db:account_invoice_export.transmit_method_form
msgid ""
"Handling specific connection needs and/or exporting other files can be done "
"through code."
msgstr ""

#. module: account_invoice_export
#: model:ir.model.fields,field_description:account_invoice_export.field_account_bank_statement_line__invoice_export_confirmed
#: model:ir.model.fields,field_description:account_invoice_export.field_account_move__invoice_export_confirmed
#: model:ir.model.fields,field_description:account_invoice_export.field_account_payment__invoice_export_confirmed
msgid "Invoice Export Confirmed"
msgstr ""

#. module: account_invoice_export
#: model:ir.model.fields,field_description:account_invoice_export.field_account_bank_statement_line__invoice_exported
#: model:ir.model.fields,field_description:account_invoice_export.field_account_move__invoice_exported
#: model:ir.model.fields,field_description:account_invoice_export.field_account_payment__invoice_exported
msgid "Invoice Exported"
msgstr ""

#. module: account_invoice_export
#. odoo-python
#: code:addons/account_invoice_export/models/account_move.py:0
#, python-format
msgid "Invoice successfuly sent to {}"
msgstr ""

#. module: account_invoice_export
#: model:ir.model,name:account_invoice_export.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_invoice_export
#. odoo-python
#: code:addons/account_invoice_export/models/account_move.py:0
#, python-format
msgid "Nothing done, invoice has already been exported before."
msgstr ""

#. module: account_invoice_export
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method__destination_pwd
msgid "Password"
msgstr ""

#. module: account_invoice_export
#: model_terms:ir.ui.view,arch_db:account_invoice_export.view_move_form
msgid "Resend eBill"
msgstr ""

#. module: account_invoice_export
#: model:ir.actions.server,name:account_invoice_export.action_send_ebill
#: model_terms:ir.ui.view,arch_db:account_invoice_export.view_move_form
msgid "Send eBill"
msgstr ""

#. module: account_invoice_export
#: model_terms:ir.ui.view,arch_db:account_invoice_export.exception_sending_invoice
msgid "The failed job has the uuid"
msgstr ""

#. module: account_invoice_export
#: model:mail.activity.type,name:account_invoice_export.mail_activity_transmit_warning
msgid "Transmission Error"
msgstr ""

#. module: account_invoice_export
#: model:ir.model,name:account_invoice_export.model_transmit_method
msgid "Transmit Method of a document"
msgstr ""

#. module: account_invoice_export
#. odoo-python
#: code:addons/account_invoice_export/models/account_move.py:0
#, python-format
msgid "Transmit method is not configured to send through HTTP"
msgstr ""

#. module: account_invoice_export
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method__destination_url
msgid "Url"
msgstr ""

#. module: account_invoice_export
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method__destination_user
msgid "User"
msgstr ""
Loading

0 comments on commit ed67005

Please sign in to comment.