Skip to content

Commit 4ac1b24

Browse files
committed
[MIG] account_einvoice_generate: migration to v17
1 parent 22264ce commit 4ac1b24

File tree

3 files changed

+11
-31
lines changed

3 files changed

+11
-31
lines changed

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": "16.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",

account_einvoice_generate/models/account_move.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
44

5-
from odoo import api, models
5+
from odoo import models
66

77

88
class AccountMove(models.Model):
@@ -13,10 +13,6 @@ def get_payment_identifier(self):
1313
self.ensure_one()
1414
return None
1515

16-
@api.model
17-
def _get_invoice_report_names(self):
18-
return ["account.report_invoice", "account.report_invoice_with_payments"]
19-
2016
def _xml_format_in_pdf_invoice(self):
2117
"""Returns the format if it is possible to generate the XML
2218
Otherwize return False"""

account_einvoice_generate/views/res_config_settings.xml

+9-25
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,15 @@
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
12-
expr="//div[@id='print_vendor_checks_setting_container']"
13-
position="after"
14-
>
15-
<h2>Electronic Invoices</h2>
16-
<div class="row mt16 o_settings_container" id="invoicing_settings">
17-
<div class="col-12 col-lg-8 o_setting_box" id="e-invoices">
18-
<div class="o_setting_left_pane" />
19-
<div class="o_setting_right_pane">
20-
<span class="o_form_label">Select Format</span>
21-
<span
22-
class="fa fa-lg fa-building-o"
23-
title="Values set here are company-specific."
24-
groups="base.group_multi_company"
25-
/>
26-
<div class="text-muted">
27-
XML format attached to your PDF customer invoices
28-
</div>
29-
<div class="text-muted" name="xml_format_in_pdf_invoice">
30-
<field name="xml_format_in_pdf_invoice" />
31-
</div>
32-
</div>
33-
</div>
34-
</div>
35-
</xpath>
11+
<setting id="default_setting_options" position="before">
12+
<setting
13+
id="e-invoices"
14+
string="Electronic Invoices"
15+
help="XML format attached to your PDF customer invoices"
16+
>
17+
<field name="xml_format_in_pdf_invoice" />
18+
</setting>
19+
</setting>
3620
</field>
3721
</record>
3822
</odoo>

0 commit comments

Comments
 (0)