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
|
@@ -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,9 +367,9 @@ 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:3e00d2ca646f727ba7922495ad3269aac0ba5e27f1d31378f52f1d8822f63b63
|
|
370
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
371
|
-
<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/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-italy/tree/
|
|
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/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_bill_of_entry"><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-18-0/l10n-italy-18-0-l10n_it_bill_of_entry"><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=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
372
373
|
<p>This module enables to manage extraUE import purchases, generating a
|
|
373
374
|
bill of entry according to the supplier invoice.</p>
|
|
374
375
|
<p>It involves three documents:</p>
|
|
@@ -396,18 +397,17 @@ bill of entry according to the supplier invoice.</p>
|
|
|
396
397
|
<p><strong>English</strong></p>
|
|
397
398
|
<p>Mandatory settings:</p>
|
|
398
399
|
<ul class="simple">
|
|
399
|
-
<li>An account journal required by the closing transfer account move
|
|
400
|
-
|
|
400
|
+
<li>An account journal required by the closing transfer account move (e.g.
|
|
401
|
+
“Bolle Doganali”).</li>
|
|
401
402
|
<li>An account journal for extraUE supplier invoices, apart from ordinary
|
|
402
|
-
supplier invoices. In this way, extraUE supplier invoices don’t
|
|
403
|
-
|
|
403
|
+
supplier invoices. In this way, extraUE supplier invoices don’t appear
|
|
404
|
+
in VAT registries; in this way, VAT registries have no missing
|
|
404
405
|
numbers.</li>
|
|
405
406
|
<li>Create the “Extra UE goods purchases” and add a tax mapping: purchase
|
|
406
|
-
taxes (e.g. 22%) should be mapped to to no one tax. In this way,
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
<li>A virtual supplier (e.g. “Customs” or “Dogana”) for the bill of
|
|
410
|
-
entry.</li>
|
|
407
|
+
taxes (e.g. 22%) should be mapped to to no one tax. In this way, every
|
|
408
|
+
purchase invoice for extra UE fiscal position don’t show taxes in
|
|
409
|
+
lines, according to law.</li>
|
|
410
|
+
<li>A virtual supplier (e.g. “Customs” or “Dogana”) for the bill of entry.</li>
|
|
411
411
|
<li>The forwarder as a real supplier.</li>
|
|
412
412
|
</ul>
|
|
413
413
|
<p>Optional settings:</p>
|
|
@@ -423,8 +423,8 @@ ExtraUE”). In this way, bill of entries are highlighted in VAT
|
|
|
423
423
|
registries due to this tax code.</li>
|
|
424
424
|
<li>An account for delivery expenses, recorded in the forwarder invoice
|
|
425
425
|
(e.g. “SPESE DI TRASPORTO”).</li>
|
|
426
|
-
<li>An account for customs duties, recorded in the forwarder invoice
|
|
427
|
-
|
|
426
|
+
<li>An account for customs duties, recorded in the forwarder invoice (e.g.
|
|
427
|
+
“DIRITTI DOGANALI”).</li>
|
|
428
428
|
<li>An account for stamp duties, recorded in the forwarder invoice (e.g.
|
|
429
429
|
“IMPOSTE DI BOLLO”).</li>
|
|
430
430
|
</ul>
|
|
@@ -435,15 +435,14 @@ registries due to this tax code.</li>
|
|
|
435
435
|
“Bolle Doganali” o “Varie”) da impostare in configurazione
|
|
436
436
|
contabilità.</li>
|
|
437
437
|
<li>Un imposta con aliquota standard da applicare alla bolla doganale (ad
|
|
438
|
-
es. “22% credito ExtraUE”) da impostare in configurazione
|
|
439
|
-
|
|
440
|
-
registri IVA.</li>
|
|
438
|
+
es. “22% credito ExtraUE”) da impostare in configurazione contabilità.
|
|
439
|
+
In questo modo questa imposta viene evidenziata nei registri IVA.</li>
|
|
441
440
|
<li>Un fornitore “Dogana” per le bolle doganali, da impostare in
|
|
442
441
|
configurazione contabilità.</li>
|
|
443
442
|
<li>Un registro per le fatture dei fornitori extra UE, distinto da quello
|
|
444
443
|
delle fatture passive ordinarie. In questo modo, le fatture dei
|
|
445
|
-
fornitori extra non appariranno nei registri IVA ed i registri IVA
|
|
446
|
-
|
|
444
|
+
fornitori extra non appariranno nei registri IVA ed i registri IVA non
|
|
445
|
+
avranno numeri mancanti.</li>
|
|
447
446
|
<li>Una posizione fiscale “Acquisti beni extra UE” e aggiungere la
|
|
448
447
|
mappatura: l’imposta d’acquisto (ad es. 22%) deve essere mappata a
|
|
449
448
|
nessuna imposta. In questo modo, ogni fattura passive per questa
|
|
@@ -452,9 +451,9 @@ posizione fiscale non avrà imposte sulle righe.</li>
|
|
|
452
451
|
</ul>
|
|
453
452
|
<p>Impostazioni opzionali:</p>
|
|
454
453
|
<ul class="simple">
|
|
455
|
-
<li>Un conto di costo dove registrare l’importo netto della bolla
|
|
456
|
-
|
|
457
|
-
|
|
454
|
+
<li>Un conto di costo dove registrare l’importo netto della bolla doganale
|
|
455
|
+
(ad es. “ACQUISTO MERCI ExtraUE”), da associare eventualmente ai
|
|
456
|
+
prodotti acquistati extra UE</li>
|
|
458
457
|
<li>Un conto di costo dove registrare l’importo dell’IVA della bolla
|
|
459
458
|
doganale, pagata in anticipo dello spedizioniere e evidenziata nella
|
|
460
459
|
fattura dello spedizioniere (ad es. “SPESE DOGANALI ANTICIPATE”).</li>
|
|
@@ -486,7 +485,7 @@ contabile di giroconto per chiudere la bolla doganale.</p>
|
|
|
486
485
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-italy/issues">GitHub Issues</a>.
|
|
487
486
|
In case of trouble, please check there if your issue has already been reported.
|
|
488
487
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
489
|
-
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_bill_of_entry%0Aversion:%
|
|
488
|
+
<a class="reference external" href="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**">feedback</a>.</p>
|
|
490
489
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
|
491
490
|
</div>
|
|
492
491
|
<div class="section" id="credits">
|
|
@@ -513,16 +512,19 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
513
512
|
<li>Simone Rubino <<a class="reference external" href="mailto:simone.rubino@aion-tech.it">simone.rubino@aion-tech.it</a>></li>
|
|
514
513
|
</ul>
|
|
515
514
|
</li>
|
|
515
|
+
<li><a class="reference external" href="https://nextev.it/">Nextev Srl</a> <<a class="reference external" href="mailto:odoo@nextev.it">odoo@nextev.it</a>></li>
|
|
516
516
|
</ul>
|
|
517
517
|
</div>
|
|
518
518
|
<div class="section" id="maintainers">
|
|
519
519
|
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
|
|
520
520
|
<p>This module is maintained by the OCA.</p>
|
|
521
|
-
<a class="reference external image-reference" href="https://odoo-community.org"
|
|
521
|
+
<a class="reference external image-reference" href="https://odoo-community.org">
|
|
522
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
|
523
|
+
</a>
|
|
522
524
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
523
525
|
mission is to support the collaborative development of Odoo features and
|
|
524
526
|
promote its widespread use.</p>
|
|
525
|
-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/
|
|
527
|
+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_bill_of_entry">OCA/l10n-italy</a> project on GitHub.</p>
|
|
526
528
|
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
|
527
529
|
</div>
|
|
528
530
|
</div>
|
|
@@ -6,14 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
from odoo.exceptions import UserError
|
|
8
8
|
from odoo.fields import first
|
|
9
|
-
from odoo.tests
|
|
9
|
+
from odoo.tests import Form, tagged
|
|
10
10
|
|
|
11
11
|
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
@tagged("post_install", "-at_install")
|
|
15
15
|
class TestBillOfEntry(AccountTestInvoicingCommon):
|
|
16
|
-
def _create_invoice(
|
|
16
|
+
def _create_invoice(
|
|
17
|
+
self, partner, customs_doc_type, journal, products_list, notes_sections_list
|
|
18
|
+
):
|
|
17
19
|
invoice = self.init_invoice(
|
|
18
20
|
"in_invoice",
|
|
19
21
|
partner=partner,
|
|
@@ -25,9 +27,14 @@ class TestBillOfEntry(AccountTestInvoicingCommon):
|
|
|
25
27
|
invoice_form.journal_id = journal
|
|
26
28
|
for product, qty, price in products_list:
|
|
27
29
|
with invoice_form.invoice_line_ids.new() as line:
|
|
30
|
+
line.name = product.name
|
|
28
31
|
line.product_id = product
|
|
29
32
|
line.price_unit = price
|
|
30
33
|
line.quantity = qty
|
|
34
|
+
for name, display_type in notes_sections_list:
|
|
35
|
+
with invoice_form.invoice_line_ids.new() as line:
|
|
36
|
+
line.name = name
|
|
37
|
+
line.display_type = display_type
|
|
31
38
|
|
|
32
39
|
invoice = invoice_form.save()
|
|
33
40
|
return invoice
|
|
@@ -44,7 +51,7 @@ class TestBillOfEntry(AccountTestInvoicingCommon):
|
|
|
44
51
|
self.fp_model = self.env["account.fiscal.position"]
|
|
45
52
|
self.fp_tax_model = self.env["account.fiscal.position.tax"]
|
|
46
53
|
|
|
47
|
-
demo_data_company = self.env.ref("base.
|
|
54
|
+
demo_data_company = self.env.ref("base.demo_company_it")
|
|
48
55
|
self.env.user.company_ids |= demo_data_company
|
|
49
56
|
self.env.user.company_id = demo_data_company
|
|
50
57
|
# Now that current user can access the company,
|
|
@@ -64,7 +71,7 @@ class TestBillOfEntry(AccountTestInvoicingCommon):
|
|
|
64
71
|
"l10n_it_bill_of_entry.account_journal_purchase_extraEU"
|
|
65
72
|
)
|
|
66
73
|
# Bill of entry storno journal
|
|
67
|
-
self.company = self.env.ref("base.
|
|
74
|
+
self.company = self.env.ref("base.demo_company_it")
|
|
68
75
|
self.bill_of_entry_journal = self.journal_model.create(
|
|
69
76
|
{
|
|
70
77
|
"name": "bill_of_entry_journal",
|
|
@@ -81,7 +88,9 @@ class TestBillOfEntry(AccountTestInvoicingCommon):
|
|
|
81
88
|
"amount": 22,
|
|
82
89
|
"amount_type": "percent",
|
|
83
90
|
"type_tax_use": "purchase",
|
|
84
|
-
"tax_group_id": self.env.ref(
|
|
91
|
+
"tax_group_id": self.env.ref(
|
|
92
|
+
f"account.{demo_data_company.id}_tax_group_iva_22"
|
|
93
|
+
).id,
|
|
85
94
|
}
|
|
86
95
|
)
|
|
87
96
|
self.fiscpos_extra = self.env.ref(
|
|
@@ -144,6 +153,7 @@ class TestBillOfEntry(AccountTestInvoicingCommon):
|
|
|
144
153
|
[
|
|
145
154
|
(self.product1, 1, 2500),
|
|
146
155
|
],
|
|
156
|
+
[],
|
|
147
157
|
)
|
|
148
158
|
|
|
149
159
|
# Bill of Entry - draft state
|
|
@@ -154,6 +164,9 @@ class TestBillOfEntry(AccountTestInvoicingCommon):
|
|
|
154
164
|
[
|
|
155
165
|
(self.product_extra, 1, 2500),
|
|
156
166
|
],
|
|
167
|
+
[
|
|
168
|
+
("nota", "line_note"),
|
|
169
|
+
],
|
|
157
170
|
)
|
|
158
171
|
bill_of_entry_form = Form(self.bill_of_entry)
|
|
159
172
|
bill_of_entry_form.supplier_invoice_ids.clear()
|
|
@@ -169,6 +182,7 @@ class TestBillOfEntry(AccountTestInvoicingCommon):
|
|
|
169
182
|
(self.product_delivery, 1, 300),
|
|
170
183
|
(self.adv_customs_expense, 1, 550),
|
|
171
184
|
],
|
|
185
|
+
[],
|
|
172
186
|
)
|
|
173
187
|
forwarder_invoice_form = Form(self.forwarder_invoice)
|
|
174
188
|
with forwarder_invoice_form.invoice_line_ids.edit(1) as line:
|
|
@@ -16,13 +16,7 @@
|
|
|
16
16
|
type="object"
|
|
17
17
|
class="oe_stat_button"
|
|
18
18
|
icon="fa-pencil-square-o"
|
|
19
|
-
|
|
20
|
-
'invisible': [
|
|
21
|
-
'|',
|
|
22
|
-
('move_type', '!=', 'in_invoice'),
|
|
23
|
-
('bill_of_entries_count', '=', 0),
|
|
24
|
-
],
|
|
25
|
-
}"
|
|
19
|
+
invisible="move_type != 'in_invoice' or bill_of_entries_count == 0"
|
|
26
20
|
>
|
|
27
21
|
<field
|
|
28
22
|
name="bill_of_entries_count"
|
|
@@ -35,13 +29,7 @@
|
|
|
35
29
|
type="object"
|
|
36
30
|
class="oe_stat_button"
|
|
37
31
|
icon="fa-pencil-square-o"
|
|
38
|
-
|
|
39
|
-
'invisible': [
|
|
40
|
-
'|',
|
|
41
|
-
('move_type', '!=', 'in_invoice'),
|
|
42
|
-
('extra_supplier_invoices_count', '=', 0),
|
|
43
|
-
],
|
|
44
|
-
}"
|
|
32
|
+
invisible="move_type != 'in_invoice' or extra_supplier_invoices_count == 0"
|
|
45
33
|
>
|
|
46
34
|
<field
|
|
47
35
|
name="extra_supplier_invoices_count"
|
|
@@ -54,13 +42,7 @@
|
|
|
54
42
|
type="object"
|
|
55
43
|
class="oe_stat_button"
|
|
56
44
|
icon="fa-pencil-square-o"
|
|
57
|
-
|
|
58
|
-
'invisible': [
|
|
59
|
-
'|',
|
|
60
|
-
('move_type', '!=', 'in_invoice'),
|
|
61
|
-
('forwarder_bill_of_entries_count', '=', 0),
|
|
62
|
-
],
|
|
63
|
-
}"
|
|
45
|
+
invisible="move_type != 'in_invoice' or forwarder_bill_of_entries_count == 0"
|
|
64
46
|
>
|
|
65
47
|
<field
|
|
66
48
|
name="forwarder_bill_of_entries_count"
|
|
@@ -73,15 +55,7 @@
|
|
|
73
55
|
<button
|
|
74
56
|
name="generate_bill_of_entry"
|
|
75
57
|
class="oe_highlight"
|
|
76
|
-
|
|
77
|
-
'invisible': [
|
|
78
|
-
'|',
|
|
79
|
-
('move_type', '!=', 'in_invoice'),
|
|
80
|
-
'|',
|
|
81
|
-
('customs_doc_type', '!=', 'supplier_invoice'),
|
|
82
|
-
('bill_of_entries_count', '!=', 0),
|
|
83
|
-
],
|
|
84
|
-
}"
|
|
58
|
+
invisible="move_type != 'in_invoice' or customs_doc_type != 'supplier_invoice' or bill_of_entries_count != 0"
|
|
85
59
|
string="Generate bill of entry"
|
|
86
60
|
type="object"
|
|
87
61
|
groups="account.group_account_invoice"
|
|
@@ -90,46 +64,32 @@
|
|
|
90
64
|
<group id="header_right_group" position="inside">
|
|
91
65
|
<field
|
|
92
66
|
name="customs_doc_type"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
('move_type', '!=', 'in_invoice'),
|
|
96
|
-
],
|
|
97
|
-
'readonly': [
|
|
98
|
-
'|',
|
|
99
|
-
('state', '!=', 'draft'),
|
|
100
|
-
('forwarder_bill_of_entries_count', '!=', 0),
|
|
101
|
-
],
|
|
102
|
-
}"
|
|
67
|
+
invisible="move_type != 'in_invoice'"
|
|
68
|
+
readonly="state != 'draft' or forwarder_bill_of_entries_count != 0"
|
|
103
69
|
/>
|
|
104
70
|
</group>
|
|
105
71
|
<xpath expr="//notebook/page[2]" position="after">
|
|
106
72
|
<page
|
|
107
73
|
string="Customs"
|
|
108
74
|
name="customs"
|
|
109
|
-
|
|
110
|
-
'invisible': [
|
|
111
|
-
'|',
|
|
112
|
-
('move_type', '!=', 'in_invoice'),
|
|
113
|
-
('customs_doc_type','not in', ['bill_of_entry', 'forwarder_invoice']),
|
|
114
|
-
],
|
|
115
|
-
}"
|
|
75
|
+
invisible="move_type != 'in_invoice' or customs_doc_type not in ('bill_of_entry', 'forwarder_invoice')"
|
|
116
76
|
>
|
|
117
77
|
<separator
|
|
118
78
|
string="Supplier invoices"
|
|
119
79
|
name="supplier_invoices"
|
|
120
80
|
colspan="4"
|
|
121
|
-
|
|
81
|
+
invisible="customs_doc_type != 'bill_of_entry'"
|
|
122
82
|
/>
|
|
123
83
|
<field
|
|
124
84
|
name="supplier_invoice_ids"
|
|
125
|
-
|
|
85
|
+
invisible="customs_doc_type != 'bill_of_entry'"
|
|
126
86
|
domain="[('customs_doc_type', '=', 'supplier_invoice')]"
|
|
127
87
|
context="{'default_customs_doc_type': 'supplier_invoice'}"
|
|
128
88
|
/>
|
|
129
89
|
<group name="forwarder_invoice">
|
|
130
90
|
<field
|
|
131
91
|
name="forwarder_invoice_id"
|
|
132
|
-
|
|
92
|
+
invisible="customs_doc_type != 'bill_of_entry'"
|
|
133
93
|
domain="[('customs_doc_type','=', 'forwarder_invoice'), ('state', '=', 'draft')]"
|
|
134
94
|
context="{'default_customs_doc_type': 'forwarder_invoice'}"
|
|
135
95
|
/>
|
|
@@ -137,24 +97,18 @@
|
|
|
137
97
|
<group name="storno">
|
|
138
98
|
<field
|
|
139
99
|
name="bill_of_entry_storno_id"
|
|
140
|
-
|
|
100
|
+
invisible="customs_doc_type != 'forwarder_invoice'"
|
|
141
101
|
/>
|
|
142
102
|
</group>
|
|
143
103
|
</page>
|
|
144
104
|
</xpath>
|
|
145
105
|
<xpath
|
|
146
|
-
expr="//notebook/page[1]/field[@name='invoice_line_ids']/
|
|
106
|
+
expr="//notebook/page[1]/field[@name='invoice_line_ids']/list/field[@name='price_subtotal']"
|
|
147
107
|
position="after"
|
|
148
108
|
>
|
|
149
109
|
<field
|
|
150
110
|
name="advance_customs_vat"
|
|
151
|
-
|
|
152
|
-
'column_invisible': [
|
|
153
|
-
'|',
|
|
154
|
-
('parent.move_type', '!=', 'in_invoice'),
|
|
155
|
-
('parent.customs_doc_type', '!=', 'forwarder_invoice'),
|
|
156
|
-
],
|
|
157
|
-
}"
|
|
111
|
+
column_invisible="parent.move_type != 'in_invoice' or parent.customs_doc_type != 'forwarder_invoice'"
|
|
158
112
|
/>
|
|
159
113
|
</xpath>
|
|
160
114
|
</field>
|
|
@@ -170,7 +124,7 @@
|
|
|
170
124
|
<record id="action_supplier_invoice" model="ir.actions.act_window">
|
|
171
125
|
<field name="name">Supplier invoices</field>
|
|
172
126
|
<field name="res_model">account.move</field>
|
|
173
|
-
<field name="view_mode">
|
|
127
|
+
<field name="view_mode">list,kanban,form,pivot,graph,activity</field>
|
|
174
128
|
<field
|
|
175
129
|
name="domain"
|
|
176
130
|
>[('move_type','=','in_invoice'), ('customs_doc_type', '=', 'supplier_invoice')]</field>
|
|
@@ -180,7 +134,7 @@
|
|
|
180
134
|
</record>
|
|
181
135
|
<record id="action_supplier_invoice_view1" model="ir.actions.act_window.view">
|
|
182
136
|
<field eval="1" name="sequence" />
|
|
183
|
-
<field name="view_mode">
|
|
137
|
+
<field name="view_mode">list</field>
|
|
184
138
|
<field name="view_id" ref="account.view_move_tree" />
|
|
185
139
|
<field name="act_window_id" ref="action_supplier_invoice" />
|
|
186
140
|
</record>
|
|
@@ -199,7 +153,7 @@
|
|
|
199
153
|
<record id="action_bill_of_entry" model="ir.actions.act_window">
|
|
200
154
|
<field name="name">Bills of entry</field>
|
|
201
155
|
<field name="res_model">account.move</field>
|
|
202
|
-
<field name="view_mode">
|
|
156
|
+
<field name="view_mode">list,kanban,form,pivot,graph,activity</field>
|
|
203
157
|
<field
|
|
204
158
|
name="domain"
|
|
205
159
|
>[('move_type','=','in_invoice'), ('customs_doc_type', '=', 'bill_of_entry')]</field>
|
|
@@ -209,7 +163,7 @@
|
|
|
209
163
|
</record>
|
|
210
164
|
<record id="action_bill_of_entry_view1" model="ir.actions.act_window.view">
|
|
211
165
|
<field eval="1" name="sequence" />
|
|
212
|
-
<field name="view_mode">
|
|
166
|
+
<field name="view_mode">list</field>
|
|
213
167
|
<field name="view_id" ref="account.view_move_tree" />
|
|
214
168
|
<field name="act_window_id" ref="action_bill_of_entry" />
|
|
215
169
|
</record>
|
|
@@ -228,7 +182,7 @@
|
|
|
228
182
|
<record id="action_forwarder_invoice" model="ir.actions.act_window">
|
|
229
183
|
<field name="name">Forwarder invoices</field>
|
|
230
184
|
<field name="res_model">account.move</field>
|
|
231
|
-
<field name="view_mode">
|
|
185
|
+
<field name="view_mode">list,kanban,form,pivot,graph,activity</field>
|
|
232
186
|
<field
|
|
233
187
|
name="domain"
|
|
234
188
|
>[('move_type','=','in_invoice'), ('customs_doc_type', '=', 'forwarder_invoice')]</field>
|
|
@@ -238,7 +192,7 @@
|
|
|
238
192
|
</record>
|
|
239
193
|
<record id="action_forwarder_invoice_view1" model="ir.actions.act_window.view">
|
|
240
194
|
<field eval="1" name="sequence" />
|
|
241
|
-
<field name="view_mode">
|
|
195
|
+
<field name="view_mode">list</field>
|
|
242
196
|
<field name="view_id" ref="account.view_move_tree" />
|
|
243
197
|
<field name="act_window_id" ref="action_forwarder_invoice" />
|
|
244
198
|
</record>
|
|
@@ -4,67 +4,37 @@
|
|
|
4
4
|
~ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
5
5
|
-->
|
|
6
6
|
<odoo>
|
|
7
|
-
|
|
8
7
|
<record id="view_boe_config_settings" model="ir.ui.view">
|
|
9
8
|
<field name="name">view.boe.config.setting</field>
|
|
10
9
|
<field name="model">res.config.settings</field>
|
|
11
10
|
<field name="inherit_id" ref="account.res_config_settings_view_form" />
|
|
12
11
|
<field name="arch" type="xml">
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/>
|
|
40
|
-
</div>
|
|
41
|
-
<div>
|
|
42
|
-
<label for="bill_of_entry_tax_id" />
|
|
43
|
-
<div
|
|
44
|
-
class="text-muted"
|
|
45
|
-
>Tax used in bill of entries generation, when product is not present</div>
|
|
46
|
-
<field
|
|
47
|
-
name="bill_of_entry_tax_id"
|
|
48
|
-
class="o_light_label"
|
|
49
|
-
options="{'no_create': True}"
|
|
50
|
-
/>
|
|
51
|
-
</div>
|
|
52
|
-
<div>
|
|
53
|
-
<label for="bill_of_entry_partner_id" />
|
|
54
|
-
<div
|
|
55
|
-
class="text-muted"
|
|
56
|
-
>Supplier used in bill of entries</div>
|
|
57
|
-
<field
|
|
58
|
-
name="bill_of_entry_partner_id"
|
|
59
|
-
class="o_light_label"
|
|
60
|
-
/>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
</xpath>
|
|
12
|
+
<app name="account" position="inside">
|
|
13
|
+
<block name="bill_of_entries_settings" title="Bill of Entries">
|
|
14
|
+
<setting
|
|
15
|
+
company_dependent="1"
|
|
16
|
+
help="Journal used for reconciliation of bill of entries"
|
|
17
|
+
>
|
|
18
|
+
<field
|
|
19
|
+
name="bill_of_entry_journal_id"
|
|
20
|
+
class="o_light_label"
|
|
21
|
+
options="{'no_create': True}"
|
|
22
|
+
/>
|
|
23
|
+
</setting>
|
|
24
|
+
<setting
|
|
25
|
+
help="Tax used in bill of entries generation, when product is not present"
|
|
26
|
+
>
|
|
27
|
+
<field
|
|
28
|
+
name="bill_of_entry_tax_id"
|
|
29
|
+
class="o_light_label"
|
|
30
|
+
options="{'no_create': True}"
|
|
31
|
+
/>
|
|
32
|
+
</setting>
|
|
33
|
+
<setting help="Supplier used in bill of entries">
|
|
34
|
+
<field name="bill_of_entry_partner_id" class="o_light_label" />
|
|
35
|
+
</setting>
|
|
36
|
+
</block>
|
|
37
|
+
</app>
|
|
67
38
|
</field>
|
|
68
39
|
</record>
|
|
69
|
-
|
|
70
40
|
</odoo>
|