odoo-addon-l10n-it-vat-registries 16.0.1.3.0.1__py3-none-any.whl → 18.0.1.0.0.5__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.
Files changed (22) hide show
  1. odoo/addons/l10n_it_vat_registries/README.rst +13 -6
  2. odoo/addons/l10n_it_vat_registries/__manifest__.py +2 -1
  3. odoo/addons/l10n_it_vat_registries/i18n/it.po +49 -87
  4. odoo/addons/l10n_it_vat_registries/i18n/l10n_it_vat_registries.pot +33 -9
  5. odoo/addons/l10n_it_vat_registries/models/account_journal.py +5 -0
  6. odoo/addons/l10n_it_vat_registries/models/account_tax_registry.py +6 -0
  7. odoo/addons/l10n_it_vat_registries/models/vat_registry.py +19 -0
  8. odoo/addons/l10n_it_vat_registries/readme/CONFIGURE.md +6 -0
  9. odoo/addons/l10n_it_vat_registries/readme/CREDITS.md +1 -0
  10. odoo/addons/l10n_it_vat_registries/report/report_registro_iva.xml +278 -212
  11. odoo/addons/l10n_it_vat_registries/report/reports.xml +0 -2
  12. odoo/addons/l10n_it_vat_registries/security/vat_registry_security.xml +0 -2
  13. odoo/addons/l10n_it_vat_registries/static/description/index.html +9 -4
  14. odoo/addons/l10n_it_vat_registries/views/account_journal_view.xml +1 -2
  15. odoo/addons/l10n_it_vat_registries/views/account_tax_registry_view.xml +15 -5
  16. odoo/addons/l10n_it_vat_registries/views/account_view.xml +0 -2
  17. odoo/addons/l10n_it_vat_registries/wizard/print_registro_iva.py +46 -2
  18. odoo/addons/l10n_it_vat_registries/wizard/print_registro_iva.xml +28 -10
  19. {odoo_addon_l10n_it_vat_registries-16.0.1.3.0.1.dist-info → odoo_addon_l10n_it_vat_registries-18.0.1.0.0.5.dist-info}/METADATA +19 -12
  20. {odoo_addon_l10n_it_vat_registries-16.0.1.3.0.1.dist-info → odoo_addon_l10n_it_vat_registries-18.0.1.0.0.5.dist-info}/RECORD +22 -22
  21. {odoo_addon_l10n_it_vat_registries-16.0.1.3.0.1.dist-info → odoo_addon_l10n_it_vat_registries-18.0.1.0.0.5.dist-info}/WHEEL +0 -0
  22. {odoo_addon_l10n_it_vat_registries-16.0.1.3.0.1.dist-info → odoo_addon_l10n_it_vat_registries-18.0.1.0.0.5.dist-info}/top_level.txt +0 -0
@@ -1,322 +1,388 @@
1
1
  <?xml version="1.0" encoding="utf-8" ?>
2
2
  <odoo>
3
-
4
- <template id="report_registro_iva">
5
- <t t-call="web.html_container">
6
- <t t-if="registry_type == 'customer'">
7
- <t t-set="title" t-value="tax_registry_name or 'Registro IVA vendite'" />
8
- </t>
9
- <t t-if="registry_type == 'supplier'">
10
- <t t-set="title" t-value="tax_registry_name or 'Registro IVA acquisti'" />
11
- </t>
12
- <t t-if="registry_type == 'corrispettivi'">
13
- <t t-set="title" t-value="tax_registry_name or 'Registro corrispettivi'" />
14
- </t>
15
- <t t-set="l10n_it_count_fiscal_year" t-value="year_footer" />
16
- <t t-call="l10n_it_account.internal_layout">
17
- <div class="article">
18
- <t t-set="print_details" t-value="1" />
19
- <t t-if="only_totals == True">
20
- <t t-set="print_details" t-value="0" />
21
- </t>
22
- <table style="width:100%; font-size: small;" cellspacing="0">
23
- <t
3
+ <template id="report_registro_iva">
4
+ <t t-call="web.html_container">
5
+ <t t-if="registry_type == 'customer'">
6
+ <t
7
+ t-set="title"
8
+ t-value="tax_registry_name or 'Registro IVA vendite'"
9
+ />
10
+ </t>
11
+ <t t-if="registry_type == 'supplier'">
12
+ <t
13
+ t-set="title"
14
+ t-value="tax_registry_name or 'Registro IVA acquisti'"
15
+ />
16
+ </t>
17
+ <t t-if="registry_type == 'corrispettivi'">
18
+ <t
19
+ t-set="title"
20
+ t-value="tax_registry_name or 'Registro corrispettivi'"
21
+ />
22
+ </t>
23
+ <t t-set="l10n_it_count_fiscal_year" t-value="year_footer" />
24
+ <t t-call="l10n_it_account.internal_layout">
25
+ <div class="article">
26
+ <t t-set="print_details" t-value="1" />
27
+ <t t-if="only_totals == True">
28
+ <t t-set="print_details" t-value="0" />
29
+ </t>
30
+ <table style="width:100%; font-size: small;" cellspacing="0">
31
+ <t
24
32
  t-set="columns_number"
