Commit 4ac1b24 1 parent 22264ce commit 4ac1b24 Copy full SHA for 4ac1b24
File tree 3 files changed +11
-31
lines changed
account_einvoice_generate
3 files changed +11
-31
lines changed Original file line number Diff line number Diff line change 4
4
5
5
{
6
6
"name" : "Account e-invoice Generate" ,
7
- "version" : "16 .0.1.0.0" ,
7
+ "version" : "17 .0.1.0.0" ,
8
8
"category" : "Accounting & Finance" ,
9
9
"license" : "AGPL-3" ,
10
10
"summary" : "Technical module to generate PDF invoices with " "embedded XML file" ,
Original file line number Diff line number Diff line change 2
2
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
3
3
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4
4
5
- from odoo import api , models
5
+ from odoo import models
6
6
7
7
8
8
class AccountMove (models .Model ):
@@ -13,10 +13,6 @@ def get_payment_identifier(self):
13
13
self .ensure_one ()
14
14
return None
15
15
16
- @api .model
17
- def _get_invoice_report_names (self ):
18
- return ["account.report_invoice" , "account.report_invoice_with_payments" ]
19
-
20
16
def _xml_format_in_pdf_invoice (self ):
21
17
"""Returns the format if it is possible to generate the XML
22
18
Otherwize return False"""
Original file line number Diff line number Diff line change 8
8
<field name =" model" >res.config.settings</field >
9
9
<field name =" inherit_id" ref =" account.res_config_settings_view_form" />
10
10
<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 >
36
20
</field >
37
21
</record >
38
22
</odoo >
You can’t perform that action at this time.
0 commit comments