Skip to content

Commit aa38cf1

Browse files
committed
Merge PR #890 into 16.0
Signed-off-by simahawk
2 parents 40f164c + 0fdc7f1 commit aa38cf1

36 files changed

+1744
-0
lines changed

account_invoice_export/README.rst

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
======================
2+
Account Invoice Export
3+
======================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:ded419ed17e642aaf14f71f78778c50e6480162d6931a6431f2574ffafa15adf
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github
20+
:target: https://github.com/OCA/edi/tree/16.0/account_invoice_export
21+
:alt: OCA/edi
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/edi-16-0/edi-16-0-account_invoice_export
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
The goal of this module is to allow sending invoices in different format to external systems.
32+
33+
It extends the module `account_invoice_transmit_method`, adding options to configure an url and credentials (Basic Authentication).
34+
In the UI a new button `Send ebill` send the invoice pdf to the configure url.
35+
36+
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.
37+
38+
**Table of contents**
39+
40+
.. contents::
41+
:local:
42+
43+
Bug Tracker
44+
===========
45+
46+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi/issues>`_.
47+
In case of trouble, please check there if your issue has already been reported.
48+
If you spotted it first, help us to smash it by providing a detailed and welcomed
49+
`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**>`_.
50+
51+
Do not contact contributors directly about support or help with technical issues.
52+
53+
Credits
54+
=======
55+
56+
Authors
57+
~~~~~~~
58+
59+
* Camptocamp SA
60+
61+
Contributors
62+
~~~~~~~~~~~~
63+
64+
* Thierry Ducrest <thierry.ducrest@camptocamp.com>
65+
* Tam (Nguyen Duc) <tamnd@trobz.com>
66+
67+
Other credits
68+
~~~~~~~~~~~~~
69+
70+
The development of this module has been financially supported by:
71+
72+
* Camptocamp
73+
74+
Maintainers
75+
~~~~~~~~~~~
76+
77+
This module is maintained by the OCA.
78+
79+
.. image:: https://odoo-community.org/logo.png
80+
:alt: Odoo Community Association
81+
:target: https://odoo-community.org
82+
83+
OCA, or the Odoo Community Association, is a nonprofit organization whose
84+
mission is to support the collaborative development of Odoo features and
85+
promote its widespread use.
86+
87+
.. |maintainer-TDu| image:: https://github.com/TDu.png?size=40px
88+
:target: https://github.com/TDu
89+
:alt: TDu
90+
91+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
92+
93+
|maintainer-TDu|
94+
95+
This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/16.0/account_invoice_export>`_ project on GitHub.
96+
97+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

