Hello, i am using cybrosys accounting report, I want to ask, why everytime I generate accounting report like Profit and Loss, General Ledger, etc, the CoA will has (en_US) in front of it. I tried to change the database language but the result still the same. How can I remove this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
Hi,
Please replace the financial_report_template with the below code: Then it will work fine.
<template id="dynamic_accounts_report.
<t t-call="web.html_container">
<t t-call="web.internal_layout">
<t t-set="data_report_margin_top" t-value="12"/>
<t t-set="data_report_header_
<t t-set="data_report_dpi" t-value="110"/>
<div class="page">
<h3><span t-esc="Filters.get('company_
<span t-esc="report_name"/>
</h3>
<div>
<span t-if="Filters.get('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']"/>
</span>
<div>
<div style="text-align:centre;" class="row">
<div class="col-2">
<strong>Journals:</strong>
<t t-foreach="Filters['journals']
t-as="ps">
<li>
<t t-esc="ps"/>
</li>
</t>
</div>
<div class="col-2">
<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_
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">
<li>
<t t-esc="ps"/>
</li>
</t>
</div>
<!-- <div class="col-2">-->
<!-- <strong>Analytic Tag:</strong>-->
<!-- <t t-foreach="Filters['analytic_
<!-- <li>-->
<!-- <t t-esc="ps"/>-->
<!-- </li>-->
<!-- </t>-->
<!-- </div>-->
<div class="col-3">
<strong>Target move:</strong>
<li>
<t t-esc="Filters['target_move']"
</li>
</div>
</div>
</div>
</div>
<br></br>
<table class="table table-sm table-reports">
<thead>
<tr>
<th></th>
<th class="text-right">Debit</th>
<th class="text-right">Credit</th>
<th class="text-right">Balance001<
</tr>
</thead>
<tbody>
<tr t-foreach="report_lines" t-as="a">
<t t-if="a['level'] != 0">
<t t-if="a.get('level') > 2">
<t t-set="style"
t-value="'font-weight: normal;'"/>
</t>
<t t-if="not a.get('level') > 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-if="line['id'] == a.get('account')">
<tr>
<td>
<span style="color: white;"
t-esc="'..' * a.get('level', 0) * 3"/>
<span>
<t t-set="language"
t-value="request.env.context.
<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']"
t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/>
</td>
<td class="text-right">
<span t-esc="line['credit']"
t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/>
</td>
<td class="text-right">
<span t-esc="line['balance']"
t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/>
</td>
</tr>
</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')"/>
</td>
<td class="text-right"
>
<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"
>
<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"
>
<span t-att-style="style"
t-esc="a.get('balance')"
t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/>
</td>
</t>
</t>
</tr>
</tbody>
</table>
</div>
</t>
</t>
</template>
We will soon update this on the Odoo App Store.
Hope it helps
Please refer https://apps.odoo.com/apps/modules/16.0/dynamic_accounts_report/ for latest version.
Hi,
This may be some bugs happens with a recent update, as it is a third party app, you can report the same to the author in their support channel and get is solved.
Thanks
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
0
6月 24
|
1678 | ||
|
0
3月 24
|
4363 | ||
|
1
4月 24
|
1444 | ||
|
1
3月 24
|
2504 | ||
|
3
6月 24
|
2327 |