odoo-addon-l10n-it-fatturapa-out 16.0.1.1.0__py3-none-any.whl → 16.0.1.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,7 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
14
14
  <template id="account_invoice_it_dati_trasporto"><t /></template>
15
15
 
16
16
  <template id="account_invoice_it_dati_documento_correlato">
17
+ <t t-translation="off">
17
18
  <RiferimentoNumeroLinea t-if="doc.lineRef" t-out="doc.lineRef" />
18
19
  <IdDocumento t-if="doc.name" t-out="doc.name" />
19
20
  <Data t-if="doc.date" t-out="doc.date" />
@@ -21,8 +22,10 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
21
22
  <CodiceCommessaConvenzione t-if="doc.code" t-out="doc.code" />
22
23
  <CodiceCUP t-if="doc.cup" t-out="doc.cup" />
23
24
  <CodiceCIG t-if="doc.cig" t-out="doc.cig" />
25
+ </t>
24
26
  </template>
25
27
  <template id="account_invoice_it_dati_documenti_correlati">
28
+ <t t-translation="off">
26
29
  <t t-set="related_orders" t-value="record.related_documents.browse()" />
27
30
  <t t-set="related_contracts" t-value="record.related_documents.browse()" />
28
31
  <t t-set="related_agreements" t-value="record.related_documents.browse()" />
@@ -30,94 +33,96 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
30
33
  <t t-set="related_invoices" t-value="record.related_documents.browse()" />
31
34
  <t t-set="line_counter" t-value="0" />
32
35
  <t
33
- t-foreach="record.invoice_line_ids.sorted(key=lambda l: (-l.sequence, l.date, l.move_name, -l.id), reverse=True)"
34
- t-as="line"
35
- >
36
+ t-foreach="record.invoice_line_ids.sorted(key=lambda l: (-l.sequence, l.date, l.move_name, -l.id), reverse=True)"
37
+ t-as="line"
38
+ >
36
39
  <t t-set="line_counter" t-value="line_counter + 1" />
37
40
  <t
38
- t-foreach="line.related_documents.filtered(lambda doc: doc.type == 'order')"
39
- t-as="doc"
40
- >
41
+ t-foreach="line.related_documents.filtered(lambda doc: doc.type == 'order')"
42
+ t-as="doc"
43
+ >
41
44
  <t t-set="doc_lineRef" t-value="doc.setlineRef(line_counter)" />
42
45
  <t t-set="related_orders" t-value="related_orders + doc" />
43
46
  </t>
44
47
  <t
45
- t-foreach="line.related_documents.filtered(lambda doc: doc.type == 'contract')"
46
- t-as="doc"
47
- >
48
+ t-foreach="line.related_documents.filtered(lambda doc: doc.type == 'contract')"
49
+ t-as="doc"
50
+ >
48
51
  <t t-set="doc_lineRef" t-value="doc.setlineRef(line_counter)" />
49
52
  <t t-set="related_contracts" t-value="related_contracts + doc" />
50
53
  </t>
51
54
  <t
52
- t-foreach="line.related_documents.filtered(lambda doc: doc.type == 'agreement')"
53
- t-as="doc"
54
- >
55
+ t-foreach="line.related_documents.filtered(lambda doc: doc.type == 'agreement')"
56
+ t-as="doc"
57
+ >
55
58
  <t t-set="doc_lineRef" t-value="doc.setlineRef(line_counter)" />
56
59
  <t t-set="related_agreements" t-value="related_agreements + doc" />
57
60
  </t>
58
61
  <t
59
- t-foreach="line.related_documents.filtered(lambda doc: doc.type == 'reception')"
60
- t-as="doc"
61
- >
62
+ t-foreach="line.related_documents.filtered(lambda doc: doc.type == 'reception')"
63
+ t-as="doc"
64
+ >
62
65
  <t t-set="doc_lineRef" t-value="doc.setlineRef(line_counter)" />
63
66
  <t t-set="related_receptions" t-value="related_receptions + doc" />
64
67
  </t>
65
68
  <t
66
- t-foreach="line.related_documents.filtered(lambda doc: doc.type == 'invoice')"
67
- t-as="doc"
68
- >
69
+ t-foreach="line.related_documents.filtered(lambda doc: doc.type == 'invoice')"
70
+ t-as="doc"
71
+ >
69
72
  <t t-set="doc_lineRef" t-value="doc.setlineRef(line_counter)" />
70
73
  <t t-set="related_invoices" t-value="related_invoices + doc" />
71
74
  </t>
72
75
  </t>
73
76
  <t
74
- t-set="related_orders"
75
- t-value="related_orders + record.related_documents.filtered(lambda doc: doc.type == 'order')"
76
- />
77
+ t-set="related_orders"
78
+ t-value="related_orders + record.related_documents.filtered(lambda doc: doc.type == 'order')"
79
+ />
77
80
  <t
78
- t-set="related_contracts"
79
- t-value="related_contracts + record.related_documents.filtered(lambda doc: doc.type == 'contract')"
80
- />
81
+ t-set="related_contracts"
82
+ t-value="related_contracts + record.related_documents.filtered(lambda doc: doc.type == 'contract')"
83
+ />
81
84
  <t
82
- t-set="related_agreements"
83
- t-value="related_agreements + record.related_documents.filtered(lambda doc: doc.type == 'agreement')"
84
- />
85
+ t-set="related_agreements"
86
+ t-value="related_agreements + record.related_documents.filtered(lambda doc: doc.type == 'agreement')"
87
+ />
85
88
  <t
86
- t-set="related_receptions"
87
- t-value="related_receptions + record.related_documents.filtered(lambda doc: doc.type == 'reception')"
88
- />
89
+ t-set="related_receptions"
90
+ t-value="related_receptions + record.related_documents.filtered(lambda doc: doc.type == 'reception')"
91
+ />
89
92
  <t
90
- t-set="related_invoices"
91
- t-value="related_invoices + record.related_documents.filtered(lambda doc: doc.type == 'invoice')"
92
- />
93
+ t-set="related_invoices"
94
+ t-value="related_invoices + record.related_documents.filtered(lambda doc: doc.type == 'invoice')"
95
+ />
93
96
  <DatiOrdineAcquisto t-foreach="related_orders" t-as="doc">
