odoo-addon-l10n-it-account-stamp 16.0.1.0.4.3__py3-none-any.whl → 16.0.1.1.0.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- odoo/addons/l10n_it_account_stamp/README.rst +4 -1
- odoo/addons/l10n_it_account_stamp/__manifest__.py +1 -1
- odoo/addons/l10n_it_account_stamp/i18n/it.po +52 -17
- odoo/addons/l10n_it_account_stamp/i18n/l10n_it_account_stamp.pot +35 -5
- odoo/addons/l10n_it_account_stamp/models/account_move.py +22 -1
- odoo/addons/l10n_it_account_stamp/readme/CONTRIBUTORS.md +2 -0
- odoo/addons/l10n_it_account_stamp/static/description/index.html +12 -5
- odoo/addons/l10n_it_account_stamp/tests/test_account_stamp_invoicing.py +25 -0
- odoo/addons/l10n_it_account_stamp/views/account_move_view.xml +33 -11
- {odoo_addon_l10n_it_account_stamp-16.0.1.0.4.3.dist-info → odoo_addon_l10n_it_account_stamp-16.0.1.1.0.1.dist-info}/METADATA +5 -2
- {odoo_addon_l10n_it_account_stamp-16.0.1.0.4.3.dist-info → odoo_addon_l10n_it_account_stamp-16.0.1.1.0.1.dist-info}/RECORD +13 -13
- {odoo_addon_l10n_it_account_stamp-16.0.1.0.4.3.dist-info → odoo_addon_l10n_it_account_stamp-16.0.1.1.0.1.dist-info}/WHEEL +1 -1
- {odoo_addon_l10n_it_account_stamp-16.0.1.0.4.3.dist-info → odoo_addon_l10n_it_account_stamp-16.0.1.1.0.1.dist-info}/top_level.txt +0 -0
@@ -7,7 +7,7 @@ ITA - Imposta di bollo
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
8
8
|
!! changes will be overwritten. !!
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
10
|
-
!! source digest: sha256:
|
10
|
+
!! source digest: sha256:a81fbb48d1af1704b5039d1b6239009736a6f4983e7441b65359d85f54064061
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
12
12
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
@@ -152,6 +152,9 @@ Contributors
|
|
152
152
|
- Marco Colombo <https://github.com/TheMule71>
|
153
153
|
- Gianmarco Conte <gconte@dinamicheaziendali.it>
|
154
154
|
- Giovanni Serra <giovanni@gslab.it>
|
155
|
+
- `Aion Tech <https://aiontech.company/>`__:
|
156
|
+
|
157
|
+
- Simone Rubino <simone.rubino@aion-tech.it>
|
155
158
|
|
156
159
|
Maintainers
|
157
160
|
-----------
|
@@ -17,21 +17,38 @@ msgstr ""
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
18
18
|
"X-Generator: Weblate 4.17\n"
|
19
19
|
|
20
|
+
#. module: l10n_it_account_stamp
|
21
|
+
#: model_terms:ir.ui.view,arch_db:l10n_it_account_stamp.account_move_form_stamp
|
22
|
+
msgid ""
|
23
|
+
"<span attrs=\"{'invisible': [('state', '=', 'draft')]}\">\n"
|
24
|
+
" Stamp can only be charged to customer when "
|
25
|
+
"invoice is in draft state\n"
|
26
|
+
" </span>"
|
27
|
+
msgstr ""
|
28
|
+
|
29
|
+
#. module: l10n_it_account_stamp
|
30
|
+
#: model_terms:ir.ui.view,arch_db:l10n_it_account_stamp.account_move_form_stamp
|
31
|
+
msgid ""
|
32
|
+
"<span attrs=\"{'invisible': [('tax_stamp_line_present', '=', False)]}\">\n"
|
33
|
+
" Stamp charged to customer\n"
|
34
|
+
" </span>"
|
35
|
+
msgstr ""
|
36
|
+
|
20
37
|
#. module: l10n_it_account_stamp
|
21
38
|
#: model_terms:ir.ui.view,arch_db:l10n_it_account_stamp.view_account_config_settings_stamp
|
22
39
|
msgid ""
|
23
40
|
"<span class=\"o_form_label\">Configuration for Tax stamp\n"
|
24
41
|
" </span>\n"
|
25
|
-
" <span class=\"fa fa-lg fa-building-o\"
|
26
|
-
"
|
27
|
-
"company-specific.\" groups=\"base.group_multi_company\" role=\"img\"/>"
|
42
|
+
" <span class=\"fa fa-lg fa-building-o\" "
|
43
|
+
"title=\"Values set here are company-specific.\" aria-label=\"Values set here "
|
44
|
+
"are company-specific.\" groups=\"base.group_multi_company\" role=\"img\"/>"
|
28
45
|
msgstr ""
|
29
46
|
"<span class=\"o_form_label\">Configurazione per l'imposta di bollo\n"
|
30
47
|
" </span>\n"
|
31
48
|
" <span class=\"fa fa-lg fa-building-o\" title=\"I "
|
32
49
|
"valori impostati qui sono specifici per azienda.\" aria-label=\"I valori "
|
33
|
-
"impostati qui sono specifici per azienda.\" groups=\"base.
|
34
|
-
"\" role=\"img\"/>"
|
50
|
+
"impostati qui sono specifici per azienda.\" groups=\"base."
|
51
|
+
"group_multi_company\" role=\"img\"/>"
|
35
52
|
|
36
53
|
#. module: l10n_it_account_stamp
|
37
54
|
#: model_terms:ir.ui.view,arch_db:l10n_it_account_stamp.report_invoice_document_custom_fields_ext
|
@@ -42,11 +59,6 @@ msgstr ""
|
|
42
59
|
"<span>Imposta di bollo assolta in modo virtuale ai sensi dell'articolo 15 "
|
43
60
|
"del DPR 642/1972 e del DM 17/06/2014</span>"
|
44
61
|
|
45
|
-
#. module: l10n_it_account_stamp
|
46
|
-
#: model_terms:ir.ui.view,arch_db:l10n_it_account_stamp.account_move_form_stamp
|
47
|
-
msgid "Add tax stamp line"
|
48
|
-
msgstr "Aggiungi riga imposta di bollo"
|
49
|
-
|
50
62
|
#. module: l10n_it_account_stamp
|
51
63
|
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_account_bank_statement_line__manually_apply_tax_stamp
|
52
64
|
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_account_move__manually_apply_tax_stamp
|
@@ -63,6 +75,11 @@ msgstr "Applica imposta di bollo"
|
|
63
75
|
msgid "Auto-compute"
|
64
76
|
msgstr "Calcolo automatico"
|
65
77
|
|
78
|
+
#. module: l10n_it_account_stamp
|
79
|
+
#: model_terms:ir.ui.view,arch_db:l10n_it_account_stamp.account_move_form_stamp
|
80
|
+
msgid "Charge stamp to customer"
|
81
|
+
msgstr ""
|
82
|
+
|
66
83
|
#. module: l10n_it_account_stamp
|
67
84
|
#: model:ir.model,name:l10n_it_account_stamp.model_res_company
|
68
85
|
msgid "Companies"
|
@@ -167,6 +184,13 @@ msgstr ""
|
|
167
184
|
" 17 giugno 2014\n"
|
168
185
|
" "
|
169
186
|
|
187
|
+
#. module: l10n_it_account_stamp
|
188
|
+
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_account_bank_statement_line__tax_stamp_line_present
|
189
|
+
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_account_move__tax_stamp_line_present
|
190
|
+
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_account_payment__tax_stamp_line_present
|
191
|
+
msgid "Stamp line is present in invoice"
|
192
|
+
msgstr ""
|
193
|
+
|
170
194
|
#. module: l10n_it_account_stamp
|
171
195
|
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_product_product__stamp_apply_tax_ids
|
172
196
|
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_product_template__stamp_apply_tax_ids
|
@@ -212,6 +236,13 @@ msgstr "Prodotto imposta di bollo"
|
|
212
236
|
msgid "Tax stamp"
|
213
237
|
msgstr "Imposta di bollo"
|
214
238
|
|
239
|
+
#. module: l10n_it_account_stamp
|
240
|
+
#: model:ir.model.fields,help:l10n_it_account_stamp.field_account_bank_statement_line__tax_stamp
|
241
|
+
#: model:ir.model.fields,help:l10n_it_account_stamp.field_account_move__tax_stamp
|
242
|
+
#: model:ir.model.fields,help:l10n_it_account_stamp.field_account_payment__tax_stamp
|
243
|
+
msgid "Tax stamp is applied to this invoice."
|
244
|
+
msgstr ""
|
245
|
+
|
215
246
|
#. module: l10n_it_account_stamp
|
216
247
|
#. odoo-python
|
217
248
|
#: code:addons/l10n_it_account_stamp/models/account_move.py:0
|
@@ -233,18 +264,22 @@ msgstr "Riga per l'imposta di bollo %s già presente, prima rimuoverla."
|
|
233
264
|
msgid "The product %s must be a stamp to apply set taxes!"
|
234
265
|
msgstr "Il prodotto %s deve essere un bollo per applicare le imposte definite!"
|
235
266
|
|
267
|
+
#~ msgid "Add tax stamp line"
|
268
|
+
#~ msgstr "Aggiungi riga imposta di bollo"
|
269
|
+
|
236
270
|
#~ msgid ""
|
237
271
|
#~ "<span class=\"o_form_label\">Configuration for Tax stamp</span>\n"
|
238
|
-
#~ " <span class=\"fa fa-lg fa-building-o\"
|
239
|
-
#~ "
|
240
|
-
#~ "are company-specific.\" groups=\"base.group_multi_company\"
|
272
|
+
#~ " <span class=\"fa fa-lg fa-building-o\" "
|
273
|
+
#~ "title=\"Values set here are company-specific.\" aria-label=\"Values set "
|
274
|
+
#~ "here are company-specific.\" groups=\"base.group_multi_company\" "
|
275
|
+
#~ "role=\"img\"/>"
|
241
276
|
#~ msgstr ""
|
242
277
|
#~ "<span class=\"o_form_label\">Configurazione per l'imposta di bollo</"
|
243
278
|
#~ "span>\n"
|
244
|
-
#~ " <span class=\"fa fa-lg fa-building-o\"
|
245
|
-
#~ "
|
246
|
-
#~ "valori impostati qui sono specifici per azienda.\"
|
247
|
-
#~ "group_multi_company\" role=\"img\"/>"
|
279
|
+
#~ " <span class=\"fa fa-lg fa-building-o\" "
|
280
|
+
#~ "title=\"I valori impostati qui sono specifici per azienda.\" aria-"
|
281
|
+
#~ "label=\"I valori impostati qui sono specifici per azienda.\" "
|
282
|
+
#~ "groups=\"base.group_multi_company\" role=\"img\"/>"
|
248
283
|
|
249
284
|
#~ msgid ""
|
250
285
|
#~ "For each invoice, the base amount for each selected tax will be added up "
|
@@ -13,6 +13,22 @@ msgstr ""
|
|
13
13
|
"Content-Transfer-Encoding: \n"
|
14
14
|
"Plural-Forms: \n"
|
15
15
|
|
16
|
+
#. module: l10n_it_account_stamp
|
17
|
+
#: model_terms:ir.ui.view,arch_db:l10n_it_account_stamp.account_move_form_stamp
|
18
|
+
msgid ""
|
19
|
+
"<span attrs=\"{'invisible': [('state', '=', 'draft')]}\">\n"
|
20
|
+
" Stamp can only be charged to customer when invoice is in draft state\n"
|
21
|
+
" </span>"
|
22
|
+
msgstr ""
|
23
|
+
|
24
|
+
#. module: l10n_it_account_stamp
|
25
|
+
#: model_terms:ir.ui.view,arch_db:l10n_it_account_stamp.account_move_form_stamp
|
26
|
+
msgid ""
|
27
|
+
"<span attrs=\"{'invisible': [('tax_stamp_line_present', '=', False)]}\">\n"
|
28
|
+
" Stamp charged to customer\n"
|
29
|
+
" </span>"
|
30
|
+
msgstr ""
|
31
|
+
|
16
32
|
#. module: l10n_it_account_stamp
|
17
33
|
#: model_terms:ir.ui.view,arch_db:l10n_it_account_stamp.view_account_config_settings_stamp
|
18
34
|
msgid ""
|
@@ -28,11 +44,6 @@ msgid ""
|
|
28
44
|
"del DPR 642/1972 e del DM 17/06/2014</span>"
|
29
45
|
msgstr ""
|
30
46
|
|
31
|
-
#. module: l10n_it_account_stamp
|
32
|
-
#: model_terms:ir.ui.view,arch_db:l10n_it_account_stamp.account_move_form_stamp
|
33
|
-
msgid "Add tax stamp line"
|
34
|
-
msgstr ""
|
35
|
-
|
36
47
|
#. module: l10n_it_account_stamp
|
37
48
|
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_account_bank_statement_line__manually_apply_tax_stamp
|
38
49
|
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_account_move__manually_apply_tax_stamp
|
@@ -49,6 +60,11 @@ msgstr ""
|
|
49
60
|
msgid "Auto-compute"
|
50
61
|
msgstr ""
|
51
62
|
|
63
|
+
#. module: l10n_it_account_stamp
|
64
|
+
#: model_terms:ir.ui.view,arch_db:l10n_it_account_stamp.account_move_form_stamp
|
65
|
+
msgid "Charge stamp to customer"
|
66
|
+
msgstr ""
|
67
|
+
|
52
68
|
#. module: l10n_it_account_stamp
|
53
69
|
#: model:ir.model,name:l10n_it_account_stamp.model_res_company
|
54
70
|
msgid "Companies"
|
@@ -145,6 +161,13 @@ msgid ""
|
|
145
161
|
" "
|
146
162
|
msgstr ""
|
147
163
|
|
164
|
+
#. module: l10n_it_account_stamp
|
165
|
+
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_account_bank_statement_line__tax_stamp_line_present
|
166
|
+
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_account_move__tax_stamp_line_present
|
167
|
+
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_account_payment__tax_stamp_line_present
|
168
|
+
msgid "Stamp line is present in invoice"
|
169
|
+
msgstr ""
|
170
|
+
|
148
171
|
#. module: l10n_it_account_stamp
|
149
172
|
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_product_product__stamp_apply_tax_ids
|
150
173
|
#: model:ir.model.fields,field_description:l10n_it_account_stamp.field_product_template__stamp_apply_tax_ids
|
@@ -190,6 +213,13 @@ msgstr ""
|
|
190
213
|
msgid "Tax stamp"
|
191
214
|
msgstr ""
|
192
215
|
|
216
|
+
#. module: l10n_it_account_stamp
|
217
|
+
#: model:ir.model.fields,help:l10n_it_account_stamp.field_account_bank_statement_line__tax_stamp
|
218
|
+
#: model:ir.model.fields,help:l10n_it_account_stamp.field_account_move__tax_stamp
|
219
|
+
#: model:ir.model.fields,help:l10n_it_account_stamp.field_account_payment__tax_stamp
|
220
|
+
msgid "Tax stamp is applied to this invoice."
|
221
|
+
msgstr ""
|
222
|
+
|
193
223
|
#. module: l10n_it_account_stamp
|
194
224
|
#. odoo-python
|
195
225
|
#: code:addons/l10n_it_account_stamp/models/account_move.py:0
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# Copyright 2023 Simone Rubino - Aion Tech
|
1
2
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
|
2
3
|
|
3
4
|
from odoo import _, api, fields, models
|
@@ -7,7 +8,16 @@ from odoo.exceptions import UserError
|
|
7
8
|
class AccountMove(models.Model):
|
8
9
|
_inherit = "account.move"
|
9
10
|
|
10
|
-
tax_stamp = fields.Boolean(
|
11
|
+
tax_stamp = fields.Boolean(
|
12
|
+
help="Tax stamp is applied to this invoice.",
|
13
|
+
readonly=False,
|
14
|
+
compute="_compute_tax_stamp",
|
15
|
+
store=True,
|
16
|
+
)
|
17
|
+
tax_stamp_line_present = fields.Boolean(
|
18
|
+
string="Stamp line is present in invoice",
|
19
|
+
compute="_compute_tax_stamp_line_present",
|
20
|
+
)
|
11
21
|
auto_compute_stamp = fields.Boolean(
|
12
22
|
related="company_id.tax_stamp_product_id.auto_compute"
|
13
23
|
)
|
@@ -74,6 +84,7 @@ class AccountMove(models.Model):
|
|
74
84
|
invoice_line_vals = {
|
75
85
|
"move_id": inv.id,
|
76
86
|
"product_id": stamp_product_id.id,
|
87
|
+
"is_stamp_line": True,
|
77
88
|
"name": stamp_product_id.description_sale,
|
78
89
|
"sequence": 99999,
|
79
90
|
"account_id": stamp_account.id,
|
@@ -86,11 +97,21 @@ class AccountMove(models.Model):
|
|
86
97
|
inv.write({"invoice_line_ids": [(0, 0, invoice_line_vals)]})
|
87
98
|
|
88
99
|
def is_tax_stamp_line_present(self):
|
100
|
+
self.ensure_one()
|
89
101
|
for line in self.line_ids:
|
90
102
|
if line.is_stamp_line:
|
91
103
|
return True
|
92
104
|
return False
|
93
105
|
|
106
|
+
@api.depends(
|
107
|
+
"invoice_line_ids",
|
108
|
+
"invoice_line_ids.product_id",
|
109
|
+
"invoice_line_ids.product_id.is_stamp",
|
110
|
+
)
|
111
|
+
def _compute_tax_stamp_line_present(self):
|
112
|
+
for invoice in self:
|
113
|
+
invoice.tax_stamp_line_present = invoice.is_tax_stamp_line_present()
|
114
|
+
|
94
115
|
def is_tax_stamp_product_present(self):
|
95
116
|
product_stamp = self.invoice_line_ids.filtered(
|
96
117
|
lambda line: line.product_id.is_stamp
|
@@ -8,10 +8,11 @@
|
|
8
8
|
|
9
9
|
/*
|
10
10
|
:Author: David Goodger (goodger@python.org)
|
11
|
-
:Id: $Id: html4css1.css
|
11
|
+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
|
12
12
|
:Copyright: This stylesheet has been placed in the public domain.
|
13
13
|
|
14
14
|
Default cascading style sheet for the HTML output of Docutils.
|
15
|
+
Despite the name, some widely supported CSS2 features are used.
|
15
16
|
|
16
17
|
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
17
18
|
customize this style sheet.
|
@@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
|
274
275
|
margin-left: 2em ;
|
275
276
|
margin-right: 2em }
|
276
277
|
|
277
|
-
pre.code .ln { color:
|
278
|
+
pre.code .ln { color: gray; } /* line numbers */
|
278
279
|
pre.code, code { background-color: #eeeeee }
|
279
280
|
pre.code .comment, code .comment { color: #5C6576 }
|
280
281
|
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
@@ -300,7 +301,7 @@ span.option {
|
|
300
301
|
span.pre {
|
301
302
|
white-space: pre }
|
302
303
|
|
303
|
-
span.problematic {
|
304
|
+
span.problematic, pre.problematic {
|
304
305
|
color: red }
|
305
306
|
|
306
307
|
span.section-subtitle {
|
@@ -366,7 +367,7 @@ ul.auto-toc {
|
|
366
367
|
!! This file is generated by oca-gen-addon-readme !!
|
367
368
|
!! changes will be overwritten. !!
|
368
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
369
|
-
!! source digest: sha256:
|
370
|
+
!! source digest: sha256:a81fbb48d1af1704b5039d1b6239009736a6f4983e7441b65359d85f54064061
|
370
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
371
372
|
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_account_stamp"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_account_stamp"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
372
373
|
<p><strong>Italiano</strong></p>
|
@@ -486,12 +487,18 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
486
487
|
<li>Marco Colombo <<a class="reference external" href="https://github.com/TheMule71">https://github.com/TheMule71</a>></li>
|
487
488
|
<li>Gianmarco Conte <<a class="reference external" href="mailto:gconte@dinamicheaziendali.it">gconte@dinamicheaziendali.it</a>></li>
|
488
489
|
<li>Giovanni Serra <<a class="reference external" href="mailto:giovanni@gslab.it">giovanni@gslab.it</a>></li>
|
490
|
+
<li><a class="reference external" href="https://aiontech.company/">Aion Tech</a>:<ul>
|
491
|
+
<li>Simone Rubino <<a class="reference external" href="mailto:simone.rubino@aion-tech.it">simone.rubino@aion-tech.it</a>></li>
|
492
|
+
</ul>
|
493
|
+
</li>
|
489
494
|
</ul>
|
490
495
|
</div>
|
491
496
|
<div class="section" id="maintainers">
|
492
497
|
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
|
493
498
|
<p>This module is maintained by the OCA.</p>
|
494
|
-
<a class="reference external image-reference" href="https://odoo-community.org"
|
499
|
+
<a class="reference external image-reference" href="https://odoo-community.org">
|
500
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
501
|
+
</a>
|
495
502
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
496
503
|
mission is to support the collaborative development of Odoo features and
|
497
504
|
promote its widespread use.</p>
|
@@ -101,3 +101,28 @@ class InvoicingTest(TestAccountInvoiceReport):
|
|
101
101
|
total = invoice.amount_total
|
102
102
|
invoice.action_post()
|
103
103
|
self.assertEqual(total, invoice.amount_total)
|
104
|
+
|
105
|
+
def test_tax_stamp_line_button(self):
|
106
|
+
"""Stamp fields show when stamp is added with the button to the invoice."""
|
107
|
+
# Arrange: Create an invoice eligible for tax stamp but without it
|
108
|
+
stamp_tax = self.tax_id
|
109
|
+
invoice = self.init_invoice(
|
110
|
+
"out_invoice",
|
111
|
+
taxes=stamp_tax,
|
112
|
+
amounts=[
|
113
|
+
100,
|
114
|
+
],
|
115
|
+
)
|
116
|
+
# pre-condition
|
117
|
+
self.assertTrue(invoice.tax_stamp)
|
118
|
+
self.assertFalse(invoice.tax_stamp_line_present)
|
119
|
+
|
120
|
+
# Act
|
121
|
+
invoice.add_tax_stamp_line()
|
122
|
+
|
123
|
+
# Assert
|
124
|
+
self.assertTrue(invoice.tax_stamp_line_present)
|
125
|
+
|
126
|
+
# Resetting to draft removes the stamp
|
127
|
+
invoice.button_draft()
|
128
|
+
self.assertFalse(invoice.tax_stamp_line_present)
|
@@ -1,4 +1,8 @@
|
|
1
1
|
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<!--
|
3
|
+
~ Copyright 2023 Simone Rubino - Aion Tech
|
4
|
+
~ License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
|
5
|
+
-->
|
2
6
|
<odoo>
|
3
7
|
|
4
8
|
<!-- Form: Invoice Customer -->
|
@@ -23,20 +27,38 @@
|
|
23
27
|
name="manually_apply_tax_stamp"
|
24
28
|
attrs="{'invisible': [('auto_compute_stamp', '=', True)]}"
|
25
29
|
/>
|
30
|
+
<field name="tax_stamp_line_present" invisible="1" />
|
26
31
|
</xpath>
|
27
32
|
<field name="narration" position="before">
|
28
|
-
<
|
29
|
-
|
30
|
-
alt="Tax stamp"
|
33
|
+
<div
|
34
|
+
name="stamp_applicability"
|
31
35
|
attrs="{'invisible': [('tax_stamp', '=', False)]}"
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
36
|
+
colspan="2"
|
37
|
+
>
|
38
|
+
<img
|
39
|
+
src="/l10n_it_account_stamp/static/description/icon.png"
|
40
|
+
alt="Tax stamp"
|
41
|
+
/>
|
42
|
+
<span
|
43
|
+
attrs="{'invisible': [('tax_stamp_line_present', '=', True)]}"
|
44
|
+
>
|
45
|
+
<span attrs="{'invisible': [('state', 'not in', 'draft')]}">
|
46
|
+
<button
|
47
|
+
type="object"
|
48
|
+
string="Charge stamp to customer"
|
49
|
+
name="add_tax_stamp_line"
|
50
|
+
/>
|
51
|
+
</span>
|
52
|
+
<span attrs="{'invisible': [('state', '=', 'draft')]}">
|
53
|
+
Stamp can only be charged to customer when invoice is in draft state
|
54
|
+
</span>
|
55
|
+
</span>
|
56
|
+
<span
|
57
|
+
attrs="{'invisible': [('tax_stamp_line_present', '=', False)]}"
|
58
|
+
>
|
59
|
+
Stamp charged to customer
|
60
|
+
</span>
|
61
|
+
</div>
|
40
62
|
<!--move narration down-->
|
41
63
|
<div />
|
42
64
|
</field>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: odoo-addon-l10n_it_account_stamp
|
3
|
-
Version: 16.0.1.0.
|
3
|
+
Version: 16.0.1.1.0.1
|
4
4
|
Requires-Python: >=3.10
|
5
5
|
Requires-Dist: odoo>=16.0a,<16.1dev
|
6
6
|
Summary: Gestione automatica dell'imposta di bollo
|
@@ -22,7 +22,7 @@ ITA - Imposta di bollo
|
|
22
22
|
!! This file is generated by oca-gen-addon-readme !!
|
23
23
|
!! changes will be overwritten. !!
|
24
24
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
25
|
-
!! source digest: sha256:
|
25
|
+
!! source digest: sha256:a81fbb48d1af1704b5039d1b6239009736a6f4983e7441b65359d85f54064061
|
26
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
27
27
|
|
28
28
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
@@ -167,6 +167,9 @@ Contributors
|
|
167
167
|
- Marco Colombo <https://github.com/TheMule71>
|
168
168
|
- Gianmarco Conte <gconte@dinamicheaziendali.it>
|
169
169
|
- Giovanni Serra <giovanni@gslab.it>
|
170
|
+
- `Aion Tech <https://aiontech.company/>`__:
|
171
|
+
|
172
|
+
- Simone Rubino <simone.rubino@aion-tech.it>
|
170
173
|
|
171
174
|
Maintainers
|
172
175
|
-----------
|
@@ -1,26 +1,26 @@
|
|
1
|
-
odoo/addons/l10n_it_account_stamp/README.rst,sha256=
|
1
|
+
odoo/addons/l10n_it_account_stamp/README.rst,sha256=Nrm1Y3lCiZEKy-57aMxio-eT-VGchGlGWOFxTzWUTtE,5841
|
2
2
|
odoo/addons/l10n_it_account_stamp/__init__.py,sha256=I-UsDedt5Yu5h6YsECfkEkBOa9D7HC0Fh_CU937Zu38,87
|
3
|
-
odoo/addons/l10n_it_account_stamp/__manifest__.py,sha256=
|
3
|
+
odoo/addons/l10n_it_account_stamp/__manifest__.py,sha256=_ftjhRiDTsjwDtF3GnH6xftCpFGrx7kx7xsaE04_qzI,1055
|
4
4
|
odoo/addons/l10n_it_account_stamp/data/data.xml,sha256=uq1eHcR_s_XAeDO-sr3Tz1J6WpVyXootOruwCnVcYtU,1008
|
5
|
-
odoo/addons/l10n_it_account_stamp/i18n/it.po,sha256=
|
6
|
-
odoo/addons/l10n_it_account_stamp/i18n/l10n_it_account_stamp.pot,sha256=
|
5
|
+
odoo/addons/l10n_it_account_stamp/i18n/it.po,sha256=iE0Uiu42ohj3m_B7p0ccxOSKUFiPf7oqtndjehFefzw,12738
|
6
|
+
odoo/addons/l10n_it_account_stamp/i18n/l10n_it_account_stamp.pot,sha256=scExBeZeWD4S7flbtMhiEpgPIrnIZiVx5gf8hGoOK1s,9351
|
7
7
|
odoo/addons/l10n_it_account_stamp/models/__init__.py,sha256=VsCLpIwj3dfslYgxeQVnrRaP8UYXOcLxzerxw9b9sFM,137
|
8
|
-
odoo/addons/l10n_it_account_stamp/models/account_move.py,sha256=
|
8
|
+
odoo/addons/l10n_it_account_stamp/models/account_move.py,sha256=Ll5HtCCG_GsW2TNWdFbRymz9UBSt3cHWp1BVZuM-Zro,7591
|
9
9
|
odoo/addons/l10n_it_account_stamp/models/company.py,sha256=8obbjHTXRDlNVIUYpn07NrqSafeUTAl_gwZqz52zlbM,649
|
10
10
|
odoo/addons/l10n_it_account_stamp/models/product.py,sha256=wCy8gqUUQpYMcEUqeYaHDkSRfFUoOivPzNJdrGsdZG0,960
|
11
11
|
odoo/addons/l10n_it_account_stamp/readme/CONFIGURE.md,sha256=6eXG4dtfCM46GOuBDBYvDSOJSjjhCbcelH1tLmOAaKg,1904
|
12
|
-
odoo/addons/l10n_it_account_stamp/readme/CONTRIBUTORS.md,sha256=
|
12
|
+
odoo/addons/l10n_it_account_stamp/readme/CONTRIBUTORS.md,sha256=ZFlw2V8ugb5pYxmVwllBv1BDtr6O7Mn5gsUKH2C1UT4,394
|
13
13
|
odoo/addons/l10n_it_account_stamp/readme/DESCRIPTION.md,sha256=MZtNAxqCRWj_8i_faDkfxl1Tq0Z_Fmb24WuVHhUvzh4,194
|
14
14
|
odoo/addons/l10n_it_account_stamp/readme/USAGE.md,sha256=gyGCxwwWF5KAjDMFJsTmSGuLNrDB4NvPhYf_9GL40J0,529
|
15
15
|
odoo/addons/l10n_it_account_stamp/static/description/icon.png,sha256=usHO6eloiDtrFBKGx4Bz_wpruwZYZYq6EcMdePNf3k0,13940
|
16
|
-
odoo/addons/l10n_it_account_stamp/static/description/index.html,sha256=
|
16
|
+
odoo/addons/l10n_it_account_stamp/static/description/index.html,sha256=uaCC9sGFa7ERSmTmClydipZoRK8WM16WuUGr2c1PcQ8,16541
|
17
17
|
odoo/addons/l10n_it_account_stamp/tests/__init__.py,sha256=WJD_Fmau2vDl9KNayDUsi2kw1PiU9D3OvonXLmiw3_4,43
|
18
|
-
odoo/addons/l10n_it_account_stamp/tests/test_account_stamp_invoicing.py,sha256=
|
18
|
+
odoo/addons/l10n_it_account_stamp/tests/test_account_stamp_invoicing.py,sha256=qWDruISZTSzLQiW-YWvAlRpaPhIukQG4Hz8WrcZbXMQ,4467
|
19
19
|
odoo/addons/l10n_it_account_stamp/views/account_move_report.xml,sha256=WDoJ05BV_oedIbnCaXLBOUzhMYKTudWhXN3iHuxdq98,513
|
20
|
-
odoo/addons/l10n_it_account_stamp/views/account_move_view.xml,sha256
|
20
|
+
odoo/addons/l10n_it_account_stamp/views/account_move_view.xml,sha256=-qqppLtUH3yS7kxELVpFLHhaJWvwt1d6gZRHA6Zo8MY,3162
|
21
21
|
odoo/addons/l10n_it_account_stamp/views/company_view.xml,sha256=0pVaJhvcmheticPs13chNXrNPZj6oC5I3oDn5AYfwy8,1931
|
22
22
|
odoo/addons/l10n_it_account_stamp/views/product_view.xml,sha256=rt1Jo9-PcUI9DFHbz_PVLYkhrZV50qL9k86Ze1S4rV0,2225
|
23
|
-
odoo_addon_l10n_it_account_stamp-16.0.1.0.
|
24
|
-
odoo_addon_l10n_it_account_stamp-16.0.1.0.
|
25
|
-
odoo_addon_l10n_it_account_stamp-16.0.1.0.
|
26
|
-
odoo_addon_l10n_it_account_stamp-16.0.1.0.
|
23
|
+
odoo_addon_l10n_it_account_stamp-16.0.1.1.0.1.dist-info/METADATA,sha256=j6Nxgr9ZOHz8MALjlBhyAWIwPfGg43F00fJC4LHdJYU,6422
|
24
|
+
odoo_addon_l10n_it_account_stamp-16.0.1.1.0.1.dist-info/WHEEL,sha256=8Rd4enx1PCuyDWP4SABqO5Fv8rpaknqp3VzjoFFLa6c,83
|
25
|
+
odoo_addon_l10n_it_account_stamp-16.0.1.1.0.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
26
|
+
odoo_addon_l10n_it_account_stamp-16.0.1.1.0.1.dist-info/RECORD,,
|