Browse Source

Sep 8 [FIX] : Bug Fixed 'dynamic_accounts_report'

pull/277/head
AjmalCybro 2 years ago
parent
commit
942915bca5
  1. 2
      dynamic_accounts_report/__manifest__.py
  2. 7
      dynamic_accounts_report/doc/RELEASE_NOTES.md
  3. 1503
      dynamic_accounts_report/i18n/id.po
  4. 138
      dynamic_accounts_report/report/financial_report_template.xml

2
dynamic_accounts_report/__manifest__.py

@ -22,7 +22,7 @@
{
'name': 'Dynamic Financial Reports V16',
'version': '16.0.1.0.6',
'version': '16.0.1.0.7',
'category': 'Accounting',
'live_test_url': 'https://www.youtube.com/watch?v=gVQi9q9Rs-E&t=5s',
'summary': """Dynamic Financial Reports with drill

7
dynamic_accounts_report/doc/RELEASE_NOTES.md

@ -23,4 +23,9 @@
#### 24.08.2023
#### Version 16.0.1.0.6
#### BUGFIX
- Report Bug Fix: The issues with the analytic filter in the general ledger, partner ledger, and profit and loss statement have been fixed, and the problem with language while printing reports has also been addressed.
- Report Bug Fix: The issues with the analytic filter in the general ledger, partner ledger, and profit and loss statement have been fixed, and the problem with language while printing reports has also been addressed.
#### 08.09.2023
#### Version 16.0.1.0.7
#### BUGFIX
- Report Bug Fix: Problem with language while printing profit and loss report fixed.

1503
dynamic_accounts_report/i18n/id.po

File diff suppressed because it is too large

138
dynamic_accounts_report/report/financial_report_template.xml

@ -7,18 +7,19 @@
<t t-set="data_report_header_spacing" t-value="9"/>
<t t-set="data_report_dpi" t-value="110"/>
<div class="page">
<h3><span t-esc="Filters.get('company_name')"/>: <span t-esc="report_name"/>
<h3><span t-esc="Filters.get('company_name')"/>:
<span t-esc="report_name"/>
</h3>
<div>
<span t-if="Filters.get('date_from')">
<strong> From:</strong>
<t t-esc="Filters['date_from']"/>
<strong>From:</strong>
<t t-esc="Filters['date_from']"/>
</span>
<span t-if="Filters.get('date_to')">
<strong>To:</strong>
<t t-esc="Filters['date_to']"/>
<strong>To:</strong>
<t t-esc="Filters['date_to']"/>
</span>
<div style="width:100%;">
@ -26,7 +27,8 @@
<div class="col-2">
<strong>Journals:</strong>
<t t-foreach="Filters['journals']" t-as="ps">
<t t-foreach="Filters['journals']"
t-as="ps">
<li>
<t t-esc="ps"/>
</li>
@ -34,45 +36,48 @@
</div>
<div class="col-2">
<strong>Accounts:</strong>
<t t-foreach="Filters['accounts']" t-as="ps">
<li>
<t t-esc="ps"/>
</li>
</t>
<strong>Accounts:</strong>
<t t-foreach="Filters['accounts']"
t-as="ps">
<li>
<t t-esc="ps"/>
</li>
</t>
</div>
<div class="col-2">
<strong>Account Tags:</strong>
<t t-foreach="Filters['account_tags']" t-as="ps">
<li>
<t t-esc="ps"/>
</li>
</t>
<strong>Account Tags:</strong>
<t t-foreach="Filters['account_tags']"
t-as="ps">
<li>
<t t-esc="ps"/>
</li>
</t>
</div>
<div class="col-2">
<strong>Analytic:</strong>
<t t-foreach="Filters['analytics']" t-as="ps">
<t t-foreach="Filters['analytics']"
t-as="ps">
<li>
<t t-esc="ps"/>
</li>
</t>
</div>
<!-- <div class="col-2">-->
<!-- <strong>Analytic Tag:</strong>-->
<!-- <t t-foreach="Filters['analytic_tags']" t-as="ps">-->
<!-- <li>-->
<!-- <t t-esc="ps"/>-->
<!-- </li>-->
<!-- </t>-->
<!-- </div>-->
<!-- <div class="col-2">-->
<!-- <strong>Analytic Tag:</strong>-->
<!-- <t t-foreach="Filters['analytic_tags']" t-as="ps">-->
<!-- <li>-->
<!-- <t t-esc="ps"/>-->
<!-- </li>-->
<!-- </t>-->
<!-- </div>-->
<div class="col-3">
<strong>Target move:</strong>
<li>
<t t-esc="Filters['target_move']"/>
</li>
<li>
<t t-esc="Filters['target_move']"/>
</li>
</div>
</div>
</div>
@ -85,7 +90,7 @@
<th></th>
<th class="text-right">Debit</th>
<th class="text-right">Credit</th>
<th class="text-right">Balance</th>
<th class="text-right">Balance001</th>
</tr>
</thead>
<tbody>
@ -93,18 +98,37 @@
<t t-if="a['level'] != 0">
<t t-if="a.get('level') &gt; 2">
<t t-set="style" t-value="'font-weight: normal;'"/>
</t>
<t t-if="not a.get('level') &gt; 2">
<t t-set="style" t-value="'font-weight: bold;'"/>
<t t-set="style"
t-value="'font-weight: normal;'"/>
</t>
<t t-if="not a.get('level') &gt; 2">
<t t-set="style"
t-value="'font-weight: bold;'"/>
</t>
<t t-if="a.get('code')">
<t t-foreach="account_data" t-as="line">
<t t-foreach="account_data" t-as="line">
<t t-if="line['id'] == a.get('account')">
<tr>
<td>
<span style="color: white;" t-esc="'..' * a.get('level', 0) * 3"/>
<span t-att-style="style" t-esc="line['name']"/>
<span style="color: white;"
t-esc="'..' * a.get('level', 0) * 3"/>
<span>
<t t-set="language"
t-value="request.env.context.get('lang')"/>
<t t-esc="line['code']"/>
-
<t t-if="language != 'en_US'">
<t t-if="line['name'][lang] and lang != 'en_US'">
<t t-esc="line['name'][lang]"/>
</t>
<t t-elif="line['name']['en_US']">
<t t-esc="line['name']['en_US']"/>
</t>
</t>
<t t-else="">
<t t-esc="line['name']"/>
</t>
</span>
</td>
<td class="text-right">
<span t-esc="line['debit']"
@ -122,23 +146,29 @@
</t>
</t>
</t>
<t t-else="">
<td>
<span style="color: white;" t-esc="'..' * a.get('level', 0) * 3"/>
<span t-att-style="style" t-esc="a.get('name')"/>
<span style="color: white;"
t-esc="'..' * a.get('level', 0) * 3"/>
<span t-att-style="style"
t-esc="a.get('name')"/>
</td>
<td class="text-right" style="white-space: text-nowrap;">
<span t-att-style="style" t-esc="a.get('debit')"
<td class="text-right"
style="white-space: text-nowrap;">
<span t-att-style="style"
t-esc="a.get('debit')"
t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/>
</td>
<td class="text-right" style="white-space: text-nowrap;">
<span t-att-style="style" t-esc="a.get('credit')"
<td class="text-right"
style="white-space: text-nowrap;">
<span t-att-style="style"
t-esc="a.get('credit')"
t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/>
</td>
<td class="text-right" style="white-space: text-nowrap;">
<span t-att-style="style" t-esc="a.get('balance')"
<td class="text-right"
style="white-space: text-nowrap;">
<span t-att-style="style"
t-esc="a.get('balance')"
t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/>
</td>
</t>
@ -155,11 +185,11 @@
</template>
<record id="action_print_balance_sheet" model="ir.actions.report">
<field name="name">Financial Report</field>
<field name="model">dynamic.balance.sheet.report</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">dynamic_accounts_report.balance_sheet</field>
<field name="report_file">dynamic_accounts_report.balance_sheet</field>
<field name="name">Financial Report</field>
<field name="model">dynamic.balance.sheet.report</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">dynamic_accounts_report.balance_sheet</field>
<field name="report_file">dynamic_accounts_report.balance_sheet</field>
</record>
</odoo>
</odoo>
Loading…
Cancel
Save