94
97
  <t
95
- t-call="l10n_it_fatturapa_out.account_invoice_it_dati_documento_correlato"
96
- />
98
+ t-call="l10n_it_fatturapa_out.account_invoice_it_dati_documento_correlato"
99
+ />
97
100
  </DatiOrdineAcquisto>
98
101
  <DatiContratto t-foreach="related_contracts" t-as="doc">
99
102
  <t
100
- t-call="l10n_it_fatturapa_out.account_invoice_it_dati_documento_correlato"
101
- />
103
+ t-call="l10n_it_fatturapa_out.account_invoice_it_dati_documento_correlato"
104
+ />
102
105
  </DatiContratto>
103
106
  <DatiConvenzione t-foreach="related_agreements" t-as="doc">
104
107
  <t
105
- t-call="l10n_it_fatturapa_out.account_invoice_it_dati_documento_correlato"
106
- />
108
+ t-call="l10n_it_fatturapa_out.account_invoice_it_dati_documento_correlato"
109
+ />
107
110
  </DatiConvenzione>
108
111
  <DatiRicezione t-foreach="related_receptions" t-as="doc">
109
112
  <t
110
- t-call="l10n_it_fatturapa_out.account_invoice_it_dati_documento_correlato"
111
- />
113
+ t-call="l10n_it_fatturapa_out.account_invoice_it_dati_documento_correlato"
114
+ />
112
115
  </DatiRicezione>
113
116
  <DatiFattureCollegate t-foreach="related_invoices" t-as="doc">
114
117
  <t
115
- t-call="l10n_it_fatturapa_out.account_invoice_it_dati_documento_correlato"
116
- />
118
+ t-call="l10n_it_fatturapa_out.account_invoice_it_dati_documento_correlato"
119
+ />
117
120
  </DatiFattureCollegate>
121
+ </t>
118
122
  </template>
119
123
 
120
124
  <template id="account_invoice_line_it_sconto_maggiorazione">
125
+ <t t-translation="off">
121
126
  <t t-set="importo" t-value="get_importo(line)" />
122
127
  <ScontoMaggiorazione t-if="line.discount != 0 or importo != 0">
123
128
  <!-- [2.2.1.10] -->
@@ -132,13 +137,15 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
132
137
  <Percentuale t-out="format_numbers_two(abs(line.discount))" />
133
138
  </t>
134
139
  </ScontoMaggiorazione>
140
+ </t>
135
141
  </template>
136
142
 
137
143
  <template id="account_invoice_line_it_FatturaPA">
144
+ <t t-translation="off">
138
145
  <t
139
- t-set="line_is_section_note"
140
- t-value="line.display_type in ('line_section', 'line_note')"
141
- />
146
+ t-set="line_is_section_note"
147
+ t-value="line.display_type in ('line_section', 'line_note')"
148
+ />
142
149
  <t t-set="tax_ids" t-value="line.tax_ids and line.tax_ids[0]" />
143
150
  <DettaglioLinee>
144
151
  <NumeroLinea t-out="line_counter" />
@@ -150,171 +157,177 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
150
157
  </CodiceArticolo>
151
158
  <CodiceArticolo t-if="line.product_id.default_code">
152
159
  <CodiceTipo
153
- t-out="env['ir.config_parameter'].sudo().get_param('fatturapa.codicetipo.odoo', 'ODOO')"
154
- />
160
+ t-out="env['ir.config_parameter'].sudo().get_param('fatturapa.codicetipo.odoo', 'ODOO')"
161
+ />
155
162
  <CodiceValore t-out="line.product_id.default_code[:35]" />
156
163
  </CodiceArticolo>
157
164
  <Descrizione><t
158
- t-if="line.name"
159
- t-out="encode_for_export(line.name, 1000)"
160
- /><t t-if="not line.name" t-out="'NO NAME'" /></Descrizione>
165
+ t-if="line.name"
166
+ t-out="encode_for_export(line.name, 1000)"
167
+ /><t t-if="not line.name" t-out="'NO NAME'" /></Descrizione>
161
168
  <Quantita t-out="format_quantity(line)" />
162
169
  <UnitaMisura
163
- t-if="line.product_uom_id.name"
164
- t-out="unidecode(line.product_uom_id.name)"
165
- />
170
+ t-if="line.product_uom_id.name"
171
+ t-out="unidecode(line.product_uom_id.name)"
172
+ />
166
173
  <!-- <DataInizioPeriodo t-out=""/>-->
167
174
  <!-- <DataFinePeriodo t-out=""/>-->
168
175
  <PrezzoUnitario t-out="format_price(line)" />
169
176
  <t
170
- t-call="l10n_it_fatturapa_out.account_invoice_line_it_sconto_maggiorazione"
171
- />
177
+ t-call="l10n_it_fatturapa_out.account_invoice_line_it_sconto_maggiorazione"
178
+ />
172
179
  <PrezzoTotale
173
- t-out="format_monetary(fpa_to_eur(line.price_subtotal, record, line.currency_rate), euro)"
174
- />
180
+ t-out="format_monetary(fpa_to_eur(line.price_subtotal, record, line.currency_rate), euro)"
181
+ />
175
182
  <AliquotaIVA
176
- t-if="not line_is_section_note"
177
- t-out="format_numbers(tax_ids.amount)"
178
- />
183
+ t-if="not line_is_section_note"
184
+ t-out="format_numbers(tax_ids.amount)"
185
+ />
179
186
  <!-- Common best practice for note/section lines is to reference an existing tax line.
180
187
  The price for note/section lines is zero anyway. The original tax is ignored as
181
188
  it defaults to the company default tax which may or may not be present in
182
189
  the invoice.-->
183
190
  <t
184
- t-set="existing_tax_line"
185
- t-value="list(all_taxes[line.move_id.id].values())[0]"
186
- />
191
+ t-set="existing_tax_line"
192
+ t-value="list(all_taxes[line.move_id.id].values())[0]"
193
+ />
187
194
  <AliquotaIVA
