[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

@@ -404,7 +404,8 @@ Partner Balance. For further information, check CONFIGURE.rst</p>
<li><a class="reference internal" href="#credits" id="toc-entry-8">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-9">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-10">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-11">Maintainers</a></li>
<li><a class="reference internal" href="#other-credits" id="toc-entry-11">Other credits</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-12">Maintainers</a></li>
</ul>
</li>
</ul>
@@ -421,7 +422,7 @@ the interval</p>
<p>-&gt; 15 -&gt; 30 -&gt; 60</p>
<p>It means the first interval is from 0 to 15, the second from 16 to 30,
and the third is 61+.</p>
<p>Go on Invoicing -&gt; Reports -&gt; OCA accounting reports -&gt; Aged
<p>Go on Invoicing -&gt; Reporting -&gt; OCA accounting reports -&gt; Aged
Partner Balance</p>
<p>When wizard is open, you need to select your interval configuration and
print report.</p>
@@ -511,7 +512,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<li>Pedro M. Baeza</li>
<li>Sergio Teruel</li>
<li>Ernesto Tejeda</li>
<li>Jo??o Marques</li>
<li>João Marques</li>
<li>Alexandre D. D??az</li>
<li>V??ctor Mart??nez</li>
<li>Carolina Fernandez</li>
@@ -525,12 +526,18 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<li>Lois Rilo &lt;<a class="reference external" href="mailto:lois.rilo&#64;forgeflow.com">lois.rilo&#64;forgeflow.com</a>&gt;</li>
<li>Saran Lim. &lt;<a class="reference external" href="mailto:saranl&#64;ecosoft.co.th">saranl&#64;ecosoft.co.th</a>&gt;</li>
<li>Omar Casti??eira &lt;<a class="reference external" href="mailto:omar&#64;comunitea.com">omar&#64;comunitea.com</a>&gt;</li>
<li>Chau Le &lt;<a class="reference external" href="mailto:chaulb&#64;trobz.com">chaulb&#64;trobz.com</a>&gt;</li>
</ul>
<p>Much of the work in this module was done at a sprint in Sorrento, Italy
in April 2016.</p>
</div>
<div class="section" id="other-credits">
<h2><a class="toc-backref" href="#toc-entry-11">Other credits</a></h2>
<p>The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp.</p>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-11">Maintainers</a></h2>
<h2><a class="toc-backref" href="#toc-entry-12">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />

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;
}