Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] account_invoice_export #890

Merged
merged 26 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e8eb57a
[13.0][ADD] account_invoice_export
TDu Jun 16, 2020
4bb1bcd
[13.0][IMP] account_invoice_export
TDu Aug 14, 2020
b626236
Hide export button for supplier invoices
TDu Nov 9, 2020
6a96e8d
[IMP] account_invoice_export: black, isort, prettier
phuctranfxvn Dec 26, 2020
49bb6a1
[MIG] account_invoice_export: Migration to 14.0
May 23, 2021
9068505
[FW][14.0][IMP] account_invoice_export send button visibility
TDu Mar 10, 2021
8126e89
[UPD] Update account_invoice_export.pot
oca-travis Oct 15, 2021
91185f4
[UPD] README.rst
OCA-git-bot Oct 15, 2021
6db134b
account_invoice_export 14.0.1.1.0
OCA-git-bot Oct 15, 2021
d9d948c
[13.0][FIX] invoice export resend ebill
TDu Sep 10, 2021
0422b13
[13.0][IMP] account_invoice_export custom url
TDu Mar 18, 2021
cf65b5f
[13.0][FIX] account_invoice_export password or user empty
TDu Apr 3, 2021
f3bbcec
account_invoice_export 14.0.1.2.0
OCA-git-bot Nov 12, 2021
b0dd054
Fix account_invoice_export wrong assignment
TDu Dec 14, 2021
d3e9b5b
Fix account_invoice_export resend button visibility
TDu Feb 8, 2022
55c374d
account_invoice_export 14.0.1.2.1
OCA-git-bot May 19, 2022
4cb1e5d
account_invoice_export 14.0.1.2.2
OCA-git-bot May 19, 2022
f4235dd
Add job identity key on acount_invoice_export
TDu May 9, 2023
16081f0
account_invoice_export 14.0.1.2.3
OCA-git-bot May 11, 2023
8ba13fb
[UPD] README.rst
OCA-git-bot Sep 3, 2023
b325445
*: Fix pylint
etobella Oct 29, 2023
6736258
[BOT] post-merge updates
OCA-git-bot Oct 29, 2023
4136a4b
[IMP] account_invoice_export: black, isort, prettier
TDu Nov 22, 2023
dcad6ae
[MIG] account_invoice_export: Migration to 16
TDu Nov 22, 2023
a7ab113
account_invoice_export: improve tests
TDu Dec 14, 2023
0fdc7f1
Add account_invoice_export_job
TDu Dec 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions account_invoice_export/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
======================
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/16.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-16-0/edi-16-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=16.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:%2016.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 <[email protected]>
* Tam (Nguyen Duc) <[email protected]>

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/16.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": "16.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>
162 changes: 162 additions & 0 deletions account_invoice_export/i18n/account_invoice_export.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_export
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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
#: 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:ir.model.fields,field_description:account_invoice_export.field_account_move__display_name
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method__display_name
msgid "Display Name"
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
#: code:addons/account_invoice_export/models/account_move.py:0
#, python-format
msgid "HTTP error {} sending invoice to {}"
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_move__id
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method__id
msgid "ID"
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
#: 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
#: model:ir.model.fields,field_description:account_invoice_export.field_account_move____last_update
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_invoice_export
#: 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
#: 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 ""
2 changes: 2 additions & 0 deletions account_invoice_export/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import account_move
from . import transmit_method
Loading
Loading