188
- t-if="line_is_section_note"
189
- t-out="existing_tax_line['AliquotaIVA']"
190
- />
195
+ t-if="line_is_section_note"
196
+ t-out="existing_tax_line['AliquotaIVA']"
197
+ />
191
198
  <t t-call="l10n_it_fatturapa_out.account_invoice_line_ritenuta" />
192
199
  <Natura
193
- t-if="not line_is_section_note and tax_ids.kind_id.code"
194
- t-out="tax_ids.kind_id.code"
195
- />
200
+ t-if="not line_is_section_note and tax_ids.kind_id.code"
201
+ t-out="tax_ids.kind_id.code"
202
+ />
196
203
  <Natura
197
- t-if="line_is_section_note and existing_tax_line.get('Natura')"
198
- t-out="existing_tax_line['Natura']"
199
- />
204
+ t-if="line_is_section_note and existing_tax_line.get('Natura')"
205
+ t-out="existing_tax_line['Natura']"
206
+ />
200
207
  <RiferimentoAmministrazione
201
- t-if="line.admin_ref"
202
- t-out="line.admin_ref"
203
- />
208
+ t-if="line.admin_ref"
209
+ t-out="line.admin_ref"
210
+ />
204
211
  <AltriDatiGestionali
205
- t-if="tax_ids.kind_id.code == 'N2.1' and in_eu(line.move_id.partner_id)"
206
- >
212
+ t-if="tax_ids.kind_id.code == 'N2.1' and in_eu(line.move_id.partner_id)"
213
+ >
207
214
  <TipoDato>INVCONT</TipoDato>
208
215
  </AltriDatiGestionali>
209
216
  <AltriDatiGestionali
210
- t-if="not line_is_section_note and line.currency_id != euro"
211
- >
217
+ t-if="not line_is_section_note and line.currency_id != euro"
218
+ >
212
219
  <TipoDato>Valuta</TipoDato>
213
220
  <RiferimentoTesto t-out="line.currency_id.name" />
214
221
  <RiferimentoNumero
215
- t-out="format_price(line, original_currency=True)"
216
- />
222
+ t-out="format_price(line, original_currency=True)"
223
+ />
217
224
  <RiferimentoData t-out="format_date(record.date)" />
218
225
  </AltriDatiGestionali>
219
226
  </DettaglioLinee>
227
+ </t>
220
228
  </template>
221
229
 
222
230
  <template id="account_invoice_it_FatturaPA_sede">
231
+ <t t-translation="off">
223
232
  <t t-set="indirizzo"><t
224
- t-if="partner_id.street2"
225
- t-out="partner_id.street + '\n' + partner_id.street2"
226
- /><t t-if="not partner_id.street2" t-out="partner_id.street" /></t>
233
+ t-if="partner_id.street2"
234
+ t-out="partner_id.street + '\n' + partner_id.street2"
235
+ /><t t-if="not partner_id.street2" t-out="partner_id.street" /></t>
227
236
  <Indirizzo t-out="encode_for_export(indirizzo, 60)" />
228
237
  <!-- <NumeroCivico t-out=""/>-->
229
238
  <!-- XXX da controllare, if vecchio codice fa diversamente
230
239
  <CAP><t t-if="partner_id.country_id.code == 'IT'" t-out="partner_id.zip" /><t t-if="partner_id.country_id.code != 'IT'" t-out="'00000'" /></CAP>
231
240
  -->
232
241
  <CAP
233
- t-if="partner_id.codice_destinatario == 'XXXXXXX' or not partner_id.zip"
234
- t-out="'00000'"
235
- />
242
+ t-if="partner_id.codice_destinatario == 'XXXXXXX' or not partner_id.zip"
243
+ t-out="'00000'"
244
+ />
236
245
  <CAP
237
- t-if="partner_id.codice_destinatario != 'XXXXXXX' and partner_id.zip"
238
- t-out="partner_id.zip"
239
- />
246
+ t-if="partner_id.codice_destinatario != 'XXXXXXX' and partner_id.zip"
247
+ t-out="partner_id.zip"
248
+ />
240
249
  <Comune t-out="encode_for_export(partner_id.city, 60)" />
241
250
  <Provincia
242
- t-if="partner_id.country_id.code == 'IT'"
243
- t-out="partner_id.state_id.code"
244
- />
251
+ t-if="partner_id.country_id.code == 'IT'"
252
+ t-out="partner_id.state_id.code"
253
+ />
245
254
  <Provincia
246
- t-if="partner_id.codice_destinatario == 'XXXXXXX'"
247
- t-out="'EE'"
248
- />
255
+ t-if="partner_id.codice_destinatario == 'XXXXXXX'"
256
+ t-out="'EE'"
257
+ />
249
258
  <Nazione t-out="partner_id.country_id.code" />
259
+ </t>
250
260
  </template>
251
261
  <template id="account_invoice_it_dati_trasmissione">
262
+ <t t-translation="off">
252
263
  <t t-set="transmitter" t-value="company_id.e_invoice_transmitter_id" />
253
264
  <DatiTrasmissione>
254
265
  <IdTrasmittente>
255
266
  <t
256
- t-set="id_fiscale_iva"
257
- t-value="get_id_fiscale_iva(transmitter, prefer_fiscalcode=True)"
258
- />
267
+ t-set="id_fiscale_iva"
268
+ t-value="get_id_fiscale_iva(transmitter, prefer_fiscalcode=True)"
269
+ />
259
270
  <IdPaese t-out="id_fiscale_iva['id_paese']" />
260
271
  <IdCodice t-out="id_fiscale_iva['id_codice']" />
261
272
  </IdTrasmittente>
262
273
  <ProgressivoInvio t-out="progressivo_invio" />
263
274
  <FormatoTrasmissione t-out="formato_trasmissione" />
264
275
  <CodiceDestinatario
265
- t-if="codice_destinatario"
266
- t-out="codice_destinatario"
267
- />
276
+ t-if="codice_destinatario"
277
+ t-out="codice_destinatario"
278
+ />
268
279
  <ContattiTrasmittente>
269
280
  <Telefono
270
- t-if="format_phone(transmitter.phone)"
271
- t-out="format_phone(transmitter.phone)"
272
- />
281
+ t-if="format_phone(transmitter.phone)"
282
+ t-out="format_phone(transmitter.phone)"
283
+ />
273
284
  <Telefono
