Skip to content

Commit

Permalink
[FIX] l10n_it_account: Restore CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
SirAionTech committed Sep 8, 2023
1 parent 706f8cb commit cd26d44
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 34 deletions.
4 changes: 2 additions & 2 deletions l10n_it_account/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"views/account_view.xml",
],
"assets": {
"web.report_assets_common": [
"l10n_it_account/static/src/scss/*.scss",
"web.minimal_layout": [
"l10n_it_account/static/src/css/*.css",
]
},
"external_dependencies": {
Expand Down
59 changes: 34 additions & 25 deletions l10n_it_account/reports/account_reports_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,43 +54,52 @@

<div class="header">
<div class="row">
<div class="col-4">
<div class="col-xs-4">
<h3><span t-esc="company.name" /></h3>
<small
t-field="company.partner_id"
t-options='{"widget": "contact", "fields": ["address", "vat"], "no_marker": True}'
/>
<span t-esc="company.street" class="" /><br />
<span t-esc="company.zip" class="" /> - <span
t-esc="company.city"
class=""
/> - <span t-esc="company.state_id.code" class="" /><br />
<span class="text-right">TIN: </span><span
t-esc="company.partner_id.vat"
class=""
/><br />
</div>
<div class="offset-4 col-4 text-end" style="margin-left:10px">
<div
class="col-xs-4 col-xs-offset-4 text-right"
style="margin-left:10px"
>
<h3 t-esc="title" />
</div>
</div>
<div class="mb8" />
</div>
<t t-out="0" class="pt-5" />
<t t-out="0" />
<div class="footer">
<!-- The variable "l10n_it_count_fiscal_year" shall be used to set manually the fiscal year
in the report footer. Define it in you report as follows:
<t t-set="l10n_it_count_fiscal_year" t-value="<value>"/>
The variable "l10n_it_count_fiscal_page_base" is also available, to set the "Last printed page"
-->
<div class="text-center text-muted">
<span
style="display: none;"
id="l10n_it_count_fiscal_page_base"
t-esc="l10n_it_count_fiscal_page_base"
/>
Page:
<t t-if="l10n_it_count_fiscal_year">
<span t-esc="l10n_it_count_fiscal_year" />
</t>
<t t-if="not l10n_it_count_fiscal_year">
<li><span
t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y')"
/></li>
</t>
<span> / </span>
<span class="page" />
<div class="text-center">
<div class="text-muted">
<span
style="display: none;"
id="l10n_it_count_fiscal_page_base"
t-esc="l10n_it_count_fiscal_page_base"
/>
Page:
<t t-if="l10n_it_count_fiscal_year">
<span t-esc="l10n_it_count_fiscal_year" />
</t>
<t t-if="not l10n_it_count_fiscal_year">
<li><span
t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y')"
/></li>
</t>
<span> / </span>
<span class="page" />
</div>
</div>
</div>
</template>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
table {
border: 0px solid transparent !important;
border: 0px;
}

thead {
background: #f5f5f5;
border: 0px solid transparent !important;
}

.left_with_line {
Expand All @@ -22,13 +20,11 @@ thead {
.left_without_line {
text-align: left;
vertical-align: text-top;
border: 0px solid transparent !important;
padding: 5px;
}
.right_without_line {
text-align: right;
vertical-align: text-top;
border: 0px solid transparent !important;
padding: 5px;
}
.left_with_line_bottom {
Expand All @@ -46,14 +42,12 @@ thead {
.left_without_line_bold {
text-align: left;
vertical-align: text-top;
border: 0px solid transparent !important;
padding: 5px;
font-weight: bold;
}
.right_without_line_bold {
text-align: right;
vertical-align: text-top;
border: 0px solid transparent !important;
padding: 5px;
font-weight: bold;
white-space: nowrap;
Expand Down

0 comments on commit cd26d44

Please sign in to comment.