Skip to content

Commit 7aa5d09

Browse files
authored
Add Italian translations to asset situation report
Updated asset situation report template with Italian translations and improved formatting.
1 parent 1758b5f commit 7aa5d09

1 file changed

Lines changed: 20 additions & 136 deletions

File tree

Lines changed: 20 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<!--
3-
~ Copyright 2026 Simone Rubino - Aion Tech
43
~ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
54
-->
65
<odoo>
@@ -34,21 +33,21 @@
3433
</h1>
3534
<div style="width: 100%; text-align:center; margin-bottom: 20px;">
3635
<t t-if="o.purchase_date_from">
37-
<span>Purchase Date From: <span
36+
<span>Data acquisto da: <span
3837
t-field="o.purchase_date_from"
3938
/></span>
4039
<br />
4140
</t>
4241
<t t-if="o.purchase_date_to">
43-
<span>Purchase Date To: <span t-field="o.purchase_date_to" /></span>
42+
<span>Data acquisto a: <span t-field="o.purchase_date_to" /></span>
4443
<br />
4544
</t>
4645
<t t-if="o.show_sold_assets">
47-
<span>Including Sold Assets</span>
46+
<span>Include cespiti venduti</span>
4847
<br />
4948
</t>
5049
<t t-if="o.show_dismissed_assets">
51-
<span>Including Dismissed Assets</span>
50+
<span>Include cespiti dismessi</span>
5251
<br />
5352
</t>
5453
</div>
@@ -57,136 +56,21 @@
5756

5857
<template id="template_asset_situation_body">
5958
<t t-foreach="o.report_category_ids" t-as="category">
60-
<div class="act_as_table data_table" style="width: 100%; margin-bottom: 30px;">
61-
<!-- Category Header -->
62-
<div name="category_name" style="margin-bottom: 10px;">
63-
<h2 style="text-align: center; background-color: #337AB7; color: white; padding: 10px; margin: 0;">
64-
<span t-esc="category.category_name" />
65-
</h2>
66-
</div>
67-
68-
<!-- Table Header -->
69-
<div class="act_as_thead">
70-
<div class="act_as_row">
71-
<div class="act_as_cell" style="width: 30%;">Asset Name</div>
72-
<div class="act_as_cell" style="width: 15%;">Type</div>
73-
<div
74-
class="act_as_cell amount"
75-
style="width: 15%;"
76-
>Depreciable</div>
77-
<div
78-
class="act_as_cell amount"
79-
style="width: 15%;"
80-
>Depreciated</div>
81-
<div class="act_as_cell amount" style="width: 15%;">Residual</div>
82-
<div class="act_as_cell" style="width: 10%;">Last Depr. Date</div>
83-
</div>
84-
</div>
85-
86-
<!-- Table Body -->
87-
<div class="act_as_tbody">
88-
<t t-foreach="category.line_ids" t-as="line">
89-
<div class="act_as_row">
90-
<div class="act_as_cell" style="width: 30%;">
91-
<span t-esc="line.asset_name" />
92-
</div>
93-
<div class="act_as_cell" style="width: 15%;">
94-
<span t-esc="line.depreciation_type" />
95-
</div>
96-
<div class="act_as_cell amount" style="width: 15%;">
97-
<span
98-
t-field="line.amount_depreciable_updated"
99-
t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"
100-
/>
101-
</div>
102-
<div class="act_as_cell amount" style="width: 15%;">
103-
<span
104-
t-field="line.amount_depreciated"
105-
t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"
106-
/>
107-
</div>
108-
<div class="act_as_cell amount" style="width: 15%;">
109-
<span
110-
t-field="line.amount_residual"
111-
t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"
112-
/>
113-
</div>
114-
<div class="act_as_cell" style="width: 10%;">
115-
<span
116-
t-field="line.last_depreciation_date"
117-
t-options="{'widget': 'date'}"
118-
/>
119-
</div>
120-
</div>
121-
</t>
122-
</div>
123-
124-
<!-- Category Totals -->
125-
<t t-if="o.show_category_totals">
126-
<div class="act_as_tfoot">
127-
<div class="act_as_row" style="font-weight: bold; background-color: #f0f0f0;">
128-
<div class="act_as_cell" style="width: 30%;">
129-
Total <span t-esc="category.category_name" />
130-
</div>
131-
<div class="act_as_cell" style="width: 15%;" />
132-
<div class="act_as_cell amount" style="width: 15%;">
133-
<span
134-
t-field="category.total_amount_depreciable_updated"
135-
t-options="{'widget': 'monetary', 'display_currency': category.currency_id}"
136-
/>
137-
</div>
138-
<div class="act_as_cell amount" style="width: 15%;">
139-
<span
140-
t-field="category.total_amount_depreciated"
141-
t-options="{'widget': 'monetary', 'display_currency': category.currency_id}"
142-
/>
143-
</div>
144-
<div class="act_as_cell amount" style="width: 15%;">
145-
<span
146-
t-field="category.total_amount_residual"
147-
t-options="{'widget': 'monetary', 'display_currency': category.currency_id}"
148-
/>
149-
</div>
150-
<div class="act_as_cell" style="width: 10%;" />
151-
</div>
152-
</div>
153-
</t>
59+
<!-- Category Header -->
60+
<div style="margin-top: 30px; margin-bottom: 10px;">
61+
<h3 style="background-color: #337AB7; color: white; padding: 8px; text-align: center; margin: 0;">
62+
<span t-esc="category.category_name" />
63+
</h3>
15464
</div>
155-
</t>
15665