274
- t-if="not format_phone(transmitter.phone) and format_phone(transmitter.mobile)"
275
- t-out="format_phone(transmitter.mobile)"
276
- />
285
+ t-if="not format_phone(transmitter.phone) and format_phone(transmitter.mobile)"
286
+ t-out="format_phone(transmitter.mobile)"
287
+ />
277
288
  <Email t-if="transmitter.email" t-out="transmitter.email" />
278
289
  </ContattiTrasmittente>
279
290
  <PECDestinatario
280
- t-if="codice_destinatario == '0000000' and partner_id.pec_destinatario"
281
- t-out="partner_id.pec_destinatario"
282
- />
291
+ t-if="codice_destinatario == '0000000' and partner_id.pec_destinatario"
292
+ t-out="partner_id.pec_destinatario"
293
+ />
283
294
  </DatiTrasmissione>
295
+ </t>
284
296
  </template>
285
297
  <template id="account_invoice_it_cedente_prestatore">
298
+ <t t-translation="off">
286
299
  <CedentePrestatore>
287
300
  <DatiAnagrafici>
288
301
  <t
289
- t-set="id_fiscale_iva"
290
- t-value="get_id_fiscale_iva(partner_id)"
291
- />
302
+ t-set="id_fiscale_iva"
303
+ t-value="get_id_fiscale_iva(partner_id)"
304
+ />
292
305
  <IdFiscaleIVA>
293
306
  <IdPaese t-out="id_fiscale_iva['id_paese']" />
294
307
  <IdCodice t-out="id_fiscale_iva['id_codice']" />
295
308
  </IdFiscaleIVA>
296
309
  <CodiceFiscale
297
- t-if="partner_id.fiscalcode"
298
- t-out="partner_id.fiscalcode"
299
- />
310
+ t-if="partner_id.fiscalcode"
311
+ t-out="partner_id.fiscalcode"
312
+ />
300
313
  <Anagrafica>
301
314
  <Denominazione
302
- t-if="partner_id.is_company"
303
- t-out="partner_id.display_name"
304
- />
315
+ t-if="partner_id.is_company"
316
+ t-out="partner_id.display_name"
317
+ />
305
318
  <Nome
306
- t-if="not partner_id.is_company"
307
- t-out="partner_id.firstname"
308
- />
319
+ t-if="not partner_id.is_company"
320
+ t-out="partner_id.firstname"
321
+ />
309
322
  <Cognome
310
- t-if="not partner_id.is_company"
311
- t-out="partner_id.lastname"
312
- />
323
+ t-if="not partner_id.is_company"
324
+ t-out="partner_id.lastname"
325
+ />
313
326
  <!-- <Titolo t-out=""/>-->
314
327
  <CodEORI
315
- t-if="partner_id.eori_code"
316
- t-out="partner_id.eori_code"
317
- />
328
+ t-if="partner_id.eori_code"
329
+ t-out="partner_id.eori_code"
330
+ />
318
331
  </Anagrafica>
319
332
  <!-- <AlboProfessionale t-out=""/>-->
320
333
  <!-- <ProvinciaAlbo t-out=""/>-->
@@ -326,126 +339,130 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
326
339
  </DatiAnagrafici>
327
340
  <Sede>
328
341
  <t
329
- t-call="l10n_it_fatturapa_out.account_invoice_it_FatturaPA_sede"
330
- />
342
+ t-call="l10n_it_fatturapa_out.account_invoice_it_FatturaPA_sede"
343
+ />
331
344
  </Sede>
332
345
  <StabileOrganizzazione
333
- t-if="company_id and company_id.fatturapa_stabile_organizzazione"
334
- >
346
+ t-if="company_id and company_id.fatturapa_stabile_organizzazione"
347
+ >
335
348
  <t t-call="l10n_it_fatturapa_out.account_invoice_it_FatturaPA_sede">
336
349
  <t
337
- t-set="partner_id"
338
- t-value="company_id.fatturapa_stabile_organizzazione"
339
- />
350
+ t-set="partner_id"
351
+ t-value="company_id.fatturapa_stabile_organizzazione"
352
+ />
340
353
  </t>
341
354
  </StabileOrganizzazione>
342
355
  <IscrizioneREA
343
- t-if="company_id and company_id.rea_office and company_id.rea_code and company_id.rea_liquidation_state"
344
- >
356
+ t-if="company_id and company_id.rea_office and company_id.rea_code and company_id.rea_liquidation_state"
357
+ >
345
358
  <!--1.2.4-->
346
359
  <Ufficio
347
- t-if="company_id.rea_office.code"
348
- t-out="company_id.rea_office.code"
349
- />
360
+ t-if="company_id.rea_office.code"
361
+ t-out="company_id.rea_office.code"
362
+ />
350
363
  <NumeroREA t-out="company_id.rea_code" />
351
364
  <CapitaleSociale
352
- t-if="company_id.rea_capital"
353
- t-out="format_numbers_two(company_id.rea_capital)"
354
- />
365
+ t-if="company_id.rea_capital"
366
+ t-out="format_numbers_two(company_id.rea_capital)"
367
+ />
355
368
  <SocioUnico
356
- t-if="company_id.rea_member_type"
357
- t-out="company_id.rea_member_type"
358
- />
369
+ t-if="company_id.rea_member_type"
370
+ t-out="company_id.rea_member_type"
371
+ />
359
372
  <StatoLiquidazione t-out="company_id.rea_liquidation_state" />
360
373
  </IscrizioneREA>
361
374
  <Contatti t-if="company_id">
362
375
  <Telefono
363
- t-if="format_phone(company_id.partner_id.phone)"
364
- t-out="format_phone(company_id.partner_id.phone)"
365
- />
376
+ t-if="format_phone(company_id.partner_id.phone)"
377
+ t-out="format_phone(company_id.partner_id.phone)"
378
+ />
366
379
  <Telefono
