Skip to content

Commit c21a38c

Browse files
committed
Merge PR #2986 into 14.0
Signed-off-by eLBati
2 parents 66cd8c8 + 9e6e9f7 commit c21a38c

23 files changed

Lines changed: 2634 additions & 0 deletions

l10n_it_bill_of_entry/README.rst

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
====================
2+
ITA - Bolle doganali
3+
====================
4+
5+
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+
!! This file is generated by oca-gen-addon-readme !!
7+
!! changes will be overwritten. !!
8+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9+
10+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
11+
:target: https://odoo-community.org/page/development-status
12+
:alt: Beta
13+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
14+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
15+
:alt: License: AGPL-3
16+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
17+
:target: https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_bill_of_entry
18+
:alt: OCA/l10n-italy
19+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20+
:target: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_bill_of_entry
21+
:alt: Translate me on Weblate
22+
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23+
:target: https://runbot.odoo-community.org/runbot/122/12.0
24+
:alt: Try me on Runbot
25+
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
27+
28+
This module enables to manage extraUE import purchases, generating a bill of entry
29+
according to the supplier invoice.
30+
31+
It involves three documents:
32+
33+
* Supplier Invoice
34+
* Forwarder Invoice
35+
* Bill of Entry
36+
37+
**Table of contents**
38+
39+
.. contents::
40+
:local:
41+
42+
Configuration
43+
=============
44+
45+
**English**
46+
47+
Mandatory settings:
48+
49+
* An account journal required by the closing transfer account move (e.g. "Bolle Doganali").
50+
* An account journal for extraUE supplier invoices, apart from
51+
ordinary supplier invoices. In this way, extraUE supplier invoices don't appear in VAT registries;
52+
in this way, VAT registries have no missing numbers.
53+
* Create the "Extra UE goods purchases" and add a tax mapping: purchase taxes (e.g. 22%) should be mapped to
54+
to no one tax. In this way, every purchase invoice for extra UE fiscal position
55+
don't show taxes in lines, according to law.
56+
* A virtual supplier (e.g. "Customs" or "Dogana") for the bill of entry.
57+
* The forwarder as a real supplier.
58+
59+
Optional settings:
60+
61+
* An expense account where recording the bill of entry net amount (e.g. "ACQUISTO MERCI ExtraUE").
62+
* An expense account where recording the bill of entry VAT amount,
63+
paid in advance by the forwarder and declared in the forwarder invoice (e.g. "SPESE DOGANALI ANTICIPATE").
64+
* An account tax, with the same VAT rate as the ordinary one (i.e. 22% for Italy),
65+
applied on the bill of entry net amount (e.g. "22% debito ExtraUE"). In this way,
66+
bill of entries are highlighted in VAT registries due to this tax code.
67+
* An account for delivery expenses, recorded in the forwarder invoice (e.g. "SPESE DI TRASPORTO").
68+
* An account for customs duties, recorded in the forwarder invoice (e.g. "DIRITTI DOGANALI").
69+
* An account for stamp duties, recorded in the forwarder invoice (e.g. "IMPOSTE DI BOLLO").
70+
71+
**Italiano**
72+
73+
Impostazioni obbligatorie:
74+
75+
* Un registro utilizzato per la registrazione di giroconto (ad es. "Bolle Doganali" o "Varie") da impostare in configurazione contabilità.
76+
* Un imposta con aliquota standard da applicare alla bolla doganale (ad es. "22% credito ExtraUE") da impostare in configurazione contabilità.
77+
In questo modo questa imposta viene evidenziata nei registri IVA.
78+
* Un fornitore "Dogana" per le bolle doganali, da impostare in configurazione contabilità.
79+
* Un registro per le fatture dei fornitori extra UE, distinto da quello delle fatture passive ordinarie.
80+
In questo modo, le fatture dei fornitori extra non appariranno nei registri IVA ed i registri IVA non avranno numeri mancanti.
81+
* Una posizione fiscale "Acquisti beni extra UE" e aggiungere la mappatura: l'imposta d'acquisto (ad es. 22%) deve essere mappata a nessuna imposta.
82+
In questo modo, ogni fattura passive per questa posizione fiscale non avrà imposte sulle righe.
83+
* Il fornitore spedizioniere
84+
85+
Impostazioni opzionali:
86+
87+
* Un conto di costo dove registrare l'importo netto della bolla doganale (ad es. "ACQUISTO MERCI ExtraUE"),
88+
da associare eventualmente ai prodotti acquistati extra UE
89+
* Un conto di costo dove registrare l'importo dell'IVA della bolla doganale,
90+
pagata in anticipo dello spedizioniere e evidenziata nella fattura dello spedizioniere (ad es. "SPESE DOGANALI ANTICIPATE").
91+
* Un conto per le spese di consegna, registrate nella fattura spedizioniere (ad es. "SPESE DI TRASPORTO")
92+
* Un conto per i diritti doganali, registrati nella fattura spedizioniere (ad es. "DIRITTI DOGANALI")
93+
* Un conto per le imposte di bollo, registrate nella fattura spedizioniere (ad es. "IMPOSTE DI BOLLO")
94+
95+
Usage
96+
=====
97+
98+
**English**
99+
100+
From supplier invoice it is possible to generate the bill of entry.
101+
102+
The forwarder invoice requires one (or more) line(s) marked as the
103+
advance customs vat.
104+
105+
At the forwarder invoice confirmation, it will be linked to the closing
106+
transfer account move, which closes and reconciles the bill of entry.
107+
108+
**Italiano**
109+
110+
Dalla fattura fornitore è possibile generare la bolla doganale.
111+
112+
Nella fattura spedizioniere bisogna indicare quale (o quali) riga (righe)
113+
rappresenti(no) l'IVA anticipata alla dogana.
114+
115+
Alla conferma della fattura spedizioniere, verrà generata la scrittura
116+
contabile di giroconto per chiudere la bolla doganale.
117+
118+
Bug Tracker
119+
===========
120+
121+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues>`_.
122+
In case of trouble, please check there if your issue has already been reported.
123+
If you spotted it first, help us smashing it by providing a detailed and welcomed
124+
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_bill_of_entry%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
125+
126+
Do not contact contributors directly about support or help with technical issues.
127+
128+
Credits
129+
=======
130+
131+
Authors
132+
~~~~~~~
133+
134+
* Agile Business Group
135+
* CQ Creativi Quadrati
136+
* TAKOBI
137+
138+
Contributors
139+
~~~~~~~~~~~~
140+
141+
* Alex Comba <alex.comba@agilebg.com>
142+
* `TAKOBI <https://takobi.online>`_:
143+
144+
* Lorenzo Battistini
145+
146+
* Diego Bruselli <d.bruselli@creativiquadrati.it>
147+
148+
Maintainers
149+
~~~~~~~~~~~
150+
151+
This module is maintained by the OCA.
152+
153+
.. image:: https://odoo-community.org/logo.png
154+
:alt: Odoo Community Association
155+
:target: https://odoo-community.org
156+
157+
OCA, or the Odoo Community Association, is a nonprofit organization whose
158+
mission is to support the collaborative development of Odoo features and
159+
promote its widespread use.
160+
161+
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_bill_of_entry>`_ project on GitHub.
162+
163+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

l10n_it_bill_of_entry/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from . import models
4+
from . import tests
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright 2013-2017 Agile Business Group sagl (http://www.agilebg.com)
2+
# Copyright 2013-2017 Alex Comba <alex.comba@agilebg.com>
3+
# Copyright 2013-2017 Lorenzo Battistini <https://github.com/eLBati>
4+
# Copyright 2017 CQ Creativi Quadrati (http://www.creativiquadrati.it)
5+
# Copyright 2017 Diego Bruselli <d.bruselli@creativiquadrati.it>
6+
# Copyright 2022 Simone Rubino - TAKOBI
7+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
8+
9+
{
10+
"name": "ITA - Bolle doganali",
11+
"version": "14.0.1.0.0",
12+
"category": "Localization/Italy",
13+
"author": "Agile Business Group, CQ Creativi Quadrati, TAKOBI, "
14+
"Odoo Community Association (OCA)",
15+
"website": "https://github.com/OCA/l10n-italy" "/tree/12.0/l10n_it_bill_of_entry",
16+
"license": "AGPL-3",
17+
"depends": [
18+
"base",
19+
"account",
20+
],
21+
"data": [
22+
"views/company_view.xml",
23+
"views/account_invoice_view.xml",
24+
],
25+
"demo": [
26+
"demo/bill_of_entry_demo.xml",
27+
],
28+
"installable": True,
29+
}
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
~ Copyright 2022 Simone Rubino - TAKOBI
4+
~ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
5+
-->
6+
<odoo>
7+
<!-- Account account -->
8+
<record id="account_account_extraEU_purchase" model="account.account">
9+
<field name="code">280310</field>
10+
<field name="name">ExtraEU Goods Purchase</field>
11+
<field
12+
name="user_type_id"
13+
ref="account.data_account_type_current_liabilities"
14+
/>
15+
<field name="reconcile">True</field>
16+
</record>
17+
<record id="account_account_adv_customs_expense" model="account.account">
18+
<field name="code">280320</field>
19+
<field name="name">Advanced Customs Expenses</field>
20+
<field
21+
name="user_type_id"
22+
ref="account.data_account_type_current_liabilities"
23+
/>
24+
<field name="reconcile">True</field>
25+
</record>
26+
<record id="account_account_customs_expense" model="account.account">
27+
<field name="code">421500</field>
28+
<field name="name">Customs Expenses</field>
29+
<field name="user_type_id" ref="account.data_account_type_expenses" />
30+
<field name="reconcile">True</field>
31+
</record>
32+
<record id="account_account_stamp_duties" model="account.account">
33+
<field name="code">421400</field>
34+
<field name="name">Stamp Duties</field>
35+
<field name="user_type_id" ref="account.data_account_type_expenses" />
36+
<field name="reconcile">True</field>
37+
</record>
38+
39+
<!--
40+
When l10n_it is installed, it creates the l10n_it.1_4201 account
41+
(420100 costi di trasporto)
42+
-->
43+
<record id="account_account_delivery_expense" model="account.account">
44+
<field name="code">420101</field>
45+
<field name="name">Delivery Expenses</field>
46+
<field name="user_type_id" ref="account.data_account_type_expenses" />
47+
<field name="reconcile">True</field>
48+
</record>
49+
50+
<!-- Account Tax -->
51+
<record id="tax_tag_22extraUE" model="account.account.tag">
52+
<field name="name">22aExtraUE</field>
53+
<field name="applicability">taxes</field>
54+
<field name="country_id" ref="base.it" />
55+
</record>
56+
<record id="tax_22extraUE" model="account.tax">
57+
<field name="name">Iva al 22% ExtraUE (credito)</field>
58+
<field name="type_tax_use">purchase</field>
59+
<field name="amount_type">percent</field>
60+
<field name="amount">22</field>
61+
<field name="description">22aExtraUE</field>
62+
<field name="tax_group_id" ref="account.tax_group_taxes" />
63+
<field name="sequence">99</field>
64+
</record>
65+
66+
<!-- Partner -->
67+
<record id="partner_customs" model="res.partner">
68+
<field name="name">Customs</field>
69+
<field name="is_company">True</field>
70+
</record>
71+
72+
<!-- Account Fiscal Position -->
73+
<record id="fiscal_position_extraEU" model="account.fiscal.position">
74+
<field name="name">Extra EU</field>
75+
</record>
76+
77+
<!-- Account Journal -->
78+
<record id="account_journal_purchase_extraEU" model="account.journal">
79+
<field name="name">Supplier Invoices ExtraUE</field>
80+
<field name="type">purchase</field>
81+
<field name="code">NOUE</field>
82+
</record>
83+
84+
<!-- Product product -->
85+
<record id="product_product_extraEU_purchase" model="product.product">
86+
<field name="name">ExtraEU Goods Purchase</field>
87+
<field name="categ_id" ref="product.product_category_1" />
88+
<field name="purchase_ok">True</field>
89+
<field name="standard_price">1.0</field>
90+
<field name="list_price">1.0</field>
91+
<field name="type">service</field>
92+
<field name="uom_id" ref="uom.product_uom_unit" />
93+
<field name="uom_po_id" ref="uom.product_uom_unit" />
94+
</record>
95+
<record id="product_product_adv_customs_expense" model="product.product">
96+
<field name="name">Advance Customs Expense</field>
97+
<field name="categ_id" ref="product.product_category_1" />
98+
<field name="purchase_ok">True</field>
99+
<field name="standard_price">1.0</field>
100+
<field name="list_price">1.0</field>
101+
<field name="type">service</field>
102+
<field name="uom_id" ref="uom.product_uom_unit" />
103+
<field name="uom_po_id" ref="uom.product_uom_unit" />
104+
</record>
105+
<record id="product_product_customs_expense" model="product.product">
106+
<field name="name">Customs Expense</field>
107+
<field name="categ_id" ref="product.product_category_1" />
108+
<field name="purchase_ok">True</field>
109+
<field name="standard_price">1.0</field>
110+
<field name="list_price">1.0</field>
111+
<field name="type">service</field>
112+
<field name="uom_id" ref="uom.product_uom_unit" />
113+
<field name="uom_po_id" ref="uom.product_uom_unit" />
114+
</record>
115+
<record id="product_product_delivery" model="product.product">
116+
<field name="name">Delivery Expense</field>
117+
<field name="categ_id" ref="product.product_category_1" />
118+
<field name="purchase_ok">True</field>
119+
<field name="standard_price">1.0</field>
120+
<field name="list_price">1.0</field>
121+
<field name="type">service</field>
122+
<field name="uom_id" ref="uom.product_uom_unit" />
123+
<field name="uom_po_id" ref="uom.product_uom_unit" />
124+
<!-- Usually this is standard VAT -->
125+
<field name="supplier_taxes_id" eval="[(6, 0, [ref('tax_22extraUE')])]" />
126+
</record>
127+
<record id="product_product_stamp_duties" model="product.product">
128+
<field name="name">Stamp Duties</field>
129+
<field name="categ_id" ref="product.product_category_1" />
130+
<field name="purchase_ok">True</field>
131+
<field name="standard_price">1.0</field>
132+
<field name="list_price">1.0</field>
133+
<field name="type">service</field>
134+
<field name="uom_id" ref="uom.product_uom_unit" />
135+
<field name="uom_po_id" ref="uom.product_uom_unit" />
136+
<field name="property_account_expense_id" ref="account_account_stamp_duties" />
137+
</record>
138+
</odoo>

0 commit comments

Comments
 (0)