[MIG] account_financial_report: Migration to 18.0

This commit is contained in:
chaule97
2024-11-18 16:48:37 +07:00
parent c46e83a4a4
commit 01f22b8256
43 changed files with 292 additions and 220 deletions

View File

@@ -1,7 +0,0 @@
/* Styles of html report */
.account_title span {
font-size: 1rem !important;
}
.act_as_cell {
font-size: 0.9rem !important;
}

View File

@@ -1,5 +1,3 @@
/** @odoo-module */
import {useComponent, useEffect} from "@odoo/owl";
function toTitleCase(str) {
@@ -12,6 +10,7 @@ function toTitleCase(str) {
}
function enrich(component, targetElement, selector, isIFrame = false) {
// eslint-disable-next-line no-undef
let doc = window.document;
let contentDocument = targetElement;

View File

@@ -1,4 +1,3 @@
// /** @odoo-module **/
import {ReportAction} from "@web/webclient/actions/reports/report_action";
import {patch} from "@web/core/utils/patch";
import {useEnrichWithActionLinks} from "./report.esm";

View File

@@ -1,104 +1,137 @@
a {
color: #00337b;
}
.act_as_table {
display: table !important;
background-color: white;
}
.act_as_row {
display: table-row !important;
page-break-inside: avoid;
}
.act_as_cell {
display: table-cell !important;
page-break-inside: avoid;
}
.act_as_thead {
display: table-header-group !important;
}
.act_as_tbody {
display: table-row-group !important;
}
.list_table,
.data_table,
.totals_table {
width: 100% !important;
}
.act_as_row.labels {
background-color: #f0f0f0 !important;
}
.list_table,
.data_table,
.totals_table,
.list_table .act_as_row {
border-left: 0px;
border-right: 0px;
border-left: 0;
border-right: 0;
text-align: center;
font-size: 10px;
padding-right: 3px;
padding-left: 3px;
padding-top: 2px;
padding-bottom: 2px;
padding: 2px 3px;
border-collapse: collapse;
}
.totals_table {
font-weight: bold;
text-align: center;
}
.list_table .act_as_row.labels,
.list_table .act_as_row.initial_balance,
.list_table .act_as_row.lines {
border-color: grey !important;
border-bottom: 1px solid lightGrey !important;
.list_table {
.act_as_row {
&.labels,
&.initial_balance,
&.lines {
border-color: grey !important;
border-bottom: 1px solid lightGrey !important;
}
}
}
.data_table .act_as_cell {
border: 1px solid lightGrey;
text-align: center;
.data_table {
.act_as_cell {
border: 1px solid lightGrey;
text-align: center;
word-wrap: break-word;
}
.act_as_row.labels {
font-weight: bold;
}
}
.data_table .act_as_cell,
.list_table .act_as_cell,
.totals_table .act_as_cell {
word-wrap: break-word;
.totals_table {
.act_as_cell {
word-wrap: break-word;
}
.act_as_row.labels {
font-weight: bold;
}
}
.data_table .act_as_row.labels,
.totals_table .act_as_row.labels {
font-weight: bold;
.list_table .act_as_cell {
&.first_column {
padding-left: 0;
/* border-left:1px solid lightGrey; uncomment to active column lines */
}
/* border-right:1px solid lightGrey; uncomment to active column lines */
}
.initial_balance .act_as_cell {
font-style: italic;
}
.account_title {
font-size: 11px;
font-weight: bold;
&.labels {
background-color: #f0f0f0 !important;
}
}
.account_title.labels {
background-color: #f0f0f0 !important;
}
.act_as_cell.amount {
word-wrap: normal;
text-align: right;
}
.act_as_cell.left {
text-align: left;
}
.act_as_cell.right {
text-align: right;
}
/*.list_table .act_as_cell {*/
/* border-right:1px solid lightGrey; uncomment to active column lines */
/*}*/
.list_table .act_as_cell.first_column {
padding-left: 0px;
/* border-left:1px solid lightGrey; uncomment to active column lines */
.act_as_cell {
&.amount {
word-wrap: normal;
text-align: right;
}
&.left {
text-align: left;
}
&.right {
text-align: right;
}
}
.overflow_ellipsis {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.custom_footer {
font-size: 7px !important;
}
.page_break {
page-break-inside: avoid;
}
@@ -110,7 +143,6 @@ a {
.o_account_financial_reports_page {
padding-top: 10px;
width: 90%;
margin-right: auto;
margin-left: auto;
margin: 0 auto;
font-family: Helvetica, Arial;
}

View File

@@ -0,0 +1,10 @@
// Styles of HTML report
.account_title {
span {
font-size: 1rem !important;
}
}
.act_as_cell {
font-size: 0.9rem !important;
}