367
- t-if="not format_phone(company_id.partner_id.phone) and format_phone(company_id.partner_id.mobile)"
368
- t-out="format_phone(company_id.partner_id.mobile)"
369
- />
380
+ t-if="not format_phone(company_id.partner_id.phone) and format_phone(company_id.partner_id.mobile)"
381
+ t-out="format_phone(company_id.partner_id.mobile)"
382
+ />
370
383
  <Email t-if="company_id.email" t-out="company_id.email" />
371
384
  </Contatti>
372
385
  <RiferimentoAmministrazione
373
- t-if="company_id and company_id.fatturapa_pub_administration_ref"
374
- t-out="company_id.fatturapa_pub_administration_ref"
375
- />
386
+ t-if="company_id and company_id.fatturapa_pub_administration_ref"
387
+ t-out="company_id.fatturapa_pub_administration_ref"
388
+ />
376
389
  </CedentePrestatore>
390
+ </t>
377
391
  </template>
378
392
  <template id="account_invoice_it_rappresentante_fiscale">
393
+ <t t-translation="off">
379
394
  <RappresentanteFiscale t-if="company_id.fatturapa_tax_representative">
380
395
  <!--1.3-->
381
396
  <DatiAnagrafici>
382
397
  <t
383
- t-set="id_fiscale_iva"
384
- t-value="get_id_fiscale_iva(company_id.fatturapa_tax_representative)"
385
- />
398
+ t-set="id_fiscale_iva"
399
+ t-value="get_id_fiscale_iva(company_id.fatturapa_tax_representative)"
400
+ />
386
401
  <IdFiscaleIVA>
387
402
  <IdPaese t-out="id_fiscale_iva['id_paese']" />
388
403
  <IdCodice t-out="id_fiscale_iva['id_codice']" />
389
404
  </IdFiscaleIVA>
390
405
  <CodiceFiscale
391
- t-if="company_id.fatturapa_tax_representative.fiscalcode"
392
- t-out="company_id.fatturapa_tax_representative.fiscalcode"
393
- />
406
+ t-if="company_id.fatturapa_tax_representative.fiscalcode"
407
+ t-out="company_id.fatturapa_tax_representative.fiscalcode"
408
+ />
394
409
  <Anagrafica>
395
410
  <Denominazione
396
- t-if="company_id.fatturapa_tax_representative.is_company"
397
- t-out="company_id.fatturapa_tax_representative.display_name"
398
- />
411
+ t-if="company_id.fatturapa_tax_representative.is_company"
412
+ t-out="company_id.fatturapa_tax_representative.display_name"
413
+ />
399
414
  <Nome
400
- t-if="not company_id.fatturapa_tax_representative.is_company"
401
- t-out="company_id.fatturapa_tax_representative.firstname"
402
- />
415
+ t-if="not company_id.fatturapa_tax_representative.is_company"
416
+ t-out="company_id.fatturapa_tax_representative.firstname"
417
+ />
403
418
  <Cognome
404
- t-if="not company_id.fatturapa_tax_representative.is_company"
405
- t-out="company_id.fatturapa_tax_representative.lastname"
406
- />
419
+ t-if="not company_id.fatturapa_tax_representative.is_company"
420
+ t-out="company_id.fatturapa_tax_representative.lastname"
421
+ />
407
422
  <!-- <Titolo t-out=""/>-->
408
423
  <CodEORI
409
- t-if="company_id.fatturapa_tax_representative.eori_code"
410
- t-out="company_id.fatturapa_tax_representative.eori_code"
411
- />
424
+ t-if="company_id.fatturapa_tax_representative.eori_code"
425
+ t-out="company_id.fatturapa_tax_representative.eori_code"
426
+ />
412
427
  </Anagrafica>
413
428
  </DatiAnagrafici>
414
429
  </RappresentanteFiscale>
430
+ </t>
415
431
  </template>
416
432
  <template id="account_invoice_it_cessionario_committente">
433
+ <t t-translation="off">
417
434
  <CessionarioCommittente>
418
435
  <DatiAnagrafici>
419
436
  <t
420
- t-set="id_fiscale_iva"
421
- t-value="get_id_fiscale_iva(partner_id.commercial_partner_id)"
422
- />
437
+ t-set="id_fiscale_iva"
438
+ t-value="get_id_fiscale_iva(partner_id.commercial_partner_id)"
439
+ />
423
440
  <IdFiscaleIVA t-if="id_fiscale_iva['id_codice']">
424
441
  <IdPaese t-out="id_fiscale_iva['id_paese']" />
425
442
  <IdCodice t-out="id_fiscale_iva['id_codice']" />
426
443
  </IdFiscaleIVA>
427
444
  <CodiceFiscale
428
- t-if="partner_id.commercial_partner_id.fiscalcode"
429
- t-out="partner_id.commercial_partner_id.fiscalcode"
430
- />
445
+ t-if="partner_id.commercial_partner_id.fiscalcode"
446
+ t-out="partner_id.commercial_partner_id.fiscalcode"
447
+ />
431
448
  <Anagrafica>
432
449
  <Denominazione
433
- t-if="partner_id.commercial_partner_id.is_company"
434
- t-out="encode_for_export(partner_id.commercial_partner_id.display_name, 80)"
435
- />
450
+ t-if="partner_id.commercial_partner_id.is_company"
451
+ t-out="encode_for_export(partner_id.commercial_partner_id.display_name, 80)"
452
+ />
436
453
  <Nome
437
- t-if="not partner_id.commercial_partner_id.is_company"
438
- t-out="encode_for_export(partner_id.commercial_partner_id.firstname, 60)"
439
- />
454
+ t-if="not partner_id.commercial_partner_id.is_company"
455
+ t-out="encode_for_export(partner_id.commercial_partner_id.firstname, 60)"
456
+ />
440
457
  <Cognome
441
- t-if="not partner_id.commercial_partner_id.is_company"
442
- t-out="encode_for_export(partner_id.commercial_partner_id.lastname, 60)"
443
- />
458
+ t-if="not partner_id.commercial_partner_id.is_company"
459
+ t-out="encode_for_export(partner_id.commercial_partner_id.lastname, 60)"
460
+ />
444
461
  <!-- <Titolo t-out=""/>-->
445
462
  <CodEORI