25
33
  t-value="4 if registry_type == 'corrispettivi' else 9"
26
34
  />
27
- <thead>
28
- <tr class="first_th_row">
29
- <td
35
+ <thead>
36
+ <tr class="first_th_row">
37
+ <td
30
38
  t-att-colspan="columns_number"
31
39
  style="padding:10;"
32
40
  t-esc="tax_registry_name + ' Periodo di stampa dal ' + from_date + ' al ' + to_date"
33
41
  />
34
- </tr>
42
+ </tr>
35
43
 
36
- <t t-if="print_details > 0 ">
37
- <tr
44
+ <t t-if="print_details > 0 ">
45
+ <tr
38
46
  style="page-break-inside: avoid"
39
47
  name="vat_header_invoice"
40
48
  >
41
- <th class="left_without_line">REG. DATE</th>
42
- <th class="left_without_line">REG. NUM.</th>
43
- <t t-if="registry_type != 'corrispettivi'">
44
- <th class="left_without_line">REASON</th>
45
- <th class="left_without_line">INV. DATE</th>
46
- <th class="left_without_line">INV. NUM.</th>
47
- <th class="left_without_line">BUSINESS NAME</th>
48
- <th class="left_without_line">TIN</th>
49
- </t>
50
- <th class="left_without_line" />
51
- <th class="right_without_line">TOTAL</th>
52
- </tr>
53
- <tr style="page-break-inside: avoid" name="vat_header_tax">
54
- <t t-if="registry_type != 'corrispettivi'">
55
- <th class="left_with_line_bottom" />
56
- <th class="left_with_line_bottom" />
57
- <th class="left_with_line_bottom" />
58
- <th class="left_with_line_bottom" />
59
- <th class="left_with_line_bottom" />
60
- </t>
61
- <th class="left_with_line_bottom">Tax description</th>
62
- <th class="right_with_line_bottom">Taxable</th>
63
- <th class="right_with_line_bottom">Tax</th>
64
- <th class="right_with_line_bottom" />
65
- </tr>
66
- </t>
67
- </thead>
49
+ <th class="left_without_line">REG. DATE</th>
50
+ <th class="left_without_line">REG. NUM.</th>
51
+ <t t-if="registry_type != 'corrispettivi'">
52
+ <th class="left_without_line">REASON</th>
53
+ <th class="left_without_line">INV. DATE</th>
54
+ <th class="left_without_line">INV. NUM.</th>
55
+ <th class="left_without_line">BUSINESS NAME</th>
56
+ <th class="left_without_line">TIN</th>
57
+ </t>
58
+ <th class="left_without_line" />
59
+ <th class="right_without_line">TOTAL</th>
60
+ </tr>
61
+ <tr
62
+ style="page-break-inside: avoid"
63
+ name="vat_header_tax"
64
+ >
65
+ <t t-if="registry_type != 'corrispettivi'">
66
+ <th class="left_with_line_bottom" />
67
+ <th class="left_with_line_bottom" />
68
+ <th class="left_with_line_bottom" />
69
+ <th class="left_with_line_bottom" />
70
+ <th class="left_with_line_bottom" />
71
+ </t>
72
+ <th
73
+ class="left_with_line_bottom"
74
+ >Tax description</th>
75
+ <th class="right_with_line_bottom">Taxable</th>
76
+ <th class="right_with_line_bottom">Tax</th>
77
+ <th class="right_with_line_bottom" />
78
+ </tr>
79
+ </t>
80
+ </thead>
68
81
 
