Skip to content

Commit 01a79e7

Browse files
committed
[MIG] account_einvoice_generate: Migration to 17.0
1 parent 55af6c0 commit 01a79e7

13 files changed

+102
-67
lines changed

account_einvoice_generate/README.rst

+30-18
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,27 @@ Account e-invoice Generate
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github
20-
:target: https://github.com/OCA/edi/tree/14.0/account_einvoice_generate
20+
:target: https://github.com/OCA/edi/tree/17.0/account_einvoice_generate
2121
:alt: OCA/edi
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_einvoice_generate
23+
:target: https://translation.odoo-community.org/projects/edi-17-0/edi-17-0-account_einvoice_generate
2424
:alt: Translate me on Weblate
2525
.. |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=14.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi&target_branch=17.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
This is a technical module that ensure compatibility between the e-invoice generation modules of the `OCA/edi project <https://github.com/OCA/edi/>`_. It doesn't bring any feature by itself. You must also install one of the 2 OCA modules that generate electronic invoices:
31+
This is a technical module that ensure compatibility between the
32+
e-invoice generation modules of the `OCA/edi
33+
project <https://github.com/OCA/edi/>`__. It doesn't bring any feature
34+
by itself. You must also install one of the 2 OCA modules that generate
35+
electronic invoices:
3236

33-
* **account_invoice_ubl**: add support for the UBL format (Universal Business Language),
34-
* **account_invoice_facturx**: add support for the `Factur-X <http://fnfe-mpe.org/factur-x/factur-x_en/>`_ format.
37+
- **account_invoice_ubl**: add support for the UBL format (Universal
38+
Business Language),
39+
- **account_invoice_facturx**: add support for the
40+
`Factur-X <http://fnfe-mpe.org/factur-x/factur-x_en/>`__ format.
3541

3642
See the README of each module for more information.
3743

@@ -46,44 +52,50 @@ this module ensure that these 2 modules are compatible.
4652
Installation
4753
============
4854

49-
Before installing the module, you must **uninstall** the module **account_edi** from the official addons. As the account_edi module is auto-installable, it is certainly already installed on your Odoo database.
55+
Before installing the module, you must **uninstall** the module
56+
**account_edi** from the official addons. As the account_edi module is
57+
auto-installable, it is certainly already installed on your Odoo
58+
database.
5059

51-
For that, go to the *Apps* menu, remove the *Apps* filter, search for the module *account_edi* (the title of the module is *Import/Export Invoices From XML/PDF*). Then click on the button *Module info* and then on the button *Uninstall*.
60+
For that, go to the *Apps* menu, remove the *Apps* filter, search for
61+
the module *account_edi* (the title of the module is *Import/Export
62+
Invoices From XML/PDF*). Then click on the button *Module info* and then
63+
on the button *Uninstall*.
5264

5365
Configuration
5466
=============
5567

56-
The new configuration parameter *XML Format embedded in PDF invoice*
57-
is available in the menu *Invoicing > Configuration > Settings*.
68+
The new configuration parameter *XML Format embedded in PDF invoice* is
69+
available in the menu *Invoicing > Configuration > Settings*.
5870

5971
Bug Tracker
6072
===========
6173

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

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

6981
Credits
7082
=======
7183

7284
Authors
73-
~~~~~~~
85+
-------
7486

7587
* Akretion
7688
* Onestein
7789

7890
Contributors
79-
~~~~~~~~~~~~
91+
------------
8092

81-
* Alexis de Lattre <alexis.delattre@akretion.com>
82-
* Andrea Stirpe <a.stirpe@onestein.nl>
83-
* Shine IT <contact@openerp.cn>
93+
- Alexis de Lattre <alexis.delattre@akretion.com>
94+
- Andrea Stirpe <a.stirpe@onestein.nl>
95+
- Shine IT <contact@openerp.cn>
8496

8597
Maintainers
86-
~~~~~~~~~~~
98+
-----------
8799

88100
This module is maintained by the OCA.
89101

@@ -103,6 +115,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
103115

104116
|maintainer-alexis-via|
105117

106-
This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/14.0/account_einvoice_generate>`_ project on GitHub.
118+
This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/17.0/account_einvoice_generate>`_ project on GitHub.
107119

108120
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