446
- t-if="partner_id.commercial_partner_id.eori_code"
447
- t-out="partner_id.commercial_partner_id.eori_code"
448
- />
463
+ t-if="partner_id.commercial_partner_id.eori_code"
464
+ t-out="partner_id.commercial_partner_id.eori_code"
465
+ />
449
466
  </Anagrafica>
450
467
  </DatiAnagrafici>
451
468
  <Sede>
@@ -454,52 +471,56 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
454
471
  </t>
455
472
  </Sede>
456
473
  </CessionarioCommittente>
474
+ </t>
457
475
  </template>
458
476
  <template id="account_invoice_it_terzo_intermediario_soggetto_emittente">
477
+ <t t-translation="off">
459
478
  <TerzoIntermediarioOSoggettoEmittente
460
- t-if="company_id.fatturapa_sender_partner"
461
- >
479
+ t-if="company_id.fatturapa_sender_partner"
480
+ >
462
481
  <DatiAnagrafici>
463
482
  <t
464
- t-set="id_fiscale_iva"
465
- t-value="get_id_fiscale_iva(company_id.fatturapa_sender_partner)"
466
- />
483
+ t-set="id_fiscale_iva"
484
+ t-value="get_id_fiscale_iva(company_id.fatturapa_sender_partner)"
485
+ />
467
486
  <IdFiscaleIVA>
468
487
  <IdPaese t-out="id_fiscale_iva['id_paese']" />
469
488
  <IdCodice t-out="id_fiscale_iva['id_codice']" />
470
489
  </IdFiscaleIVA>
471
490
  <CodiceFiscale
472
- t-if="company_id.fatturapa_sender_partner.fiscalcode"
473
- t-out="company_id.fatturapa_sender_partner.fiscalcode"
474
- />
491
+ t-if="company_id.fatturapa_sender_partner.fiscalcode"
492
+ t-out="company_id.fatturapa_sender_partner.fiscalcode"
493
+ />
475
494
  <Anagrafica>
476
495
  <Denominazione
477
- t-if="company_id.fatturapa_sender_partner.is_company"
478
- t-out="company_id.fatturapa_sender_partner.display_name"
479
- />
496
+ t-if="company_id.fatturapa_sender_partner.is_company"
497
+ t-out="company_id.fatturapa_sender_partner.display_name"
498
+ />
480
499
  <Nome
481
- t-if="not company_id.fatturapa_sender_partner.is_company"
482
- t-out="company_id.fatturapa_sender_partner.firstname"
483
- />
500
+ t-if="not company_id.fatturapa_sender_partner.is_company"
501
+ t-out="company_id.fatturapa_sender_partner.firstname"
502
+ />
484
503
  <Cognome
485
- t-if="not company_id.fatturapa_sender_partner.is_company"
486
- t-out="company_id.fatturapa_sender_partner.lastname"
487
- />
504
+ t-if="not company_id.fatturapa_sender_partner.is_company"
505
+ t-out="company_id.fatturapa_sender_partner.lastname"
506
+ />
488
507
  <!-- <Titolo t-out=""/>-->
489
508
  <CodEORI
490
- t-if="company_id.fatturapa_sender_partner.eori_code"
491
- t-out="company_id.fatturapa_sender_partner.eori_code"
492
- />
509
+ t-if="company_id.fatturapa_sender_partner.eori_code"
510
+ t-out="company_id.fatturapa_sender_partner.eori_code"
511
+ />
493
512
  </Anagrafica>
494
513
  </DatiAnagrafici>
495
514
  </TerzoIntermediarioOSoggettoEmittente>
515
+ </t>
496
516
  </template>
497
517
 
498
518
  <template id="account_invoice_it_fattura_elettronica_body">
519
+ <t t-translation="off">
499
520
  <t
500
- t-set="currency"
501
- t-value="record.currency_id or record.company_currency_id"
502
- />
521
+ t-set="currency"
522
+ t-value="record.currency_id or record.company_currency_id"
523
+ />
503
524
  <t t-set="euro" t-value="env.ref('base.EUR')" />
504
525
  <t t-set="bank" t-value="record.partner_bank_id" />
505
526
  <FatturaElettronicaBody>
@@ -508,32 +529,32 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
508
529
  <!--2.1.1-->
509
530
  <TipoDocumento t-out="record.fiscal_document_type_id.code" />
510
531
  <Divisa
511
- t-if="record.company_id.xml_divisa_value == 'keep_orig'"
512
- t-out="currency.name"
513
- />
532
+ t-if="record.company_id.xml_divisa_value == 'keep_orig'"
533
+ t-out="currency.name"
534
+ />
514
535
  <Divisa
515
- t-if="not record.company_id.xml_divisa_value == 'keep_orig'"
516
- t-out="euro.name"
517
- />
536
+ t-if="not record.company_id.xml_divisa_value == 'keep_orig'"
537
+ t-out="euro.name"
538
+ />
518
539
  <Data t-out="format_date(record.invoice_date)" />
519
540
  <Numero t-out="record.name" />
520
541
  <t
521
- t-call="l10n_it_fatturapa_out.account_invoice_it_dati_ritenuta"
522
- />
542
+ t-call="l10n_it_fatturapa_out.account_invoice_it_dati_ritenuta"
543
+ />
523
544
  <t
524
- t-call="l10n_it_fatturapa_out.account_invoice_it_dati_bollo"
525
- />
545
+ t-call="l10n_it_fatturapa_out.account_invoice_it_dati_bollo"
546
+ />
526
547
  <t
527
- t-call="l10n_it_fatturapa_out.account_invoice_it_dati_cassa_previdenziale"
528
- />
548
+ t-call="l10n_it_fatturapa_out.account_invoice_it_dati_cassa_previdenziale"
549
+ />
529
550
  <!-- <ScontoMaggiorazione>-->
530
551
  <!-- <Tipo t-out=""/>-->
531
552
  <!-- <Percentuale t-out=""/>-->
532
553
  <!-- <Importo t-out=""/>-->
533
554
  <!-- </ScontoMaggiorazione>-->
534
555
  <ImportoTotaleDocumento