69
- <tbody>
70
- <t t-set="total_used_taxes" t-value="env['account.tax']" />
71
- <t t-foreach="get_move(doc_ids)" t-as="move">
72
- <t t-set="taxes_tuple" t-value="tax_lines(move, data)" />
73
- <t t-set="inv_taxes" t-value="taxes_tuple[0]" />
74
- <t t-set="used_taxes" t-value="taxes_tuple[1]" />
75
- <t
82
+ <tbody>
83
+ <t t-set="total_used_taxes" t-value="env['account.tax']" />
84
+ <t t-foreach="get_move(doc_ids)" t-as="move">
85
+ <t
86
+ t-set="taxes_tuple"
87
+ t-value="tax_lines(move, data)"
88
+ />
89
+ <t t-set="inv_taxes" t-value="taxes_tuple[0]" />
90
+ <t t-set="used_taxes" t-value="taxes_tuple[1]" />
91
+ <t
76
92
  t-set="total_used_taxes"
77
93
  t-value="total_used_taxes | used_taxes"
78
94
  />
79
- <t t-foreach="inv_taxes" t-as="line">
80
- <t t-if="entry_order == 'journal_date_name'">
81
- <t t-if="move.journal_id.id != sv_journal_id">
82
- <tr>
83
- <td t-att-colspan="columns_number">
84
- <h5
95
+ <t t-foreach="inv_taxes" t-as="line">
96
+ <t t-if="entry_order == 'journal_date_name'">
97
+ <t t-if="move.journal_id.id != sv_journal_id">
98
+ <tr>
99
+ <td t-att-colspan="columns_number">
100
+ <h5
85
101
  style="page-break-inside: avoid;border-top:1px solid;border-bottom:1px solid; color:DimGrey;"
86
102
  t-esc="move.journal_id.name"
87
103
  />
88
- </td>
89
- </tr>
104
+ </td>
105
+ </tr>
106
+ </t>
90
107
  </t>
91
- </t>
92
- <t t-set="sv_journal_id" t-value="move.journal_id.id" />
93
- <t t-if="print_details > 0 ">
94
108
  <t
109
+ t-set="sv_journal_id"
110
+ t-value="move.journal_id.id"
111
+ />
112
+ <t t-if="print_details > 0 ">
113
+ <t
95
114
  t-set="line_class_left"
96
115
  t-value="left_without_line"
97
116
  />
98
- <t
117
+ <t
99
118
  t-set="line_class_right"
100
119
  t-value="right_without_line"
101
120
  />
102
- <t t-if="line['index'] == 0">
103
- <tr
121
+ <t t-if="line['index'] == 0">
122
+ <tr
104
123
  style="page-break-inside: avoid; border:1px solid #fff;"
105
124
  name="vat_body_invoice"
106
125
  >
107
- <!-- Data registrazione -->
108
- <td class="left_without_line_bold"><div
126
+ <!-- Data registrazione -->
127
+ <td class="left_without_line_bold">
128
+ <div
109
129
  style="page-break-inside: avoid"
110
130
  t-esc="format_date(move.date,date_format)"
111
- /></td>
112
- <!-- Numero registrazione -->
113
- <td class="left_without_line_bold"><div
114
- style="page-break-inside: avoid"
115
- t-esc="move.name"
116
- /></td>
117
- <t t-if="registry_type != 'corrispettivi'">
118
- <!-- Causale -->
131
+ />
132
+ </td>
133
+ <!-- Numero registrazione -->
119
134
  <td class="left_without_line_bold">
120
135
  <div
136
+ style="page-break-inside: avoid"
137
+ t-esc="move.name"
138
+ />
139
+ </td>
140
+ <t
141
+ t-if="registry_type != 'corrispettivi'"
142
+ >
143
+ <!-- Causale -->
144
+ <td class="left_without_line_bold">
145
+ <div
121
146
  style="page-break-inside: avoid"