157-
<!-- General Totals -->
158-
<t t-if="o.show_totals and o.report_total_ids">
159-
<t t-set="totals" t-value="o.report_total_ids[0]" />
160-
<div class="act_as_table data_table" style="width: 100%; margin-top: 30px;">
161-
<div name="totals_header" style="margin-bottom: 10px;">
162-
<h2 style="text-align: center; background-color: #2c3e50; color: white; padding: 10px; margin: 0;">
163-
GENERAL TOTALS
164-
</h2>
165-
</div>
166-
<div class="act_as_row" style="font-weight: bold; font-size: 14pt;">
167-
<div class="act_as_cell" style="width: 30%;">TOTAL</div>
168-
<div class="act_as_cell" style="width: 15%;" />
169-
<div class="act_as_cell amount" style="width: 15%;">
170-
<span
171-
t-field="totals.total_amount_depreciable_updated"
172-
t-options="{'widget': 'monetary', 'display_currency': totals.currency_id}"
173-
/>
174-
</div>
175-
<div class="act_as_cell amount" style="width: 15%;">
176-
<span
177-
t-field="totals.total_amount_depreciated"
178-
t-options="{'widget': 'monetary', 'display_currency': totals.currency_id}"
179-
/>
180-
</div>
181-
<div class="act_as_cell amount" style="width: 15%;">
182-
<span
183-
t-field="totals.total_amount_residual"
184-
t-options="{'widget': 'monetary', 'display_currency': totals.currency_id}"
185-
/>
186-
</div>
187-
<div class="act_as_cell" style="width: 10%;" />
188-
</div>
189-
</div>
190-
</t>
191-
</template>
192-
</odoo>
66+
<!-- Table -->
67+
<table class="table table-sm table-bordered" style="width: 100%;">
68+
<thead style="background-color: #f5f5f5;">
69+
<tr>
70+
<th style="width: 40%; text-align: left;">Nome Cespite</th>
71+
<th style="width: 15%; text-align: right;">Importo Ammortizzabile</th>
72+
<th style="width: 15%; text-align: right;">Importo Ammortizzato</th>
73+
<th style="width: 15%; text-align: right;">Importo Residuo</th>
74+
<th style="width: 15%; text-align: center;">Ultima Data Ammortamento</th>
75+
76+

0 commit comments

Comments
 (0)