535
- t-out="format_numbers_two(get_importo_totale(record))"
536
- />
556
+ t-out="format_numbers_two(get_importo_totale(record))"
557
+ />
537
558
  <!-- <Arrotondamento t-out=""/>-->
538
559
  <t t-foreach="get_causale(record)" t-as="causale">
539
560
  <Causale t-if="causale" t-out="causale" />
@@ -541,15 +562,15 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
541
562
  <Art73 t-if="record.company_id.fatturapa_art73">SI</Art73>
542
563
  </DatiGeneraliDocumento>
543
564
  <t
544
- t-call="l10n_it_fatturapa_out.account_invoice_it_dati_documenti_correlati"
545
- />
565
+ t-call="l10n_it_fatturapa_out.account_invoice_it_dati_documenti_correlati"
566
+ />
546
567
  <!-- <DatiSAL>-->
547
568
  <!-- <RiferimentoFase t-out=""/>-->
548
569
  <!-- </DatiSAL>-->
549
570
  <t t-call="l10n_it_fatturapa_out.account_invoice_it_dati_ddt" />
550
571
  <t
551
- t-call="l10n_it_fatturapa_out.account_invoice_it_dati_trasporto"
552
- />
572
+ t-call="l10n_it_fatturapa_out.account_invoice_it_dati_trasporto"
573
+ />
553
574
  <!-- <FatturaPrincipale>-->
554
575
  <!-- <NumeroFatturaPrincipale t-out=""/>-->
555
576
  <!-- <DataFatturaPrincipale t-out=""/>-->
@@ -559,38 +580,38 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
559
580
  <!-- Invoice lines. -->
560
581
  <t t-set="line_counter" t-value="0" />
561
582
  <t
562
- t-foreach="record.invoice_line_ids.sorted(key=lambda l: (-l.sequence, l.date, l.move_name, -l.id), reverse=True)"
563
- t-as="line"
564
- >
583
+ t-foreach="record.invoice_line_ids.sorted(key=lambda l: (-l.sequence, l.date, l.move_name, -l.id), reverse=True)"
584
+ t-as="line"
585
+ >
565
586
  <t t-set="line_counter" t-value="line_counter + 1" />
566
587
  <t
567
- t-call="l10n_it_fatturapa_out.account_invoice_line_it_FatturaPA"
568
- />
588
+ t-call="l10n_it_fatturapa_out.account_invoice_line_it_FatturaPA"
589
+ />
569
590
  </t>
570
591
  <t t-foreach="list(all_taxes[record.id].values())" t-as="tax_data">
571
592
  <DatiRiepilogo>
572
593
  <!--2.2.2-->
573
594
  <AliquotaIVA t-out="tax_data['AliquotaIVA']" />
574
595
  <Natura
575
- t-if="tax_data.get('Natura', False)"
576
- t-out="tax_data['Natura']"
577
- />
596
+ t-if="tax_data.get('Natura', False)"
597
+ t-out="tax_data['Natura']"
598
+ />
578
599
  <!-- <SpeseAccessorie t-out=""/>-->
579
600
  <!-- <Arrotondamento t-out=""/>-->
580
601
  <ImponibileImporto
581
- t-out="format_monetary(tax_data['ImponibileImporto'], euro)"
582
- />
602
+ t-out="format_monetary(tax_data['ImponibileImporto'], euro)"
603
+ />
583
604
  <Imposta
584
- t-out="format_monetary(tax_data['Imposta'], euro)"
585
- />
605
+ t-out="format_monetary(tax_data['Imposta'], euro)"
606
+ />
586
607
  <EsigibilitaIVA
587
- t-if="tax_data.get('EsigibilitaIVA', False)"
588
- t-out="tax_data['EsigibilitaIVA']"
589
- />
608
+ t-if="tax_data.get('EsigibilitaIVA', False)"
609
+ t-out="tax_data['EsigibilitaIVA']"
610
+ />
590
611
  <RiferimentoNormativo
591
- t-if="tax_data.get('RiferimentoNormativo', False)"
592
- t-out="encode_for_export(tax_data['RiferimentoNormativo'], 100)"
593
- />
612
+ t-if="tax_data.get('RiferimentoNormativo', False)"
613
+ t-out="encode_for_export(tax_data['RiferimentoNormativo'], 100)"
614
+ />
594
615
  </DatiRiepilogo>
595
616
  </t>
596
617
  </DatiBeniServizi>
@@ -602,32 +623,32 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
602
623
  <DatiPagamento t-if="record.invoice_payment_term_id and payments">
603
624
  <!-- <CondizioniPagamento><t t-if="len(payments) == 1">TP02</t><t t-else="">TP01</t></CondizioniPagamento>-->
604
625
  <CondizioniPagamento
605
- t-out="record.invoice_payment_term_id.fatturapa_pt_id.code"
606
- />
626
+ t-out="record.invoice_payment_term_id.fatturapa_pt_id.code"
627
+ />
607
628
  <t t-foreach="payments" t-as="payment">
608
629
  <DettaglioPagamento>
609
630
  <t
610
- t-set="company_bank_account"
611
- t-value="record.partner_bank_id"
612
- />
631
+ t-set="company_bank_account"
632
+ t-value="record.partner_bank_id"
633
+ />
613
634
  <!-- <Beneficiario t-out=""/>-->
614
635
  <ModalitaPagamento
615
- t-out="record.invoice_payment_term_id.fatturapa_pm_id.code"
616
- />
636
+ t-out="record.invoice_payment_term_id.fatturapa_pm_id.code"
637
+ />
617
638
  <!-- <DataRiferimentoTerminiPagamento t-out=""/>-->
618
639
  <!-- <GiorniTerminiPagamento t-out=""/>-->
619
640
  <DataScadenzaPagamento
620
- t-if="payment.date_maturity"
621
- t-out="format_date(payment.date_maturity)"
622
- />
641
+ t-if="payment.date_maturity"
642
+ t-out="format_date(payment.date_maturity)"
643
+ />
623
644
  <ImportoPagamento
624
- t-if="record.company_id.xml_divisa_value == 'keep_orig'"
625
- t-out="format_numbers_two(payment.amount_currency or payment.debit)"
626
- />
645
+ t-if="record.company_id.xml_divisa_value == 'keep_orig'"
646
+ t-out="format_numbers_two(payment.amount_currency or payment.debit)"
647
+ />
627
648
  <ImportoPagamento