122
147
  t-esc="line['invoice_type']"
123
148
  />
124
- </td>
125
- <!-- Data fattura -->
126
- <td class="left_without_line_bold"><div
149
+ </td>
150
+ <!-- Data fattura -->
151
+ <td class="left_without_line_bold">
152
+ <div
127
153
  style="page-break-inside: avoid"
128
154
  t-esc="format_date(line['invoice_date'],date_format)"
129
- /></td>
130
- <t
155
+ />
156
+ </td>
157
+ <t
131
158
  t-if="move.journal_id.type == 'purchase'"
132
159
  >
133
- <!-- Numero fattura (fornitore)-->
134
- <td
160
+ <!-- Numero fattura (fornitore)-->
161
+ <td
135
162
  class="left_without_line_bold"
136
- ><div
163
+ >
164
+ <div
137
165
  style="page-break-inside: avoid"
138
166
  t-esc="move.ref"
139
- /></td>
140
- </t>
141
- <t
167
+ />
168
+ </td>
169
+ </t>
170
+ <t
142
171
  t-if="move.journal_id.type == 'sale'"
143
172
  >
144
- <!-- Numero fattura -->
145
- <td
173
+ <!-- Numero fattura -->
174
+ <td
146
175
  class="left_without_line_bold"
147
- ><div
176
+ >
177
+ <div
148
178
  style="page-break-inside: avoid"
149
179
  t-esc="move.name"
150
- /></td>
151
- </t>
152
- <!-- Ragione sociale -->
153
- <td class="left_without_line_bold">
154
- <t
180
+ />
181
+ </td>
182
+ </t>
183
+ <!-- Ragione sociale -->
184
+ <td class="left_without_line_bold">
185
+ <t
155
186
  t-set="partner"
156
187
  t-value="move.partner_id"
157
188
  />
158
- <div
189
+ <div
159
190
  style="page-break-inside: avoid"
160
191
  t-esc="partner.name"
161
192
  />
162
- <div
193
+ <div
163
194
  t-if="show_full_contact_addess"
164
195
  style="page-break-inside: avoid"
165
196
  t-esc="partner._display_address(without_company=True)"
166
197
  />
167
- </td>
168
- <!-- PIVA -->
169
- <td class="left_without_line_bold"><div
198
+ </td>
199
+ <!-- PIVA -->
200
+ <td class="left_without_line_bold">
201
+ <div
170
202
  style="page-break-inside: avoid"
171
203
  t-esc="partner.vat"
172
- /></td>
173
- </t>
174
- <td class="left_without_line" />
175
- <!-- totale -->
176
- <td class="right_without_line_bold"><div
204
+ />
205
+ </td>
206
+ </t>
207
+ <td class="left_without_line" />
208
+ <!-- totale -->
209
+ <td class="right_without_line_bold">
210
+ <div
177
211
  style="page-break-inside: avoid"
178
212
  t-esc="formatLang(env, invoice_total(move))"
179
- /></td>
180
- </tr>
181
- </t>
182
- <tr
213
+ />
214
+ </td>
215
+ </tr>
216
+ </t>
217
+ <tr
183
218
  style="page-break-inside: avoid; "
184
219
  name="vat_body_tax"
185
220
  >
186
- <t t-if="registry_type != 'corrispettivi'">
187
- <td class="left_without_line" />
188
- <td class="left_without_line" />
189
- <td class="left_without_line" />
190
- <td class="left_without_line" />
191
- <td class="left_without_line" />
192
- </t>
193
- <!-- imposta -->
194
- <td class="left_without_line"><div
221
+ <t t-if="registry_type != 'corrispettivi'">
222
+ <td class="left_without_line" />
223
+ <td class="left_without_line" />
224
+ <td class="left_without_line" />
225
+ <td class="left_without_line" />
226
+ <td class="left_without_line" />
227
+ </t>
228
+ <!-- imposta -->
229
+ <td class="left_without_line">
230
+ <div
195
231
  style="page-break-inside: avoid"
196
232
  t-esc="(line['tax_code_name'])"
