odoo-addon-l10n-it-bill-of-entry 16.0.1.0.1.1__py3-none-any.whl → 18.0.1.0.0.3__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.
- odoo/addons/l10n_it_bill_of_entry/README.rst +74 -74
- odoo/addons/l10n_it_bill_of_entry/__manifest__.py +3 -6
- odoo/addons/l10n_it_bill_of_entry/demo/bill_of_entry_demo.xml +13 -4
- odoo/addons/l10n_it_bill_of_entry/i18n/l10n_it_bill_of_entry.pot +41 -28
- odoo/addons/l10n_it_bill_of_entry/models/account_move.py +24 -15
- odoo/addons/l10n_it_bill_of_entry/readme/CONTRIBUTORS.md +1 -0
- odoo/addons/l10n_it_bill_of_entry/static/description/index.html +29 -27
- odoo/addons/l10n_it_bill_of_entry/tests/test_bill_of_entry.py +19 -5
- odoo/addons/l10n_it_bill_of_entry/views/account_invoice_view.xml +19 -65
- odoo/addons/l10n_it_bill_of_entry/views/company_view.xml +26 -56
- odoo_addon_l10n_it_bill_of_entry-18.0.1.0.0.3.dist-info/METADATA +209 -0
- {odoo_addon_l10n_it_bill_of_entry-16.0.1.0.1.1.dist-info → odoo_addon_l10n_it_bill_of_entry-18.0.1.0.0.3.dist-info}/RECORD +14 -14
- {odoo_addon_l10n_it_bill_of_entry-16.0.1.0.1.1.dist-info → odoo_addon_l10n_it_bill_of_entry-18.0.1.0.0.3.dist-info}/WHEEL +1 -1
- odoo_addon_l10n_it_bill_of_entry-16.0.1.0.1.1.dist-info/METADATA +0 -209
- {odoo_addon_l10n_it_bill_of_entry-16.0.1.0.1.1.dist-info → odoo_addon_l10n_it_bill_of_entry-18.0.1.0.0.3.dist-info}/top_level.txt +0 -0
|
@@ -7,7 +7,7 @@ ITA - Bolle doganali
|
|
|
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:3e00d2ca646f727ba7922495ad3269aac0ba5e27f1d31378f52f1d8822f63b63
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -17,13 +17,13 @@ ITA - Bolle doganali
|
|
|
17
17
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
18
18
|
:alt: License: AGPL-3
|
|
19
19
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
|
|
20
|
-
:target: https://github.com/OCA/l10n-italy/tree/
|
|
20
|
+
:target: https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_bill_of_entry
|
|
21
21
|
:alt: OCA/l10n-italy
|
|
22
22
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
23
|
-
:target: https://translation.odoo-community.org/projects/l10n-italy-
|
|
23
|
+
:target: https://translation.odoo-community.org/projects/l10n-italy-18-0/l10n-italy-18-0-l10n_it_bill_of_entry
|
|
24
24
|
:alt: Translate me on Weblate
|
|
25
25
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
26
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=
|
|
26
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=18.0
|
|
27
27
|
:alt: Try me on Runboat
|
|
28
28
|
|
|
29
29
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
@@ -33,9 +33,9 @@ bill of entry according to the supplier invoice.
|
|
|
33
33
|
|
|
34
34
|
It involves three documents:
|
|
35
35
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
36
|
+
- Supplier Invoice
|
|
37
|
+
- Forwarder Invoice
|
|
38
|
+
- Bill of Entry
|
|
39
39
|
|
|
40
40
|
**Table of contents**
|
|
41
41
|
|
|
@@ -49,75 +49,73 @@ Configuration
|
|
|
49
49
|
|
|
50
50
|
Mandatory settings:
|
|
51
51
|
|
|
52
|
-
-
|
|
53
|
-
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
- The forwarder as a real supplier.
|
|
52
|
+
- An account journal required by the closing transfer account move (e.g.
|
|
53
|
+
"Bolle Doganali").
|
|
54
|
+
- An account journal for extraUE supplier invoices, apart from ordinary
|
|
55
|
+
supplier invoices. In this way, extraUE supplier invoices don't appear
|
|
56
|
+
in VAT registries; in this way, VAT registries have no missing
|
|
57
|
+
numbers.
|
|
58
|
+
- Create the "Extra UE goods purchases" and add a tax mapping: purchase
|
|
59
|
+
taxes (e.g. 22%) should be mapped to to no one tax. In this way, every
|
|
60
|
+
purchase invoice for extra UE fiscal position don't show taxes in
|
|
61
|
+
lines, according to law.
|
|
62
|
+
- A virtual supplier (e.g. "Customs" or "Dogana") for the bill of entry.
|
|
63
|
+
- The forwarder as a real supplier.
|
|
65
64
|
|
|
66
65
|
Optional settings:
|
|
67
66
|
|
|
68
|
-
-
|
|
69
|
-
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
-
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
|
|
67
|
+
- An expense account where recording the bill of entry net amount (e.g.
|
|
68
|
+
"ACQUISTO MERCI ExtraUE").
|
|
69
|
+
- An expense account where recording the bill of entry VAT amount, paid
|
|
70
|
+
in advance by the forwarder and declared in the forwarder invoice
|
|
71
|
+
(e.g. "SPESE DOGANALI ANTICIPATE").
|
|
72
|
+
- An account tax, with the same VAT rate as the ordinary one (i.e. 22%
|
|
73
|
+
for Italy), applied on the bill of entry net amount (e.g. "22% debito
|
|
74
|
+
ExtraUE"). In this way, bill of entries are highlighted in VAT
|
|
75
|
+
registries due to this tax code.
|
|
76
|
+
- An account for delivery expenses, recorded in the forwarder invoice
|
|
77
|
+
(e.g. "SPESE DI TRASPORTO").
|
|
78
|
+
- An account for customs duties, recorded in the forwarder invoice (e.g.
|
|
79
|
+
"DIRITTI DOGANALI").
|
|
80
|
+
- An account for stamp duties, recorded in the forwarder invoice (e.g.
|
|
81
|
+
"IMPOSTE DI BOLLO").
|
|
83
82
|
|
|
84
83
|
**Italiano**
|
|
85
84
|
|
|
86
85
|
Impostazioni obbligatorie:
|
|
87
86
|
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
- Il fornitore spedizioniere
|
|
87
|
+
- Un registro utilizzato per la registrazione di giroconto (ad es.
|
|
88
|
+
"Bolle Doganali" o "Varie") da impostare in configurazione
|
|
89
|
+
contabilità.
|
|
90
|
+
- Un imposta con aliquota standard da applicare alla bolla doganale (ad
|
|
91
|
+
es. "22% credito ExtraUE") da impostare in configurazione contabilità.
|
|
92
|
+
In questo modo questa imposta viene evidenziata nei registri IVA.
|
|
93
|
+
- Un fornitore "Dogana" per le bolle doganali, da impostare in
|
|
94
|
+
configurazione contabilità.
|
|
95
|
+
- Un registro per le fatture dei fornitori extra UE, distinto da quello
|
|
96
|
+
delle fatture passive ordinarie. In questo modo, le fatture dei
|
|
97
|
+
fornitori extra non appariranno nei registri IVA ed i registri IVA non
|
|
98
|
+
avranno numeri mancanti.
|
|
99
|
+
- Una posizione fiscale "Acquisti beni extra UE" e aggiungere la
|
|
100
|
+
mappatura: l'imposta d'acquisto (ad es. 22%) deve essere mappata a
|
|
101
|
+
nessuna imposta. In questo modo, ogni fattura passive per questa
|
|
102
|
+
posizione fiscale non avrà imposte sulle righe.
|
|
103
|
+
- Il fornitore spedizioniere
|
|
106
104
|
|
|
107
105
|
Impostazioni opzionali:
|
|
108
106
|
|
|
109
|
-
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
-
|
|
116
|
-
|
|
117
|
-
-
|
|
118
|
-
|
|
119
|
-
-
|
|
120
|
-
|
|
107
|
+
- Un conto di costo dove registrare l'importo netto della bolla doganale
|
|
108
|
+
(ad es. "ACQUISTO MERCI ExtraUE"), da associare eventualmente ai
|
|
109
|
+
prodotti acquistati extra UE
|
|
110
|
+
- Un conto di costo dove registrare l'importo dell'IVA della bolla
|
|
111
|
+
doganale, pagata in anticipo dello spedizioniere e evidenziata nella
|
|
112
|
+
fattura dello spedizioniere (ad es. "SPESE DOGANALI ANTICIPATE").
|
|
113
|
+
- Un conto per le spese di consegna, registrate nella fattura
|
|
114
|
+
spedizioniere (ad es. "SPESE DI TRASPORTO")
|
|
115
|
+
- Un conto per i diritti doganali, registrati nella fattura
|
|
116
|
+
spedizioniere (ad es. "DIRITTI DOGANALI")
|
|
117
|
+
- Un conto per le imposte di bollo, registrate nella fattura
|
|
118
|
+
spedizioniere (ad es. "IMPOSTE DI BOLLO")
|
|
121
119
|
|
|
122
120
|
Usage
|
|
123
121
|
=====
|
|
@@ -148,7 +146,7 @@ Bug Tracker
|
|
|
148
146
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues>`_.
|
|
149
147
|
In case of trouble, please check there if your issue has already been reported.
|
|
150
148
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
151
|
-
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_bill_of_entry%0Aversion:%
|
|
149
|
+
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_bill_of_entry%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
152
150
|
|
|
153
151
|
Do not contact contributors directly about support or help with technical issues.
|
|
154
152
|
|
|
@@ -165,16 +163,18 @@ Authors
|
|
|
165
163
|
Contributors
|
|
166
164
|
------------
|
|
167
165
|
|
|
168
|
-
-
|
|
169
|
-
-
|
|
166
|
+
- Alex Comba <alex.comba@agilebg.com>
|
|
167
|
+
- `TAKOBI <https://takobi.online>`__:
|
|
170
168
|
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
- Lorenzo Battistini
|
|
170
|
+
- Simone Rubino <sir@takobi.online>
|
|
173
171
|
|
|
174
|
-
-
|
|
175
|
-
-
|
|
172
|
+
- Diego Bruselli <d.bruselli@creativiquadrati.it>
|
|
173
|
+
- `Aion Tech <https://aiontech.company/>`__:
|
|
176
174
|
|
|
177
|
-
|
|
175
|
+
- Simone Rubino <simone.rubino@aion-tech.it>
|
|
176
|
+
|
|
177
|
+
- `Nextev Srl <https://nextev.it/>`__ <odoo@nextev.it>
|
|
178
178
|
|
|
179
179
|
Maintainers
|
|
180
180
|
-----------
|
|
@@ -189,6 +189,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
|
189
189
|
mission is to support the collaborative development of Odoo features and
|
|
190
190
|
promote its widespread use.
|
|
191
191
|
|
|
192
|
-
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/
|
|
192
|
+
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_bill_of_entry>`_ project on GitHub.
|
|
193
193
|
|
|
194
194
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -9,16 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
{
|
|
11
11
|
"name": "ITA - Bolle doganali",
|
|
12
|
-
"version": "
|
|
12
|
+
"version": "18.0.1.0.0",
|
|
13
13
|
"category": "Localization/Italy",
|
|
14
14
|
"author": "Agile Business Group, CQ Creativi Quadrati, TAKOBI, "
|
|
15
15
|
"Odoo Community Association (OCA)",
|
|
16
|
-
"website": "https://github.com/OCA/l10n-italy"
|
|
16
|
+
"website": "https://github.com/OCA/l10n-italy",
|
|
17
17
|
"license": "AGPL-3",
|
|
18
|
-
"depends": [
|
|
19
|
-
"base",
|
|
20
|
-
"account",
|
|
21
|
-
],
|
|
18
|
+
"depends": ["base", "account", "l10n_it"],
|
|
22
19
|
"data": [
|
|
23
20
|
"views/company_view.xml",
|
|
24
21
|
"views/account_invoice_view.xml",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<field name="reconcile">True</field>
|
|
32
32
|
</record>
|
|
33
33
|
|
|
34
|
-
<!--
|
|
34
|
+
<!--
|
|
35
35
|
When l10n_it is installed, it creates the l10n_it.1_4201 account
|
|
36
36
|
(420100 costi di trasporto)
|
|
37
37
|
-->
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
<field name="name">Delivery Expenses</field>
|
|
41
41
|
<field name="account_type">expense</field>
|
|
42
42
|
<field name="reconcile">True</field>
|
|
43
|
+
<field name="company_ids" eval="[(6, 0, [ref('base.demo_company_it')])]" />
|
|
43
44
|
</record>
|
|
44
45
|
|
|
45
46
|
<!-- Account Tax -->
|
|
@@ -54,7 +55,12 @@
|
|
|
54
55
|
<field name="amount_type">percent</field>
|
|
55
56
|
<field name="amount">22</field>
|
|
56
57
|
<field name="description">22aExtraUE</field>
|
|
57
|
-
<field name="
|
|
58
|
+
<field name="country_id" ref="base.it" />
|
|
59
|
+
<field
|
|
60
|
+
name="tax_group_id"
|
|
61
|
+
eval="ref('account.%s_tax_group_iva_22' % ref('base.demo_company_it'))"
|
|
62
|
+
/>
|
|
63
|
+
<field name="company_id" ref="base.demo_company_it" />
|
|
58
64
|
<field name="sequence">99</field>
|
|
59
65
|
</record>
|
|
60
66
|
|
|
@@ -62,19 +68,22 @@
|
|
|
62
68
|
<record id="partner_customs" model="res.partner">
|
|
63
69
|
<field name="name">Customs</field>
|
|
64
70
|
<field name="is_company">True</field>
|
|
71
|
+
<field name="company_id" ref="base.demo_company_it" />
|
|
65
72
|
</record>
|
|
66
73
|
|
|
67
74
|
<!-- Account Fiscal Position -->
|
|
68
75
|
<record id="fiscal_position_extraEU" model="account.fiscal.position">
|
|
69
76
|
<field name="name">Extra EU</field>
|
|
70
|
-
|
|
77
|
+
<field name="company_id" ref="base.demo_company_it" />
|
|
78
|
+
</record>
|
|
71
79
|
|
|
72
80
|
<!-- Account Journal -->
|
|
73
81
|
<record id="account_journal_purchase_extraEU" model="account.journal">
|
|
74
82
|
<field name="name">Supplier Invoices ExtraUE</field>
|
|
75
83
|
<field name="type">purchase</field>
|
|
76
84
|
<field name="code">NOUE</field>
|
|
77
|
-
|
|
85
|
+
<field name="company_id" ref="base.demo_company_it" />
|
|
86
|
+
</record>
|
|
78
87
|
|
|
79
88
|
<!-- Product product -->
|
|
80
89
|
<record id="product_product_extraEU_purchase" model="product.product">
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
msgid ""
|
|
6
6
|
msgstr ""
|
|
7
|
-
"Project-Id-Version: Odoo Server
|
|
7
|
+
"Project-Id-Version: Odoo Server 18.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
|
9
9
|
"Last-Translator: \n"
|
|
10
10
|
"Language-Team: \n"
|
|
@@ -14,11 +14,9 @@ msgstr ""
|
|
|
14
14
|
"Plural-Forms: \n"
|
|
15
15
|
|
|
16
16
|
#. module: l10n_it_bill_of_entry
|
|
17
|
-
#:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"specific.\" aria-label=\"Values set here are company-specific.\" "
|
|
21
|
-
"groups=\"base.group_multi_company\" role=\"img\"/>"
|
|
17
|
+
#: model:account.account.tag,name:l10n_it_bill_of_entry.tax_tag_22extraUE
|
|
18
|
+
#: model_terms:account.tax,description:l10n_it_bill_of_entry.tax_22extraUE
|
|
19
|
+
msgid "22aExtraUE"
|
|
22
20
|
msgstr ""
|
|
23
21
|
|
|
24
22
|
#. module: l10n_it_bill_of_entry
|
|
@@ -31,6 +29,16 @@ msgstr ""
|
|
|
31
29
|
msgid "Advance Customs Vat"
|
|
32
30
|
msgstr ""
|
|
33
31
|
|
|
32
|
+
#. module: l10n_it_bill_of_entry
|
|
33
|
+
#: model:account.account,name:l10n_it_bill_of_entry.account_account_adv_customs_expense
|
|
34
|
+
msgid "Advanced Customs Expenses"
|
|
35
|
+
msgstr ""
|
|
36
|
+
|
|
37
|
+
#. module: l10n_it_bill_of_entry
|
|
38
|
+
#: model_terms:ir.ui.view,arch_db:l10n_it_bill_of_entry.view_boe_config_settings
|
|
39
|
+
msgid "Bill of Entries"
|
|
40
|
+
msgstr ""
|
|
41
|
+
|
|
34
42
|
#. module: l10n_it_bill_of_entry
|
|
35
43
|
#: model:ir.model.fields.selection,name:l10n_it_bill_of_entry.selection__account_move__customs_doc_type__bill_of_entry
|
|
36
44
|
msgid "Bill of Entry"
|
|
@@ -39,34 +47,29 @@ msgstr ""
|
|
|
39
47
|
#. module: l10n_it_bill_of_entry
|
|
40
48
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_bank_statement_line__bill_of_entry_storno_id
|
|
41
49
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_move__bill_of_entry_storno_id
|
|
42
|
-
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_payment__bill_of_entry_storno_id
|
|
43
50
|
msgid "Bill of Entry Storno"
|
|
44
51
|
msgstr ""
|
|
45
52
|
|
|
46
53
|
#. module: l10n_it_bill_of_entry
|
|
47
54
|
#: model_terms:ir.ui.view,arch_db:l10n_it_bill_of_entry.invoice_supplier_boe_form
|
|
48
|
-
#: model_terms:ir.ui.view,arch_db:l10n_it_bill_of_entry.view_boe_config_settings
|
|
49
55
|
msgid "Bill of entries"
|
|
50
56
|
msgstr ""
|
|
51
57
|
|
|
52
58
|
#. module: l10n_it_bill_of_entry
|
|
53
59
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_bank_statement_line__forwarder_bill_of_entries_count
|
|
54
60
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_move__forwarder_bill_of_entries_count
|
|
55
|
-
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_payment__forwarder_bill_of_entries_count
|
|
56
61
|
msgid "Bill of entries for forwarder"
|
|
57
62
|
msgstr ""
|
|
58
63
|
|
|
59
64
|
#. module: l10n_it_bill_of_entry
|
|
60
65
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_bank_statement_line__bill_of_entries_count
|
|
61
66
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_move__bill_of_entries_count
|
|
62
|
-
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_payment__bill_of_entries_count
|
|
63
67
|
msgid "Bill of entries number"
|
|
64
68
|
msgstr ""
|
|
65
69
|
|
|
66
70
|
#. module: l10n_it_bill_of_entry
|
|
67
71
|
#. odoo-python
|
|
68
72
|
#: code:addons/l10n_it_bill_of_entry/models/account_move.py:0
|
|
69
|
-
#, python-format
|
|
70
73
|
msgid "Bill of entry %(partner)s is in state %(state)s"
|
|
71
74
|
msgstr ""
|
|
72
75
|
|
|
@@ -97,7 +100,6 @@ msgstr ""
|
|
|
97
100
|
#. module: l10n_it_bill_of_entry
|
|
98
101
|
#. odoo-python
|
|
99
102
|
#: code:addons/l10n_it_bill_of_entry/models/account_move.py:0
|
|
100
|
-
#, python-format
|
|
101
103
|
msgid "Can't handle more than 1 tax for line %s"
|
|
102
104
|
msgstr ""
|
|
103
105
|
|
|
@@ -120,7 +122,6 @@ msgstr ""
|
|
|
120
122
|
#. module: l10n_it_bill_of_entry
|
|
121
123
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_bank_statement_line__customs_doc_type
|
|
122
124
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_move__customs_doc_type
|
|
123
|
-
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_payment__customs_doc_type
|
|
124
125
|
msgid "Customs Doc Type"
|
|
125
126
|
msgstr ""
|
|
126
127
|
|
|
@@ -129,17 +130,20 @@ msgstr ""
|
|
|
129
130
|
msgid "Customs Expense"
|
|
130
131
|
msgstr ""
|
|
131
132
|
|
|
133
|
+
#. module: l10n_it_bill_of_entry
|
|
134
|
+
#: model:account.account,name:l10n_it_bill_of_entry.account_account_customs_expense
|
|
135
|
+
msgid "Customs Expenses"
|
|
136
|
+
msgstr ""
|
|
137
|
+
|
|
132
138
|
#. module: l10n_it_bill_of_entry
|
|
133
139
|
#. odoo-python
|
|
134
140
|
#: code:addons/l10n_it_bill_of_entry/models/account_move.py:0
|
|
135
|
-
#, python-format
|
|
136
141
|
msgid "Customs expenses"
|
|
137
142
|
msgstr ""
|
|
138
143
|
|
|
139
144
|
#. module: l10n_it_bill_of_entry
|
|
140
145
|
#. odoo-python
|
|
141
146
|
#: code:addons/l10n_it_bill_of_entry/models/account_move.py:0
|
|
142
|
-
#, python-format
|
|
143
147
|
msgid "Customs supplier"
|
|
144
148
|
msgstr ""
|
|
145
149
|
|
|
@@ -148,17 +152,25 @@ msgstr ""
|
|
|
148
152
|
msgid "Delivery Expense"
|
|
149
153
|
msgstr ""
|
|
150
154
|
|
|
155
|
+
#. module: l10n_it_bill_of_entry
|
|
156
|
+
#: model:account.account,name:l10n_it_bill_of_entry.account_account_delivery_expense
|
|
157
|
+
msgid "Delivery Expenses"
|
|
158
|
+
msgstr ""
|
|
159
|
+
|
|
160
|
+
#. module: l10n_it_bill_of_entry
|
|
161
|
+
#: model:account.fiscal.position,name:l10n_it_bill_of_entry.fiscal_position_extraEU
|
|
162
|
+
msgid "Extra EU"
|
|
163
|
+
msgstr ""
|
|
164
|
+
|
|
151
165
|
#. module: l10n_it_bill_of_entry
|
|
152
166
|
#. odoo-python
|
|
153
167
|
#: code:addons/l10n_it_bill_of_entry/models/account_move.py:0
|
|
154
|
-
#, python-format
|
|
155
168
|
msgid "Extra UE expenses"
|
|
156
169
|
msgstr ""
|
|
157
170
|
|
|
158
171
|
#. module: l10n_it_bill_of_entry
|
|
159
172
|
#. odoo-python
|
|
160
173
|
#: code:addons/l10n_it_bill_of_entry/models/account_move.py:0
|
|
161
|
-
#, python-format
|
|
162
174
|
msgid "Extra UE supplier invoice must have no taxes"
|
|
163
175
|
msgstr ""
|
|
164
176
|
|
|
@@ -168,6 +180,7 @@ msgid "Extra invoices"
|
|
|
168
180
|
msgstr ""
|
|
169
181
|
|
|
170
182
|
#. module: l10n_it_bill_of_entry
|
|
183
|
+
#: model:account.account,name:l10n_it_bill_of_entry.account_account_extraEU_purchase
|
|
171
184
|
#: model:product.template,name:l10n_it_bill_of_entry.product_product_extraEU_purchase_product_template
|
|
172
185
|
msgid "ExtraEU Goods Purchase"
|
|
173
186
|
msgstr ""
|
|
@@ -175,14 +188,12 @@ msgstr ""
|
|
|
175
188
|
#. module: l10n_it_bill_of_entry
|
|
176
189
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_bank_statement_line__forwarder_bill_of_entry_ids
|
|
177
190
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_move__forwarder_bill_of_entry_ids
|
|
178
|
-
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_payment__forwarder_bill_of_entry_ids
|
|
179
191
|
msgid "Forward Bill of Entries"
|
|
180
192
|
msgstr ""
|
|
181
193
|
|
|
182
194
|
#. module: l10n_it_bill_of_entry
|
|
183
195
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_bank_statement_line__forwarder_invoice_id
|
|
184
196
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_move__forwarder_invoice_id
|
|
185
|
-
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_payment__forwarder_invoice_id
|
|
186
197
|
#: model:ir.model.fields.selection,name:l10n_it_bill_of_entry.selection__account_move__customs_doc_type__forwarder_invoice
|
|
187
198
|
msgid "Forwarder Invoice"
|
|
188
199
|
msgstr ""
|
|
@@ -190,7 +201,6 @@ msgstr ""
|
|
|
190
201
|
#. module: l10n_it_bill_of_entry
|
|
191
202
|
#. odoo-python
|
|
192
203
|
#: code:addons/l10n_it_bill_of_entry/models/account_move.py:0
|
|
193
|
-
#, python-format
|
|
194
204
|
msgid "Forwarder invoice %s does not have lines with 'Advance Customs Vat'"
|
|
195
205
|
msgstr ""
|
|
196
206
|
|
|
@@ -205,6 +215,11 @@ msgstr ""
|
|
|
205
215
|
msgid "Generate bill of entry"
|
|
206
216
|
msgstr ""
|
|
207
217
|
|
|
218
|
+
#. module: l10n_it_bill_of_entry
|
|
219
|
+
#: model:account.tax,name:l10n_it_bill_of_entry.tax_22extraUE
|
|
220
|
+
msgid "Iva al 22% ExtraUE (credito)"
|
|
221
|
+
msgstr ""
|
|
222
|
+
|
|
208
223
|
#. module: l10n_it_bill_of_entry
|
|
209
224
|
#: model:ir.model,name:l10n_it_bill_of_entry.model_account_move
|
|
210
225
|
msgid "Journal Entry"
|
|
@@ -225,32 +240,29 @@ msgstr ""
|
|
|
225
240
|
#. module: l10n_it_bill_of_entry
|
|
226
241
|
#. odoo-python
|
|
227
242
|
#: code:addons/l10n_it_bill_of_entry/models/account_move.py:0
|
|
228
|
-
#, python-format
|
|
229
243
|
msgid "No Bill of entry Storno journal configured"
|
|
230
244
|
msgstr ""
|
|
231
245
|
|
|
232
246
|
#. module: l10n_it_bill_of_entry
|
|
233
247
|
#. odoo-python
|
|
234
248
|
#: code:addons/l10n_it_bill_of_entry/models/account_move.py:0
|
|
235
|
-
#, python-format
|
|
236
249
|
msgid "No bill of entries found for this invoice"
|
|
237
250
|
msgstr ""
|
|
238
251
|
|
|
239
252
|
#. module: l10n_it_bill_of_entry
|
|
240
253
|
#. odoo-python
|
|
241
254
|
#: code:addons/l10n_it_bill_of_entry/models/account_move.py:0
|
|
242
|
-
#, python-format
|
|
243
255
|
msgid "Please set 'Bill of entry partner' in accounting configuration"
|
|
244
256
|
msgstr ""
|
|
245
257
|
|
|
246
258
|
#. module: l10n_it_bill_of_entry
|
|
247
259
|
#. odoo-python
|
|
248
260
|
#: code:addons/l10n_it_bill_of_entry/models/account_move.py:0
|
|
249
|
-
#, python-format
|
|
250
261
|
msgid "Please set 'Bill of entry tax' in accounting configuration"
|
|
251
262
|
msgstr ""
|
|
252
263
|
|
|
253
264
|
#. module: l10n_it_bill_of_entry
|
|
265
|
+
#: model:account.account,name:l10n_it_bill_of_entry.account_account_stamp_duties
|
|
254
266
|
#: model:product.template,name:l10n_it_bill_of_entry.product_product_stamp_duties_product_template
|
|
255
267
|
msgid "Stamp Duties"
|
|
256
268
|
msgstr ""
|
|
@@ -258,7 +270,6 @@ msgstr ""
|
|
|
258
270
|
#. module: l10n_it_bill_of_entry
|
|
259
271
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_bank_statement_line__supplier_bill_of_entry_ids
|
|
260
272
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_move__supplier_bill_of_entry_ids
|
|
261
|
-
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_payment__supplier_bill_of_entry_ids
|
|
262
273
|
msgid "Supplier Bill of Entries"
|
|
263
274
|
msgstr ""
|
|
264
275
|
|
|
@@ -270,10 +281,14 @@ msgstr ""
|
|
|
270
281
|
#. module: l10n_it_bill_of_entry
|
|
271
282
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_bank_statement_line__supplier_invoice_ids
|
|
272
283
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_move__supplier_invoice_ids
|
|
273
|
-
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_payment__supplier_invoice_ids
|
|
274
284
|
msgid "Supplier Invoices"
|
|
275
285
|
msgstr ""
|
|
276
286
|
|
|
287
|
+
#. module: l10n_it_bill_of_entry
|
|
288
|
+
#: model:account.journal,name:l10n_it_bill_of_entry.account_journal_purchase_extraEU
|
|
289
|
+
msgid "Supplier Invoices ExtraUE"
|
|
290
|
+
msgstr ""
|
|
291
|
+
|
|
277
292
|
#. module: l10n_it_bill_of_entry
|
|
278
293
|
#: model:ir.actions.act_window,name:l10n_it_bill_of_entry.action_supplier_invoice
|
|
279
294
|
#: model:ir.ui.menu,name:l10n_it_bill_of_entry.menu_action_supplier_invoice
|
|
@@ -284,7 +299,6 @@ msgstr ""
|
|
|
284
299
|
#. module: l10n_it_bill_of_entry
|
|
285
300
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_bank_statement_line__extra_supplier_invoices_count
|
|
286
301
|
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_move__extra_supplier_invoices_count
|
|
287
|
-
#: model:ir.model.fields,field_description:l10n_it_bill_of_entry.field_account_payment__extra_supplier_invoices_count
|
|
288
302
|
msgid "Supplier invoices number"
|
|
289
303
|
msgstr ""
|
|
290
304
|
|
|
@@ -309,6 +323,5 @@ msgstr ""
|
|
|
309
323
|
#. module: l10n_it_bill_of_entry
|
|
310
324
|
#. odoo-python
|
|
311
325
|
#: code:addons/l10n_it_bill_of_entry/models/account_move.py:0
|
|
312
|
-
#, python-format
|
|
313
326
|
msgid "You can generate bill of entry from extra UE supplier invoice only"
|
|
314
327
|
msgstr ""
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
from odoo import fields, models
|
|
6
6
|
from odoo.exceptions import UserError
|
|
7
7
|
from odoo.fields import first
|
|
8
|
-
from odoo.tools.translate import _
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class AccountMove(models.Model):
|
|
@@ -112,7 +111,7 @@ class AccountMove(models.Model):
|
|
|
112
111
|
break
|
|
113
112
|
if not advance_customs_vat_line and list(set(boe_tax_rates)) != [0.0]:
|
|
114
113
|
raise UserError(
|
|
115
|
-
_(
|
|
114
|
+
self.env._(
|
|
116
115
|
"Forwarder invoice %s does not have lines with "
|
|
117
116
|
"'Advance Customs Vat'"
|
|
118
117
|
)
|
|
@@ -123,11 +122,11 @@ class AccountMove(models.Model):
|
|
|
123
122
|
def _get_forwarder_invoice_boe_amounts(self):
|
|
124
123
|
self.ensure_one()
|
|
125
124
|
if not self.forwarder_bill_of_entry_ids:
|
|
126
|
-
raise UserError(_("No bill of entries found for this invoice"))
|
|
125
|
+
raise UserError(self.env._("No bill of entries found for this invoice"))
|
|
127
126
|
for bill_of_entry in self.forwarder_bill_of_entry_ids:
|
|
128
127
|
if bill_of_entry.state not in ("posted", "paid"):
|
|
129
128
|
raise UserError(
|
|
130
|
-
_(
|
|
129
|
+
self.env._(
|
|
131
130
|
"Bill of entry %(partner)s is in state %(state)s",
|
|
132
131
|
partner=bill_of_entry.partner_id.name,
|
|
133
132
|
state=bill_of_entry.state,
|
|
@@ -143,7 +142,7 @@ class AccountMove(models.Model):
|
|
|
143
142
|
def _prepare_bill_of_entry_storno(self):
|
|
144
143
|
self.ensure_one()
|
|
145
144
|
if not self.company_id.bill_of_entry_journal_id:
|
|
146
|
-
raise UserError(_("No Bill of entry Storno journal configured"))
|
|
145
|
+
raise UserError(self.env._("No Bill of entry Storno journal configured"))
|
|
147
146
|
move_vals = {
|
|
148
147
|
"customs_doc_type": False,
|
|
149
148
|
"move_type": "entry",
|
|
@@ -151,10 +150,12 @@ class AccountMove(models.Model):
|
|
|
151
150
|
"date": self.invoice_date,
|
|
152
151
|
}
|
|
153
152
|
move_lines = []
|
|
154
|
-
for inv_line in self.invoice_line_ids
|
|
153
|
+
for inv_line in self.invoice_line_ids.filtered(
|
|
154
|
+
lambda line: line.display_type == "product"
|
|
155
|
+
):
|
|
155
156
|
if inv_line.advance_customs_vat:
|
|
156
157
|
line_vals = {
|
|
157
|
-
"name": _("Customs expenses"),
|
|
158
|
+
"name": self.env._("Customs expenses"),
|
|
158
159
|
"account_id": inv_line.account_id.id,
|
|
159
160
|
"debit": 0.0,
|
|
160
161
|
"credit": inv_line.price_subtotal,
|
|
@@ -170,23 +171,25 @@ class AccountMove(models.Model):
|
|
|
170
171
|
)
|
|
171
172
|
boe_account = first(boe_payable_lines).account_id
|
|
172
173
|
line_vals = {
|
|
173
|
-
"name": _("Customs supplier"),
|
|
174
|
+
"name": self.env._("Customs supplier"),
|
|
174
175
|
"account_id": first(boe_account).id,
|
|
175
176
|
"debit": bill_of_entry.amount_total,
|
|
176
177
|
"credit": 0.0,
|
|
177
178
|
"partner_id": bill_of_entry.partner_id.id,
|
|
178
179
|
}
|
|
179
180
|
move_lines.append((0, 0, line_vals))
|
|
180
|
-
for boe_line in bill_of_entry.invoice_line_ids
|
|
181
|
+
for boe_line in bill_of_entry.invoice_line_ids.filtered(
|
|
182
|
+
lambda line: line.display_type == "product"
|
|
183
|
+
):
|
|
181
184
|
if boe_line.tax_ids:
|
|
182
185
|
if len(boe_line.tax_ids) > 1:
|
|
183
186
|
raise UserError(
|
|
184
|
-
_("Can't handle more than 1 tax for line %s")
|
|
187
|
+
self.env._("Can't handle more than 1 tax for line %s")
|
|
185
188
|
% boe_line.name
|
|
186
189
|
)
|
|
187
190
|
|
|
188
191
|
line_vals = {
|
|
189
|
-
"name": _("Extra UE expenses"),
|
|
192
|
+
"name": self.env._("Extra UE expenses"),
|
|
190
193
|
"account_id": boe_line.account_id.id,
|
|
191
194
|
"debit": 0.0,
|
|
192
195
|
"credit": boe_line.price_subtotal,
|
|
@@ -258,21 +261,27 @@ class AccountMove(models.Model):
|
|
|
258
261
|
self.ensure_one()
|
|
259
262
|
for line in self.invoice_line_ids:
|
|
260
263
|
if line.tax_ids:
|
|
261
|
-
raise UserError(
|
|
264
|
+
raise UserError(
|
|
265
|
+
self.env._("Extra UE supplier invoice must have no taxes")
|
|
266
|
+
)
|
|
262
267
|
|
|
263
268
|
def generate_bill_of_entry(self):
|
|
264
269
|
self.ensure_one()
|
|
265
270
|
if self.customs_doc_type != "supplier_invoice":
|
|
266
271
|
raise UserError(
|
|
267
|
-
_(
|
|
272
|
+
self.env._(
|
|
273
|
+
"You can generate bill of entry from extra UE supplier invoice only"
|
|
274
|
+
)
|
|
268
275
|
)
|
|
269
276
|
if not self.company_id.bill_of_entry_tax_id:
|
|
270
277
|
raise UserError(
|
|
271
|
-
_("Please set 'Bill of entry tax' in accounting configuration")
|
|
278
|
+
self.env._("Please set 'Bill of entry tax' in accounting configuration")
|
|
272
279
|
)
|
|
273
280
|
if not self.company_id.bill_of_entry_partner_id:
|
|
274
281
|
raise UserError(
|
|
275
|
-
_(
|
|
282
|
+
self.env._(
|
|
283
|
+
"Please set 'Bill of entry partner' in accounting configuration"
|
|
284
|
+
)
|
|
276
285
|
)
|
|
277
286
|
self._check_no_taxes()
|
|
278
287
|
boe_inv = self.copy(
|