628
- t-if="not record.company_id.xml_divisa_value == 'keep_orig'"
629
- t-out="format_numbers_two(fpa_to_eur(payment.amount_currency or payment.debit, record, payment.currency_rate))"
630
- />
649
+ t-if="not record.company_id.xml_divisa_value == 'keep_orig'"
650
+ t-out="format_numbers_two(fpa_to_eur(payment.amount_currency or payment.debit, record, payment.currency_rate))"
651
+ />
631
652
 
632
653
  <!-- <CodUfficioPostale t-out=""/>-->
633
654
  <!-- <CognomeQuietanzante t-out=""/>-->
@@ -635,19 +656,19 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
635
656
  <!-- <CFQuietanzante t-out=""/>-->
636
657
  <!-- <TitoloQuietanzante t-out=""/>-->
637
658
  <IstitutoFinanziario
638
- t-if="company_bank_account.bank_id"
639
- t-out="company_bank_account.bank_id.name[:80]"
640
- />
659
+ t-if="company_bank_account.bank_id"
660
+ t-out="company_bank_account.bank_id.name[:80]"
661
+ />
641
662
  <IBAN
642
- t-if="company_bank_account.acc_type == 'iban' and company_bank_account.sanitized_acc_number"
643
- t-out="company_bank_account.sanitized_acc_number"
644
- />
663
+ t-if="company_bank_account.acc_type == 'iban' and company_bank_account.sanitized_acc_number"
664
+ t-out="company_bank_account.sanitized_acc_number"
665
+ />
645
666
  <!-- <ABI t-out=""/>-->
646
667
  <!-- <CAB t-out=""/>-->
647
668
  <BIC
648
- t-if="company_bank_account.acc_type == 'bank' and company_bank_account.bank_id.bic"
649
- t-out="company_bank_account.bank_id.bic"
650
- />
669
+ t-if="company_bank_account.acc_type == 'bank' and company_bank_account.bank_id.bic"
670
+ t-out="company_bank_account.bank_id.bic"
671
+ />
651
672
  <!-- <ScontoPagamentoAnticipato t-out=""/>-->
652
673
  <!-- <DataLimitePagamentoAnticipato t-out=""/>-->
653
674
  <!-- <PenalitaPagamentiRitardati t-out=""/>-->
@@ -657,53 +678,56 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
657
678
  </t>
658
679
  </DatiPagamento>
659
680
  <Allegati
660
- t-foreach="record.fatturapa_doc_attachments.ir_attachment_id"
661
- t-as="doc_id"
662
- >
681
+ t-foreach="record.fatturapa_doc_attachments.ir_attachment_id"
682
+ t-as="doc_id"
683
+ >
663
684
  <NomeAttachment t-out="get_nome_attachment(doc_id)" />
664
685
  <!-- <AlgoritmoCompressione t-out=""/>-->
665
686
  <FormatoAttachment
666
- t-if="get_type_attachment(doc_id)"
667
- t-out="get_type_attachment(doc_id)"
668
- />
687
+ t-if="get_type_attachment(doc_id)"
688
+ t-out="get_type_attachment(doc_id)"
689
+ />
669
690
  <!-- <DescrizioneAttachment t-out=""/>-->
670
691
  <Attachment t-out="doc_id.datas.decode()" />
671
692
  </Allegati>
672
693
  </FatturaElettronicaBody>
694
+ </t>
673
695
  </template>
674
696
  <template id="account_invoice_it_FatturaPA_export">
697
+ <t t-translation="off">
675
698
  <ns1:FatturaElettronica
676
- xmlns:ns1="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2"
677
- t-att-versione="formato_trasmissione"
678
- >
699
+ xmlns:ns1="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2"
700
+ t-att-versione="formato_trasmissione"
701
+ >
679
702
  <FatturaElettronicaHeader>
680
703
  <t
681
- t-call="l10n_it_fatturapa_out.account_invoice_it_dati_trasmissione"
682
- />
704
+ t-call="l10n_it_fatturapa_out.account_invoice_it_dati_trasmissione"
705
+ />
683
706
  <t
684
- t-call="l10n_it_fatturapa_out.account_invoice_it_cedente_prestatore"
685
- >
707
+ t-call="l10n_it_fatturapa_out.account_invoice_it_cedente_prestatore"
708
+ >
686
709
  <t t-set="partner_id" t-value="company_id.partner_id" />
687
710
  </t>
688
711
  <t
689
- t-call="l10n_it_fatturapa_out.account_invoice_it_rappresentante_fiscale"
690
- />
712
+ t-call="l10n_it_fatturapa_out.account_invoice_it_rappresentante_fiscale"
713
+ />
691
714
  <t
692
- t-call="l10n_it_fatturapa_out.account_invoice_it_cessionario_committente"
693
- />
715
+ t-call="l10n_it_fatturapa_out.account_invoice_it_cessionario_committente"
716
+ />
694
717
  <t
695
- t-call="l10n_it_fatturapa_out.account_invoice_it_terzo_intermediario_soggetto_emittente"
696
- />
718
+ t-call="l10n_it_fatturapa_out.account_invoice_it_terzo_intermediario_soggetto_emittente"
719
+ />
697
720
  <SoggettoEmittente
698
- t-if="company_id.fatturapa_sender_partner"
699
- >TZ</SoggettoEmittente>
721
+ t-if="company_id.fatturapa_sender_partner"
722
+ >TZ</SoggettoEmittente>
700
723
  <!-- <SoggettoEmittente t-if="False" t-out="CC"/>-->
701
724
  </FatturaElettronicaHeader>
702
725
  <t t-foreach="invoices" t-as="record">
703
726
  <t
704
- t-call="l10n_it_fatturapa_out.account_invoice_it_fattura_elettronica_body"
705
- />
727
+ t-call="l10n_it_fatturapa_out.account_invoice_it_fattura_elettronica_body"
728
+ />
706
729
  </t>
707
730
  </ns1:FatturaElettronica>
731
+ </t>
708
732
  </template>
709
733
  </odoo>