197
- /></td>
198
- <!-- base -->
199
- <td class="right_without_line"><div
233
+ />
234
+ </td>
235
+ <!-- base -->
236
+ <td class="right_without_line">
237
+ <div
200
238
  style="page-break-inside: avoid"
201
239
  t-esc="formatLang(env, line['base'])"
202
- /></td>
203
- <!-- tax -->
204
- <td class="right_without_line"><div
240
+ />
241
+ </td>
242
+ <!-- tax -->
243
+ <td class="right_without_line">
244
+ <div
205
245
  style="page-break-inside: avoid"
206
246
  t-esc="formatLang(env, line['tax'])"
207
- /></td>
208
- <td class="left_without_line" />
209
- </tr>
247
+ />
248
+ </td>
249
+ <td class="left_without_line" />
250
+ </tr>
251
+ </t>
210
252
  </t>
211
253
  </t>
212
- </t>
213
- </tbody>
214
- </table>
215
- <br />
254
+ </tbody>
255
+ </table>
256
+ <br />
216
257
 
217
- <t t-set="tot_base" t-value="0" />
218
- <t t-set="tot_tax" t-value="0" />
219
- <t t-set="tot_ded" t-value="0" />
220
- <t t-set="tot_unded" t-value="0" />
221
- <div style="page-break-inside: avoid;">
222
- <table style="width:100%;">
223
- <tr>
224
- <td colspan="2" style="vertical-align:text-top;padding:10">
225
- <h3>Totals</h3>
226
- <table style="width:100%;">
227
- <thead>
228
- <tr>
229
- <th
258
+ <t t-set="tot_base" t-value="0" />
259
+ <t t-set="tot_tax" t-value="0" />
260
+ <t t-set="tot_ded" t-value="0" />
261
+ <t t-set="tot_unded" t-value="0" />
262
+ <div style="page-break-inside: avoid;">
263
+ <table style="width:100%;">
264
+ <tr>
265
+ <td
266
+ colspan="2"
267
+ style="vertical-align:text-top;padding:10"
268
+ >
269
+ <h3>Totals</h3>
270
+ <table style="width:100%;">
271
+ <thead>
272
+ <tr>
273
+ <th
230
274
  class="left_without_line_bold"
231
275
  >Description</th>
232
- <th
276
+ <th
233
277
  class="right_without_line_bold"
234
278
  >Taxable</th>
235
- <th class="right_without_line_bold">Tax</th>
236
- <th
279
+ <th
237
280
  class="right_without_line_bold"
238
- >Deductible</th>
239
- <th
240
- class="right_without_line_bold"
241
- >Non-Deductible</th>
242
- </tr>
243
- </thead>
244
- <t
281
+ >Tax</th>
282
+ <t t-if="registry_type == 'supplier'">
283
+ <th
284
+ class="right_without_line_bold"
285
+ >Deductible</th>
286
+ <th
287
+ class="right_without_line_bold"
288
+ >Non-Deductible</th>
289
+ </t>
290
+ </tr>
291
+ </thead>
292
+ <t
245
293
  t-foreach="total_used_taxes.sorted()"
246
294
  t-as="total_used_tax"
247
295
  >
248
- <t
296
+ <t
249
297
  t-set="tax_code_tuple"
250
298
  t-value="compute_totals_tax(total_used_tax, data)"
251
299
  />
252
- <t
300
+ <t
253
301
  t-set="tot_base"
254
302
  t-value="tot_base + tax_code_tuple[1]"
255
303
  />