account_einvoice_generate/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
{
66
"name": "Account e-invoice Generate",
7-
"version": "14.0.1.0.0",
7+
"version": "17.0.1.0.0",
88
"category": "Accounting & Finance",
99
"license": "AGPL-3",
1010
"summary": "Technical module to generate PDF invoices with " "embedded XML file",
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The new configuration parameter *XML Format embedded in PDF invoice* is
2+
available in the menu *Invoicing \> Configuration \> Settings*.

account_einvoice_generate/readme/CONFIGURE.rst

-2
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Alexis de Lattre \<<alexis.delattre@akretion.com>\>
2+
- Andrea Stirpe \<<a.stirpe@onestein.nl>\>
3+
- Shine IT \<<contact@openerp.cn>\>

account_einvoice_generate/readme/CONTRIBUTORS.rst

-3
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
This is a technical module that ensure compatibility between the
2+
e-invoice generation modules of the [OCA/edi
3+
project](https://github.com/OCA/edi/). It doesn't bring any feature by
4+
itself. You must also install one of the 2 OCA modules that generate
5+
electronic invoices:
6+
7+
- **account_invoice_ubl**: add support for the UBL format (Universal
8+
Business Language),
9+
- **account_invoice_facturx**: add support for the
10+
[Factur-X](http://fnfe-mpe.org/factur-x/factur-x_en/) format.
11+
12+
See the README of each module for more information.
13+
14+
These 2 modules are able to embed an XML file in the PDF invoice and
15+
this module ensure that these 2 modules are compatible.

account_einvoice_generate/readme/DESCRIPTION.rst

-9
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Before installing the module, you must **uninstall** the module
2+
**account_edi** from the official addons. As the account_edi module is
3+
auto-installable, it is certainly already installed on your Odoo
4+
database.
5+
6+
For that, go to the *Apps* menu, remove the *Apps* filter, search for
7+
the module *account_edi* (the title of the module is *Import/Export
8+
Invoices From XML/PDF*). Then click on the button *Module info* and then
9+
on the button *Uninstall*.

account_einvoice_generate/readme/INSTALL.rst

-3
This file was deleted.

account_einvoice_generate/static/description/index.html

+22-10
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,17 @@ <h1 class="title">Account e-invoice Generate</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:7b8baaa6b56214dab2817f6396c5d5236b3dd3d84b29e94abdf7a53b6fae8719
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/edi/tree/14.0/account_einvoice_generate"><img alt="OCA/edi" src="https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_einvoice_generate"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/edi&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373-
<p>This is a technical module that ensure compatibility between the e-invoice generation modules of the <a class="reference external" href="https://github.com/OCA/edi/">OCA/edi project</a>. It doesn’t bring any feature by itself. You must also install one of the 2 OCA modules that generate electronic invoices:</p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/edi/tree/17.0/account_einvoice_generate"><img alt="OCA/edi" src="https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/edi-17-0/edi-17-0-account_einvoice_generate"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/edi&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373+
<p>This is a technical module that ensure compatibility between the
374+
e-invoice generation modules of the <a class="reference external" href="https://github.com/OCA/edi/">OCA/edi
375+
project</a>. It doesn’t bring any feature
376+
by itself. You must also install one of the 2 OCA modules that generate
377+
electronic invoices:</p>
374378
<ul class="simple">
375-
<li><strong>account_invoice_ubl</strong>: add support for the UBL format (Universal Business Language),</li>
376-
<li><strong>account_invoice_facturx</strong>: add support for the <a class="reference external" href="http://fnfe-mpe.org/factur-x/factur-x_en/">Factur-X</a> format.</li>
379+
<li><strong>account_invoice_ubl</strong>: add support for the UBL format (Universal
380+
Business Language),</li>
381+
<li><strong>account_invoice_facturx</strong>: add support for the
382+
<a class="reference external" href="http://fnfe-mpe.org/factur-x/factur-x_en/">Factur-X</a> format.</li>
377383
</ul>
378384
<p>See the README of each module for more information.</p>
379385
<p>These 2 modules are able to embed an XML file in the PDF invoice and
@@ -394,20 +400,26 @@ <h1 class="title">Account e-invoice Generate</h1>
394400
</div>
395401
<div class="section" id="installation">
396402
<h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
397-
<p>Before installing the module, you must <strong>uninstall</strong> the module <strong>account_edi</strong> from the official addons. As the account_edi module is auto-installable, it is certainly already installed on your Odoo database.</p>
398-
<p>For that, go to the <em>Apps</em> menu, remove the <em>Apps</em> filter, search for the module <em>account_edi</em> (the title of the module is <em>Import/Export Invoices From XML/PDF</em>). Then click on the button <em>Module info</em> and then on the button <em>Uninstall</em>.</p>
403+
<p>Before installing the module, you must <strong>uninstall</strong> the module
404+
<strong>account_edi</strong> from the official addons. As the account_edi module is
405+
auto-installable, it is certainly already installed on your Odoo
406+
database.</p>
407+
<p>For that, go to the <em>Apps</em> menu, remove the <em>Apps</em> filter, search for
408+
the module <em>account_edi</em> (the title of the module is <em>Import/Export
409+
Invoices From XML/PDF</em>). Then click on the button <em>Module info</em> and then
410+
on the button <em>Uninstall</em>.</p>
399411
</div>
400412
<div class="section" id="configuration">
401413
<h1><a class="toc-backref" href="#toc-entry-2">Configuration</a></h1>
402-
<p>The new configuration parameter <em>XML Format embedded in PDF invoice</em>
403-
is available in the menu <em>Invoicing &gt; Configuration &gt; Settings</em>.</p>
414+
<p>The new configuration parameter <em>XML Format embedded in PDF invoice</em> is
415+
available in the menu <em>Invoicing &gt; Configuration &gt; Settings</em>.</p>
404416
</div>
405417
<div class="section" id="bug-tracker">
406418
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
407419
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/edi/issues">GitHub Issues</a>.
408420
In case of trouble, please check there if your issue has already been reported.
409421
If you spotted it first, help us to smash it by providing a detailed and welcomed
410-
<a class="reference external" href="https://github.com/OCA/edi/issues/new?body=module:%20account_einvoice_generate%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
422+
<a class="reference external" href="https://github.com/OCA/edi/issues/new?body=module:%20account_einvoice_generate%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
411423
<p>Do not contact contributors directly about support or help with technical issues.</p>
412424
</div>
413425
<div class="section" id="credits">
@@ -436,7 +448,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
436448
promote its widespread use.</p>
437449
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
438450
<p><a class="reference external image-reference" href="https://github.com/alexis-via"><img alt="alexis-via" src="https://github.com/alexis-via.png?size=40px" /></a></p>
439-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/edi/tree/14.0/account_einvoice_generate">OCA/edi</a> project on GitHub.</p>
451+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/edi/tree/17.0/account_einvoice_generate">OCA/edi</a> project on GitHub.</p>
440452
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
441453
</div>
442454
</div>

account_einvoice_generate/views/res_config_settings.xml

+17-21
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,23 @@
88
<field name="model">res.config.settings</field>
99
<field name="inherit_id" ref="account.res_config_settings_view_form" />
1010
<field name="arch" type="xml">
11-
<xpath expr="//div[@id='invoicing_settings']" position="after">
12-
<h2>Electronic Invoices</h2>
13-
<div class="row mt16 o_settings_container" id="invoicing_settings">
14-
<div class="col-12 col-lg-8 o_setting_box" id="e-invoices">
15-
<div class="o_setting_left_pane" />
16-
<div class="o_setting_right_pane">
17-
<span class="o_form_label">Select Format</span>
18-
<span
19-
class="fa fa-lg fa-building-o"
20-
title="Values set here are company-specific."
21-
groups="base.group_multi_company"
22-
/>
23-
<div class="text-muted">
24-
Select the format of your e-invoices.
25-
</div>
26-
<div class="text-muted" name="xml_format_in_pdf_invoice">
27-
<field name="xml_format_in_pdf_invoice" />
28-
</div>
29-
</div>
30-
</div>
31-
</div>
11+
<xpath expr="//block[@id='account_digitalization']" position="after">
12+
<block title="Electronic Invoices" id="invoicing_settings">
13+
<setting id="e-invoices">
14+
<span class="o_form_label">Select Format</span>
15+
<span
16+
class="fa fa-lg fa-building-o"
17+
title="Values set here are company-specific."
18+
groups="base.group_multi_company"
19+
/>
20+
<div class="text-muted">
21+
Select the format of your e-invoices.
22+
<div class="text-muted" name="xml_format_in_pdf_invoice">
23+
<field name="xml_format_in_pdf_invoice" />
24+
</div>
25+
</div>
26+
</setting>
27+
</block>
3228
</xpath>
3329
</field>
3430
</record>

0 commit comments

Comments
 (0)