account_invoice_export/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2020 Camptocamp SA
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
3+
4+
{
5+
"name": "Account Invoice Export",
6+
"version": "16.0.1.0.0",
7+
"category": "Invoicing Management",
8+
"license": "AGPL-3",
9+
"development_status": "Beta",
10+
"summary": "",
11+
"author": "Camptocamp SA, Odoo Community Association (OCA)",
12+
"website": "https://github.com/OCA/edi",
13+
"depends": ["account", "account_invoice_transmit_method"],
14+
"maintainers": ["TDu"],
15+
"data": [
16+
"data/mail_activity_type.xml",
17+
"views/transmit_method.xml",
18+
"views/account_move.xml",
19+
"views/message_template.xml",
20+
],
21+
"installable": True,
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo noupdate="1">
3+
<record id="mail_activity_transmit_warning" model="mail.activity.type">
4+
<field name="name">Transmission Error</field>
5+
<field name="icon">fa-warning</field>
6+
<field name="delay_count">0</field>
7+
<field name="sequence">99</field>
8+
<field name="decoration_type">warning</field>
9+
</record>
10+
</odoo>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * account_invoice_export
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: account_invoice_export
17+
#: model:ir.model.fields,help:account_invoice_export.field_account_bank_statement_line__send_through_http
18+
#: model:ir.model.fields,help:account_invoice_export.field_account_move__send_through_http
19+
#: model:ir.model.fields,help:account_invoice_export.field_account_payment__send_through_http
20+
#: model:ir.model.fields,help:account_invoice_export.field_transmit_method__send_through_http
21+
msgid "Adds a Send eBill button on the invoice"
22+
msgstr ""
23+
24+
#. module: account_invoice_export
25+
#: code:addons/account_invoice_export/models/account_move.py:0
26+
#, python-format
27+
msgid "An error of type {} occured."
28+
msgstr ""
29+
30+
#. module: account_invoice_export
31+
#: model_terms:ir.ui.view,arch_db:account_invoice_export.transmit_method_form
32+
msgid ""
33+
"By default the PDF of the invoice will be sent using the connection "
34+
"parameters below (basic authenticaiton)."
35+
msgstr ""
36+
37+
#. module: account_invoice_export
38+
#: model:ir.model.fields,field_description:account_invoice_export.field_account_move__display_name
39+
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method__display_name
40+
msgid "Display Name"
41+
msgstr ""
42+
43+
#. module: account_invoice_export
44+
#: model_terms:ir.ui.view,arch_db:account_invoice_export.view_move_form
45+
msgid "Ebill has already been sent. Are you sure you want to send it again ?"
46+
msgstr ""
47+
48+
#. module: account_invoice_export
49+
#: model:ir.model.fields,field_description:account_invoice_export.field_account_bank_statement_line__send_through_http
50+
#: model:ir.model.fields,field_description:account_invoice_export.field_account_move__send_through_http
51+
#: model:ir.model.fields,field_description:account_invoice_export.field_account_payment__send_through_http
52+
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method__send_through_http
53+
msgid "Enable send eBill"
54+
msgstr ""
55+
56+
#. module: account_invoice_export
57+
#: model_terms:ir.ui.view,arch_db:account_invoice_export.exception_sending_invoice
58+
msgid "Error sending invoice to"
59+
msgstr ""
60+
61+
#. module: account_invoice_export
62+
#: code:addons/account_invoice_export/models/account_move.py:0
63+
#, python-format
64+
msgid "HTTP error {} sending invoice to {}"
65+
msgstr ""
66+
67+
#. module: account_invoice_export
68+
#: model_terms:ir.ui.view,arch_db:account_invoice_export.transmit_method_form
69+
msgid ""
70+
"Handling specific connection needs and/or exporting other files can be done "
71+
"through code."
72+
msgstr ""
73+
74+
#. module: account_invoice_export
75+
#: model:ir.model.fields,field_description:account_invoice_export.field_account_move__id
76+
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method__id
77+
msgid "ID"
78+
msgstr ""
79+
80+
#. module: account_invoice_export
81+
#: model:ir.model.fields,field_description:account_invoice_export.field_account_bank_statement_line__invoice_export_confirmed
82+
#: model:ir.model.fields,field_description:account_invoice_export.field_account_move__invoice_export_confirmed
83+
#: model:ir.model.fields,field_description:account_invoice_export.field_account_payment__invoice_export_confirmed
84+
msgid "Invoice Export Confirmed"
85+
msgstr ""
86+
87+
#. module: account_invoice_export
88+
#: model:ir.model.fields,field_description:account_invoice_export.field_account_bank_statement_line__invoice_exported
89+
#: model:ir.model.fields,field_description:account_invoice_export.field_account_move__invoice_exported
90+
#: model:ir.model.fields,field_description:account_invoice_export.field_account_payment__invoice_exported
91+
msgid "Invoice Exported"
92+
msgstr ""
93+
94+
#. module: account_invoice_export
95+
#: code:addons/account_invoice_export/models/account_move.py:0
96+
#, python-format
97+
msgid "Invoice successfuly sent to {}"
98+
msgstr ""
99+
100+
#. module: account_invoice_export
101+
#: model:ir.model,name:account_invoice_export.model_account_move
102+
msgid "Journal Entry"
103+
msgstr ""
104+
105+
#. module: account_invoice_export
106+
#: model:ir.model.fields,field_description:account_invoice_export.field_account_move____last_update
107+
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method____last_update
108+
msgid "Last Modified on"
109+
msgstr ""
110+
111+
#. module: account_invoice_export
112+
#: code:addons/account_invoice_export/models/account_move.py:0
113+
#, python-format
114+
msgid "Nothing done, invoice has already been exported before."
115+
msgstr ""
116+
117+
#. module: account_invoice_export
118+
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method__destination_pwd
119+
msgid "Password"
120+
msgstr ""
121+
122+
#. module: account_invoice_export
123+
#: model_terms:ir.ui.view,arch_db:account_invoice_export.view_move_form
124+
msgid "Resend eBill"
125+
msgstr ""
126+
127+
#. module: account_invoice_export
128+
#: model:ir.actions.server,name:account_invoice_export.action_send_ebill
129+
#: model_terms:ir.ui.view,arch_db:account_invoice_export.view_move_form
130+
msgid "Send eBill"
131+
msgstr ""
132+
133+
#. module: account_invoice_export
134+
#: model_terms:ir.ui.view,arch_db:account_invoice_export.exception_sending_invoice
135+
msgid "The failed job has the uuid"
136+
msgstr ""
137+
138+
#. module: account_invoice_export
139+
#: model:mail.activity.type,name:account_invoice_export.mail_activity_transmit_warning
140+
msgid "Transmission Error"
141+
msgstr ""
142+
143+
#. module: account_invoice_export
144+
#: model:ir.model,name:account_invoice_export.model_transmit_method
145+
msgid "Transmit Method of a document"
146+
msgstr ""
147+
148+
#. module: account_invoice_export
149+
#: code:addons/account_invoice_export/models/account_move.py:0
150+
#, python-format
151+
msgid "Transmit method is not configured to send through HTTP"
152+
msgstr ""
153+
154+
#. module: account_invoice_export
155+
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method__destination_url
156+
msgid "Url"
157+
msgstr ""
158+
159+
#. module: account_invoice_export
160+
#: model:ir.model.fields,field_description:account_invoice_export.field_transmit_method__destination_user
161+
msgid "User"
162+
msgstr ""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import account_move
2+
from . import transmit_method

0 commit comments

Comments
 (0)