256
- <t
257
- t-set="tot_tax"
258
- t-value="tot_tax + tax_code_tuple[2]"
259
- />
260
- <t
261
- t-set="tot_ded"
262
- t-value="tot_ded + tax_code_tuple[3]"
263
- />
264
- <t
265
- t-set="tot_unded"
266
- t-value="tot_unded + tax_code_tuple[4]"
267
- />
268
- <tr>
269
- <td
304
+ <t t-if="registry_type == 'customer'">
305
+ <!-- tax_code_tuple[5] is debit_balance -->
306
+ <t
307
+ t-set="tot_tax"
308
+ t-value="tot_tax + tax_code_tuple[5]"
309
+ />
310
+ </t>
311
+ <t t-if="registry_type == 'supplier'">
312
+ <!-- tax_code_tuple[6] is credit_balance, tax_code_tuple[4] is undeductible, which must be added to credit to get total tax amount -->
313
+ <t
314
+ t-set="tot_tax"
315
+ t-value="tot_tax + tax_code_tuple[6] + tax_code_tuple[4]"
316
+ />
317
+ <t
318
+ t-set="tot_ded"
319
+ t-value="tot_ded + tax_code_tuple[3]"
320
+ />
321
+ <t
322
+ t-set="tot_unded"
323
+ t-value="tot_unded + tax_code_tuple[4]"
324
+ />
325
+ </t>
326
+ <tr>
327
+ <td
270
328
  class="left_without_line"
271
329
  t-esc="tax_code_tuple[0]"
272
330
  />
273
- <td
331
+ <td
274
332
  class="right_without_line"
275
333
  t-esc="formatLang(env, tax_code_tuple[1])"
276
334
  />
277
- <td
335
+ <td
336
+ t-if="registry_type == 'customer'"
278
337
  class="right_without_line"
279
- t-esc="formatLang(env, tax_code_tuple[2])"
280
- />
281
- <td
282
- class="right_without_line"
283
- t-esc="formatLang(env, tax_code_tuple[3])"
338
+ t-esc="formatLang(env, tax_code_tuple[5])"
284
339
  />
340
+ <t t-if="registry_type == 'supplier'">
341
+ <td
342
+ class="right_without_line"
343
+ t-esc="formatLang(env, tax_code_tuple[6] + tax_code_tuple[4])"
344
+ />
345
+ <td
346
+ class="right_without_line"
347
+ t-esc="formatLang(env, tax_code_tuple[3])"
348
+ />
349
+ <td
350
+ class="right_without_line"
351
+ t-esc="formatLang(env, tax_code_tuple[4])"
352
+ />
353
+ </t>
354
+ </tr>
355
+ </t>
356
+ <tr>
285
357
  <td
286
- class="right_without_line"
287
- t-esc="formatLang(env, tax_code_tuple[4])"
288
- />
289
- </tr>
290
- </t>
291
- <tr>
292
- <td
293
358
  class="left_without_line_bold"
294
359
  >General Total EUR</td>
295
- <td
360
+ <td
296
361
  class="right_without_line_bold"
297
362
  t-esc="formatLang(env, tot_base)"
298
363
  />
299
- <td
364
+ <td
300
365
  class="right_without_line_bold"
301
366
  t-esc="formatLang(env, tot_tax)"
302
367
  />
303
- <td
304
- class="right_without_line_bold"
305
- t-esc="formatLang(env, tot_ded)"
306
- />
307
- <td
308
- class="right_without_line_bold"
309
- t-esc="formatLang(env, tot_unded)"
310
- />
311
- </tr>
312
- </table>
313
- </td>
314
- </tr>
315
- </table>
368
+ <t t-if="registry_type == 'supplier'">
369
+ <td
370
+ class="right_without_line_bold"
371
+ t-esc="formatLang(env, tot_ded)"
372
+ />
373
+ <td
374
+ class="right_without_line_bold"
375
+ t-esc="formatLang(env, tot_unded)"
376
+ />
377
+ </t>
378
+ </tr>
379
+ </table>
380
+ </td>
381
+ </tr>
382
+ </table>
383
+ </div>
316
384
  </div>
317
- </div>
385
+ </t>
318
386
  </t>
319
- </t>
320
- </template>
321
-
387
+ </template>
322
388
  </odoo>
@@ -1,6 +1,5 @@
1
1
  <?xml version="1.0" ?>
2
2
  <odoo noupdate="1">
3
-
4
3
  <record id="action_report_registro_iva" model="ir.actions.report">
5
4
  <field name="name">Invoices VAT Registry</field>
6
5
  <field name="model">account.move</field>
@@ -12,5 +11,4 @@
12
11
  ref="l10n_it_account.l10n_it_account_a4_landscape"
13
12
  />
14
13
  </record>
15
-
16
14
  </odoo>