@@ -57,21 +57,21 @@ class AccountMoveInherit(models.Model):
57
57
string = "Preview link" ,
58
58
compute = "_compute_l10n_it_edi_attachment_preview_link" ,
59
59
)
60
- e_invoice_line_ids = fields .One2many (
61
- "einvoice .line" ,
60
+ l10n_it_edi_line_ids = fields .One2many (
61
+ "l10n_it_edi .line" ,
62
62
"invoice_id" ,
63
63
string = "E-Invoice Lines" ,
64
64
readonly = True ,
65
65
copy = False ,
66
66
)
67
- fatturapa_summary_ids = fields .One2many (
68
- "fatturapa.summary.data " ,
67
+ l10n_it_edi_summary_ids = fields .One2many (
68
+ "l10n_it_edi.summary_data " ,
69
69
"invoice_id" ,
70
70
string = "E-Invoice Summary Data" ,
71
71
copy = False ,
72
72
)
73
- activity_progress_ids = fields .One2many (
74
- "fatturapa.activity.progress " ,
73
+ l10n_it_edi_activity_progress_ids = fields .One2many (
74
+ "l10n_it_edi.activity_progress " ,
75
75
"invoice_id" ,
76
76
string = "E-Invoice Activity Progress" ,
77
77
copy = False ,
@@ -82,7 +82,7 @@ class AccountMoveInherit(models.Model):
82
82
help = "Possible total amount rounding on the document (negative sign allowed)" ,
83
83
copy = False ,
84
84
)
85
- l10n_it_art73 = fields .Boolean (
85
+ l10n_edi_it_art73 = fields .Boolean (
86
86
string = "Art. 73" ,
87
87
readonly = True ,
88
88
help = "Indicates whether the document has been issued according to "
@@ -92,37 +92,37 @@ class AccountMoveInherit(models.Model):
92
92
"documents with same number)" ,
93
93
copy = False ,
94
94
)
95
- l10n_it_related_invoice_code = fields .Char (
95
+ l10n_it_edi_related_invoice_code = fields .Char (
96
96
string = "Related Invoice Code" , copy = False
97
97
)
98
- l10n_it_related_invoice_date = fields .Date (
98
+ l10n_it_edi_related_invoice_date = fields .Date (
99
99
string = "Related Invoice Date" , copy = False
100
100
)
101
- l10n_it_stabile_organizzazione_indirizzo = fields .Char (
101
+ l10n_it_edi_stabile_organizzazione_indirizzo = fields .Char (
102
102
string = "Organization Address" ,
103
103
help = "The fields must be entered only when the seller/provider is "
104
104
"non-resident, with a stable organization in Italy. Address of "
105
105
"the stable organization in Italy (street name, square, etc.)" ,
106
106
readonly = True ,
107
107
copy = False ,
108
108
)
109
- l10n_it_stabile_organizzazione_civico = fields .Char (
109
+ l10n_it_edi_stabile_organizzazione_civico = fields .Char (
110
110
string = "Organization Street Number" ,
111
111
help = "Street number of the address (no need to specify if already "
112
112
"present in the address field)" ,
113
113
readonly = True ,
114
114
copy = False ,
115
115
)
116
- l10n_it_stabile_organizzazione_cap = fields .Char (
116
+ l10n_it_edi_stabile_organizzazione_cap = fields .Char (
117
117
string = "Organization ZIP" , help = "ZIP Code" , readonly = True , copy = False
118
118
)
119
- l10n_it_stabile_organizzazione_comune = fields .Char (
119
+ l10n_it_edi_stabile_organizzazione_comune = fields .Char (
120
120
string = "Organization Municipality" ,
121
121
help = "Municipality or city to which the Stable Organization refers" ,
122
122
readonly = True ,
123
123
copy = False ,
124
124
)
125
- l10n_it_stabile_organizzazione_provincia = fields .Char (
125
+ l10n_it_edi_stabile_organizzazione_provincia = fields .Char (
126
126
string = "Organization Province" ,
127
127
help = "Acronym of the Province to which the municipality indicated "
128
128
"in the information element 1.2.3.4 <Comune> belongs. "
@@ -131,7 +131,7 @@ class AccountMoveInherit(models.Model):
131
131
readonly = True ,
132
132
copy = False ,
133
133
)
134
- l10n_it_stabile_organizzazione_nazione = fields .Char (
134
+ l10n_it_edi_stabile_organizzazione_nazione = fields .Char (
135
135
string = "Organization Country" ,
136
136
help = "Country code according to the ISO 3166-1 alpha-2 code standard" ,
137
137
readonly = True ,
@@ -268,13 +268,13 @@ def _l10n_it_edi_get_extra_info(
268
268
self .l10n_it_edi_rounding = rounding
269
269
270
270
if get_text (body_tree , "//DatiGeneraliDocumento/Art73" ):
271
- self .l10n_it_art73 = True
271
+ self .l10n_edi_it_art73 = True
272
272
273
273
if elements_sal := body_tree .xpath (".//DatiGenerali/DatiSAL" ):
274
274
for element_sal in elements_sal :
275
- self .env ["fatturapa.activity.progress " ].create (
275
+ self .env ["l10n_it_edi.activity_progress " ].create (
276
276
{
277
- "fatturapa_activity_progress " : get_text (
277
+ "activity_progress " : get_text (
278
278
element_sal , ".//RiferimentoFase"
279
279
),
280
280
"invoice_id" : self .id ,
@@ -287,10 +287,10 @@ def _l10n_it_edi_get_extra_info(
287
287
for element_parent_invoice in elements_parent_invoice :
288
288
self .write (
289
289
{
290
- "l10n_it_related_invoice_code " : get_text (
290
+ "l10n_it_edi_related_invoice_code " : get_text (
291
291
element_parent_invoice , ".//NumeroFatturaPrincipale"
292
292
),
293
- "l10n_it_related_invoice_date " : get_date (
293
+ "l10n_it_edi_related_invoice_date " : get_date (
294
294
element_parent_invoice , ".//DataFatturaPrincipale"
295
295
),
296
296
}
@@ -309,7 +309,7 @@ def _l10n_it_edi_get_extra_info(
309
309
310
310
if elements_summary := body_tree .xpath (".//DatiBeniServizi/DatiRiepilogo" ):
311
311
for element_summary in elements_summary :
312
- self .env ["fatturapa.summary.data " ].create (
312
+ self .env ["l10n_it_edi.summary_data " ].create (
313
313
{
314
314
"tax_rate" : get_float (element_summary , ".//AliquotaIVA" ),
315
315
"non_taxable_nature" : get_text (element_summary , ".//Natura" ),
@@ -470,22 +470,22 @@ def _l10n_it_edi_search_partner(self, company, vat, codice_fiscale, email):
470
470
for element_stabile_organizzazione in elements_stabile_organizzazione :
471
471
self .write (
472
472
{
473
- "l10n_it_stabile_organizzazione_indirizzo " : get_text (
473
+ "l10n_it_edi_stabile_organizzazione_indirizzo " : get_text (
474
474
element_stabile_organizzazione , ".//Indirizzo"
475
475
),
476
- "l10n_it_stabile_organizzazione_civico " : get_date (
476
+ "l10n_it_edi_stabile_organizzazione_civico " : get_date (
477
477
element_stabile_organizzazione , ".//NumeroCivico"
478
478
),
479
- "l10n_it_stabile_organizzazione_cap " : get_date (
479
+ "l10n_it_edi_stabile_organizzazione_cap " : get_date (
480
480
element_stabile_organizzazione , ".//CAP"
481
481
),
482
- "l10n_it_stabile_organizzazione_comune " : get_date (
482
+ "l10n_it_edi_stabile_organizzazione_comune " : get_date (
483
483
element_stabile_organizzazione , ".//Comune"
484
484
),
485
- "l10n_it_stabile_organizzazione_provincia " : get_date (
485
+ "l10n_it_edi_stabile_organizzazione_provincia " : get_date (
486
486
element_stabile_organizzazione , ".//Provincia"
487
487
),
488
- "l10n_it_stabile_organizzazione_nazione " : get_date (
488
+ "l10n_it_edi_stabile_organizzazione_nazione " : get_date (
489
489
element_stabile_organizzazione , ".//Nazione"
490
490
),
491
491
}
@@ -511,40 +511,40 @@ def _l10n_it_edi_import_line(self, element, move_line, extra_info=None):
511
511
"invoice_line_id" : move_line .id ,
512
512
"invoice_id" : move_line .move_id .id ,
513
513
}
514
- einvoice_line = self .env ["einvoice .line" ].create (vals )
514
+ einvoice_line = self .env ["l10n_it_edi .line" ].create (vals )
515
515
516
516
if elements_code := element .xpath (".//CodiceArticolo" ):
517
517
for element_code in elements_code :
518
- self .env ["fatturapa.article.code " ].create (
518
+ self .env ["l10n_it_edi.article_code " ].create (
519
519
{
520
520
"name" : get_text (element_code , ".//CodiceTipo" ),
521
521
"code_val" : get_text (element_code , ".//CodiceValore" ),
522
- "e_invoice_line_id " : einvoice_line .id ,
522
+ "l10n_it_edi_line_id " : einvoice_line .id ,
523
523
}
524
524
)
525
525
526
526
if elements_discount := element .xpath (".//ScontoMaggiorazione" ):
527
527
for element_discount in elements_discount :
528
- self .env ["discount.rise.price " ].create (
528
+ self .env ["l10n_it_edi.discount_rise_price " ].create (
529
529
{
530
530
"name" : get_text (element_discount , ".//Tipo" ),
531
531
"percentage" : get_float (element_discount , ".//Percentuale" ),
532
532
"amount" : get_float (element_discount , ".//Importo" ),
533
- "e_invoice_line_id " : einvoice_line .id ,
533
+ "l10n_it_edi_line_id " : einvoice_line .id ,
534
534
}
535
535
)
536
536
537
537
if elements_other_data := element .xpath (".//AltriDatiGestionali" ):
538
538
for element_other_data in elements_other_data :
539
- self .env ["einvoice.line.other.data " ].create (
539
+ self .env ["l10n_it_edi.line_other_data " ].create (
540
540
{
541
541
"name" : get_text (element_other_data , ".//TipoDato" ),
542
542
"text_ref" : get_text (element_other_data , ".//RiferimentoTesto" ),
543
543
"num_ref" : get_float (
544
544
element_other_data , ".//RiferimentoNumero"
545
545
),
546
546
"date_ref" : get_date (element_other_data , ".//RiferimentoData" ),
547
- "e_invoice_line_id " : einvoice_line .id ,
547
+ "l10n_it_edi_line_id " : einvoice_line .id ,
548
548
}
549
549
)
550
550
0 commit comments