[12.0] account_financial_report: refactor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="report_aged_partner_balance_qweb">
|
||||
<template id="aged_partner_balance">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="account_financial_report.internal_layout">
|
||||
@@ -13,10 +13,9 @@
|
||||
|
||||
<template id="report_aged_partner_balance_base">
|
||||
<!-- Saved flag fields into variables, used to define columns display -->
|
||||
<t t-set="show_move_line_details" t-value="o.show_move_line_details"/>
|
||||
<t t-set="show_move_line_details" t-value="show_move_line_details"/>
|
||||
<!-- Defines global variables used by internal layout -->
|
||||
<t t-set="title">Aged Partner Balance - <t t-raw="o.company_id.name"/> - <t t-raw="o.company_id.currency_id.name"/></t>
|
||||
<t t-set="company_name" t-value="o.company_id.name"/>
|
||||
<t t-set="title">Aged Partner Balance - <t t-raw="company_name"/> - <t t-raw="currency_name"/></t>
|
||||
<div class="page">
|
||||
<div class="row">
|
||||
<h4 class="mt0" t-esc="title or 'Odoo Report'" style="text-align: center;"/>
|
||||
@@ -24,15 +23,15 @@
|
||||
<!-- Display filters -->
|
||||
<t t-call="account_financial_report.report_aged_partner_balance_filters"/>
|
||||
|
||||
<t t-foreach="o.account_ids" t-as="account">
|
||||
<t t-foreach="aged_partner_balance" t-as="account">
|
||||
<div class="page_break">
|
||||
<!-- Display account header -->
|
||||
<div class="act_as_table list_table" style="margin-top: 10px;"/>
|
||||
<div class="act_as_caption account_title"
|
||||
style="width: 100%;">
|
||||
<span t-field="account.code"/>
|
||||
<span t-esc="account['code']"/>
|
||||
-
|
||||
<span t-field="account.name"/>
|
||||
<span t-esc="account['name']"/>
|
||||
</div>
|
||||
|
||||
<!-- Display account lines -->
|
||||
@@ -42,8 +41,7 @@
|
||||
<!-- Display account header -->
|
||||
<t t-call="account_financial_report.report_aged_partner_balance_lines_header"/>
|
||||
|
||||
<t t-foreach="account.partner_ids" t-as="partner">
|
||||
|
||||
<t t-foreach="account['partners']" t-as="partner">
|
||||
<!-- Display one line per partner -->
|
||||
<t t-call="account_financial_report.report_aged_partner_balance_lines"/>
|
||||
</t>
|
||||
@@ -57,11 +55,11 @@
|
||||
<t t-if="show_move_line_details">
|
||||
|
||||
<!-- Display account partners -->
|
||||
<t t-foreach="account.partner_ids" t-as="partner">
|
||||
<t t-foreach="account['partners']" t-as="partner">
|
||||
<div class="page_break">
|
||||
<!-- Display partner header -->
|
||||
<div class="act_as_caption account_title">
|
||||
<span t-field="partner.name"/>
|
||||
<span t-esc="partner['name']"/>
|
||||
</div>
|
||||
|
||||
<!-- Display partner move lines -->
|
||||
@@ -69,7 +67,7 @@
|
||||
|
||||
<!-- Display partner footer -->
|
||||
<t t-call="account_financial_report.report_aged_partner_balance_partner_ending_cumul">
|
||||
<t t-set="partner_cumul_line" t-value="partner.line_ids"/>
|
||||
<t t-set="partner_cumul_line" t-value="partner"/>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
@@ -90,11 +88,11 @@
|
||||
</div>
|
||||
<div class="act_as_row">
|
||||
<div class="act_as_cell">
|
||||
<span t-field="o.date_at"/>
|
||||
<span t-esc="date_at"/>
|
||||
</div>
|
||||
<div class="act_as_cell">
|
||||
<t t-if="o.only_posted_moves">All posted entries</t>
|
||||
<t t-if="not o.only_posted_moves">All entries</t>
|
||||
<t t-if="only_posted_moves">All posted entries</t>
|
||||
<t t-if="not only_posted_moves">All entries</t>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -125,44 +123,41 @@
|
||||
</template>
|
||||
|
||||
<template id="report_aged_partner_balance_lines">
|
||||
<!-- Display each lines -->
|
||||
<t t-foreach="partner.line_ids" t-as="line">
|
||||
<!-- # lines -->
|
||||
<div class="act_as_row lines">
|
||||
<!--## partner-->
|
||||
<div class="act_as_cell left">
|
||||
<span t-field="line.partner"/>
|
||||
</div>
|
||||
<!--## amount_residual-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-field="line.amount_residual" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## current-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-field="line.current" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_30_days-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-field="line.age_30_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_60_days-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-field="line.age_60_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_90_days-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-field="line.age_90_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_120_days-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-field="line.age_120_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## older-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-field="line.older" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!-- Display each partner lines -->
|
||||
<div class="act_as_row lines">
|
||||
<!--## partner-->
|
||||
<div class="act_as_cell left">
|
||||
<span t-esc="partner['name']"/>
|
||||
</div>
|
||||
</t>
|
||||
<!--## amount_residual-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-esc="partner['residual']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## current-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-esc="partner['current']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_30_days-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-esc="partner['30_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_60_days-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-esc="partner['60_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_90_days-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-esc="partner['90_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_120_days-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-esc="partner['120_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## older-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-esc="partner['older']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template id="report_aged_partner_balance_move_lines">
|
||||
@@ -210,180 +205,194 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- Display each move lines -->
|
||||
<t t-foreach="partner.move_line_ids" t-as="line">
|
||||
<t t-foreach="partner['move_lines']" t-as="line">
|
||||
<!-- # lines or centralized lines -->
|
||||
<div class="act_as_row lines">
|
||||
<!--## date-->
|
||||
<div class="act_as_cell left">
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.id"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-active-id="line.move_line_id.id"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action"-->
|
||||
<!-- style="color: black;">-->
|
||||
<!--## We don't use t-field because it throws an error on click -->
|
||||
<t t-esc="line.date" t-options="{'widget': 'date'}"/></a>
|
||||
</span>
|
||||
<t t-esc="line['date']" t-options="{'widget': 'date'}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<!--## move-->
|
||||
<div class="act_as_cell left">
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.move_id.id"
|
||||
t-att-data-res-model="'account.move'"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line.entry"/></a>
|
||||
</span>
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-active-id="line.move_line_id.move_id.id"-->
|
||||
<!-- t-att-data-res-model="'account.move'"-->
|
||||
<!-- class="o_account_financial_reports_web_action"-->
|
||||
<!-- style="color: black;">-->
|
||||
<t t-raw="line['entry']"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<!--## journal-->
|
||||
<div class="act_as_cell left">
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.move_id.journal_id.id"
|
||||
t-att-data-res-model="'account.journal'"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line.journal"/></a>
|
||||
</span>
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-active-id="line.move_line_id.move_id.journal_id.id"-->
|
||||
<!-- t-att-data-res-model="'account.journal'"-->
|
||||
<!-- class="o_account_financial_reports_web_action"-->
|
||||
<!-- style="color: black;">-->
|
||||
<t t-raw="line['journal']"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<!--## account code-->
|
||||
<div class="act_as_cell left">
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.account_id.id"
|
||||
t-att-data-res-model="'account.account'"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line.account"/></a>
|
||||
</span>
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-active-id="line.move_line_id.account_id.id"-->
|
||||
<!-- t-att-data-res-model="'account.account'"-->
|
||||
<!-- class="o_account_financial_reports_web_action"-->
|
||||
<!-- style="color: black;">-->
|
||||
<t t-raw="line['account']"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<!--## partner-->
|
||||
<div class="act_as_cell left">
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.partner_id.id"
|
||||
t-att-data-res-model="'res.partner'"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line.partner"/></a>
|
||||
</span>
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-active-id="line.move_line_id.partner_id.id"-->
|
||||
<!-- t-att-data-res-model="'res.partner'"-->
|
||||
<!-- class="o_account_financial_reports_web_action"-->
|
||||
<!-- style="color: black;">-->
|
||||
<t t-raw="line['partner']"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<!--## ref - label-->
|
||||
<div class="act_as_cell left">
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.id"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line.label"/></a>
|
||||
</span>
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-active-id="line.move_line_id.id"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action"-->
|
||||
<!-- style="color: black;">-->
|
||||
<t t-raw="line['ref']"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<!--## date_due-->
|
||||
<div class="act_as_cell left">
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.id"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-active-id="line.move_line_id.id"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action"-->
|
||||
<!-- style="color: black;">-->
|
||||
<!--## We don't use t-field because it throws an error on click -->
|
||||
<t t-esc="line.date_due" t-options="{'widget': 'date'}"/></a>
|
||||
</span>
|
||||
<t t-esc="line['due_date']" t-options="{'widget': 'date'}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<!--## amount_residual-->
|
||||
<div class="act_as_cell amount">
|
||||
<span>
|
||||
<a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="line.amount_residual" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action_multi"-->
|
||||
<!-- style="color: black;">-->
|
||||
<t t-raw="line['residual']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<!--## current-->
|
||||
<div class="act_as_cell amount">
|
||||
<t t-if="line.current != 0">
|
||||
<span>
|
||||
<a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="line.current" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="line.current == 0">
|
||||
<span t-field="line.current" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</t>
|
||||
<!-- <t t-if="line.current != 0">-->
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action_multi"-->
|
||||
<!-- style="color: black;">-->
|
||||
<t t-raw="line['current']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </t>-->
|
||||
<!-- <t t-if="line.current == 0">-->
|
||||
<!-- <span t-field="line.current" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>-->
|
||||
<!-- </t>-->
|
||||
</div>
|
||||
<!--## age_30_days-->
|
||||
<div class="act_as_cell amount">
|
||||
<t t-if="line.age_30_days != 0">
|
||||
<span>
|
||||
<a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="line.age_30_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="line.age_30_days == 0">
|
||||
<span t-field="line.age_30_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</t>
|
||||
<!-- <t t-if="line.age_30_days != 0">-->
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action_multi"-->
|
||||
<!-- style="color: black;">-->
|
||||
<t t-raw="line['30_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </t>-->
|
||||
<!-- <t t-if="line.age_30_days == 0">-->
|
||||
<!-- <span t-field="line.age_30_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>-->
|
||||
<!-- </t>-->
|
||||
</div>
|
||||
<!--## age_60_days-->
|
||||
<div class="act_as_cell amount">
|
||||
<t t-if="line.age_60_days != 0">
|
||||
<span>
|
||||
<a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="line.age_60_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="line.age_60_days == 0">
|
||||
<span t-field="line.age_60_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</t>
|
||||
<!-- <t t-if="line.age_60_days != 0">-->
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action_multi"-->
|
||||
<!-- style="color: black;">-->
|
||||
<t t-raw="line['60_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </t>-->
|
||||
<!-- <t t-if="line.age_60_days == 0">-->
|
||||
<!-- <span t-field="line.age_60_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>-->
|
||||
<!-- </t>-->
|
||||
</div>
|
||||
<!--## age_90_days-->
|
||||
<div class="act_as_cell amount">
|
||||
<t t-if="line.age_90_days != 0">
|
||||
<span>
|
||||
<a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="line.age_90_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="line.age_90_days == 0">
|
||||
<span t-field="line.age_90_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</t>
|
||||
<!-- <t t-if="line.age_90_days != 0">-->
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action_multi"-->
|
||||
<!-- style="color: black;">-->
|
||||
<t t-raw="line['90_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </t>-->
|
||||
<!-- <t t-if="line.age_90_days == 0">-->
|
||||
<!-- <span t-field="line.age_90_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>-->
|
||||
<!-- </t>-->
|
||||
</div>
|
||||
<!--## age_120_days-->
|
||||
<div class="act_as_cell amount">
|
||||
<t t-if="line.age_120_days != 0">
|
||||
<span>
|
||||
<a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="line.age_120_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="line.age_120_days == 0">
|
||||
<span t-field="line.age_120_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</t>
|
||||
<!-- <t t-if="line.age_120_days != 0">-->
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action_multi"-->
|
||||
<!-- style="color: black;">-->
|
||||
<t t-raw="line['120_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </t>-->
|
||||
<!-- <t t-if="line.age_120_days == 0">-->
|
||||
<!-- <span t-field="line.age_120_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>-->
|
||||
<!-- </t>-->
|
||||
</div>
|
||||
<!--## older-->
|
||||
<div class="act_as_cell amount">
|
||||
<t t-if="line.older != 0">
|
||||
<span>
|
||||
<a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="line.older" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="line.older == 0">
|
||||
<span t-field="line.older" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</t>
|
||||
<!-- <t t-if="line.older != 0">-->
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-domain="[('id', 'in', (line.move_line_id | line.move_line_id.matched_debit_ids.mapped('debit_move_id') | line.move_line_id.matched_credit_ids.mapped('credit_move_id')).ids)]"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action_multi"-->
|
||||
<!-- style="color: black;">-->
|
||||
<t t-raw="line['older']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </t>-->
|
||||
<!-- <t t-if="line.older == 0">-->
|
||||
<!-- <span t-field="line.older" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>-->
|
||||
<!-- </t>-->
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
@@ -401,31 +410,31 @@
|
||||
<div class="act_as_cell" style="width: 6.00%;"/>
|
||||
<!--## amount_residual-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%;">
|
||||
<span t-field="partner_cumul_line.amount_residual" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="partner_cumul_line['residual']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## current-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%;">
|
||||
<span t-field="partner_cumul_line.current" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="partner_cumul_line['current']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_30_days-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%;">
|
||||
<span t-field="partner_cumul_line.age_30_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="partner_cumul_line['30_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_60_days-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%;">
|
||||
<span t-field="partner_cumul_line.age_60_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="partner_cumul_line['60_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_90_days-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%;">
|
||||
<span t-field="partner_cumul_line.age_90_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="partner_cumul_line['90_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_120_days-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%;">
|
||||
<span t-field="partner_cumul_line.age_120_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="partner_cumul_line['120_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## older-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%;">
|
||||
<span t-field="partner_cumul_line.older" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="partner_cumul_line['older']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -440,31 +449,31 @@
|
||||
<div class="act_as_cell right" style="width: 32.52%;">Total</div>
|
||||
<!--## amount_residual-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;">
|
||||
<span t-field="account.cumul_amount_residual" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['residual']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## current-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;">
|
||||
<span t-field="account.cumul_current" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['current']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_30_days-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;">
|
||||
<span t-field="account.cumul_age_30_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['30_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_60_days-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;">
|
||||
<span t-field="account.cumul_age_60_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['60_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_90_days-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;">
|
||||
<span t-field="account.cumul_age_90_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['90_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_120_days-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;">
|
||||
<span t-field="account.cumul_age_120_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['120_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## older-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;">
|
||||
<span t-field="account.cumul_older" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['older']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="show_move_line_details">
|
||||
@@ -474,31 +483,31 @@
|
||||
<div class="act_as_cell" style="width: 6.00%;"/>
|
||||
<!--## amount_residual-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%">
|
||||
<span t-field="account.cumul_amount_residual" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['residual']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## current-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%">
|
||||
<span t-field="account.cumul_current" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['current']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_30_days-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%">
|
||||
<span t-field="account.cumul_age_30_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['30_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_60_days-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%">
|
||||
<span t-field="account.cumul_age_60_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['60_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_90_days-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%">
|
||||
<span t-field="account.cumul_age_90_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['90_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## age_120_days-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%">
|
||||
<span t-field="account.cumul_age_120_days" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['120_days']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## older-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%">
|
||||
<span t-field="account.cumul_older" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account['older']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
@@ -510,23 +519,22 @@
|
||||
<!--## amount_residual-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"/>
|
||||
<!--## current-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.percent_current"/>%
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"><span t-esc="account['percent_current']"/>%
|
||||
</div>
|
||||
<!--## age_30_days-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.percent_age_30_days"/>%
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"><span t-esc="account['percent_30_days']"/>%
|
||||
</div>
|
||||
<!--## age_60_days-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.percent_age_60_days"/>%
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"><span t-esc="account['percent_60_days']"/>%
|
||||
</div>
|
||||
<!--## age_90_days-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.percent_age_90_days"/>%
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"><span t-esc="account['percent_90_days']"/>%
|
||||
</div>
|
||||
<!--## age_120_days-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.percent_age_120_days"/>
|
||||
%
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"><span t-esc="account['percent_120_days']"/>%
|
||||
</div>
|
||||
<!--## older-->
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.percent_older"/>%
|
||||
<div class="act_as_cell amount" style="width: 9.64%;"><span t-esc="account['percent_older']"/>%
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="show_move_line_details">
|
||||
@@ -538,22 +546,22 @@
|
||||
<!--## amount_residual-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%"/>
|
||||
<!--## current-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%"><span t-field="account.percent_current"/>%
|
||||
<div class="act_as_cell amount" style="width: 6.00%"><span t-esc="account['percent_current']"/>%
|
||||
</div>
|
||||
<!--## age_30_days-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%"><span t-field="account.percent_age_30_days"/>%
|
||||
<div class="act_as_cell amount" style="width: 6.00%"><span t-esc="account['percent_30_days']"/>%
|
||||
</div>
|
||||
<!--## age_60_days-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%"><span t-field="account.percent_age_60_days"/>%
|
||||
<div class="act_as_cell amount" style="width: 6.00%"><span t-esc="account['percent_60_days']"/>%
|
||||
</div>
|
||||
<!--## age_90_days-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%"><span t-field="account.percent_age_90_days"/>%
|
||||
<div class="act_as_cell amount" style="width: 6.00%"><span t-esc="account['percent_90_days']"/>%
|
||||
</div>
|
||||
<!--## age_120_days-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%"><span t-field="account.percent_age_120_days"/>%
|
||||
<div class="act_as_cell amount" style="width: 6.00%"><span t-esc="account['percent_120_days']"/>%
|
||||
</div>
|
||||
<!--## older-->
|
||||
<div class="act_as_cell amount" style="width: 6.00%"><span t-field="account.percent_older"/>%
|
||||
<div class="act_as_cell amount" style="width: 6.00%"><span t-esc="account['percent_older']"/>%
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="report_general_ledger_qweb">
|
||||
<template id="general_ledger">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="account_financial_report.internal_layout">
|
||||
@@ -13,28 +13,26 @@
|
||||
|
||||
<template id="report_general_ledger_base">
|
||||
<!-- Saved flag fields into variables, used to define columns display -->
|
||||
<t t-set="show_analytic_tags" t-value="o.show_analytic_tags"/>
|
||||
<t t-set="show_cost_center" t-value="o.show_cost_center"/>
|
||||
<t t-set="foreign_currency" t-value="o.foreign_currency"/>
|
||||
<t t-set="foreign_currency" t-value="foreign_currency"/>
|
||||
<!-- Defines global variables used by internal layout -->
|
||||
<t t-set="title">General Ledger - <t t-raw="o.company_id.name"/> - <t t-raw="o.company_id.currency_id.name"/></t>
|
||||
<t t-set="company_name" t-value="o.company_id.name"/>
|
||||
<t t-set="title">General Ledger - <t t-raw="company_name"/> - <t t-raw="currency_name"/></t>
|
||||
<div class="page">
|
||||
<div class="row">
|
||||
<h4 class="mt0" t-esc="title or 'Odoo Report'" style="text-align: center;"/>
|
||||
</div>
|
||||
<!-- Display filters -->
|
||||
<t t-call="account_financial_report.report_general_ledger_filters"/>
|
||||
<t t-foreach="o.account_ids" t-as="account">
|
||||
<t t-foreach="general_ledger" t-as="account">
|
||||
<div class="page_break">
|
||||
<!-- Display account header -->
|
||||
<div class="act_as_table list_table" style="margin-top: 10px;"/>
|
||||
<div class="act_as_caption account_title"
|
||||
style="width: 100%">
|
||||
<span t-field="account.code"/> - <span t-field="account.name"/>
|
||||
<span t-esc="o._get_atr_from_dict(account['id'], accounts_data, 'code')"/> -
|
||||
<span t-esc="o._get_atr_from_dict(account['id'], accounts_data, 'name')"/>
|
||||
</div>
|
||||
|
||||
<t t-if="not account.partner_ids">
|
||||
<t t-if="not account['partners']">
|
||||
<!-- Display account move lines without partner regroup -->
|
||||
<t t-set="type" t-value='"account_type"'/>
|
||||
<t t-call="account_financial_report.report_general_ledger_lines">
|
||||
@@ -42,32 +40,35 @@
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<t t-if="account.partner_ids">
|
||||
<t t-if="account['partners']">
|
||||
<!-- Display account partners -->
|
||||
<t t-foreach="account.partner_ids" t-as="partner">
|
||||
<t t-set="type" t-value='"partner_type"'/>
|
||||
<div class="page_break">
|
||||
<!-- Display partner header -->
|
||||
<div class="act_as_caption account_title">
|
||||
<span t-field="partner.name"/>
|
||||
<t t-if="not centralize">
|
||||
<t t-foreach="account['list_partner']" t-as="partner">
|
||||
<t t-set="type" t-value='"partner_type"'/>
|
||||
<div class="page_break">
|
||||
<!-- Display partner header -->
|
||||
<div class="act_as_caption account_title">
|
||||
<span
|
||||
t-esc="o._get_atr_from_dict(partner['id'], partners_data, 'name')"/>
|
||||
</div>
|
||||
|
||||
<!-- Display partner move lines -->
|
||||
<t t-call="account_financial_report.report_general_ledger_lines">
|
||||
<t t-set="account_or_partner_object" t-value="partner"/>
|
||||
</t>
|
||||
|
||||
<!-- Display partner footer -->
|
||||
<t t-call="account_financial_report.report_general_ledger_ending_cumul">
|
||||
<t t-set="account_or_partner_object" t-value="partner"/>
|
||||
<t t-set="type" t-value='"partner_type"'/>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
<!-- Display partner move lines -->
|
||||
<t t-call="account_financial_report.report_general_ledger_lines">
|
||||
<t t-set="account_or_partner_object" t-value="partner"/>
|
||||
</t>
|
||||
|
||||
<!-- Display partner footer -->
|
||||
<t t-call="account_financial_report.report_general_ledger_ending_cumul">
|
||||
<t t-set="account_or_partner_object" t-value="partner"/>
|
||||
<t t-set="type" t-value='"partner_type"'/>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<!-- Display account footer -->
|
||||
<t t-if="not o.filter_partner_ids" t-call="account_financial_report.report_general_ledger_ending_cumul">
|
||||
<t t-if="not account['partners']" t-call="account_financial_report.report_general_ledger_ending_cumul">
|
||||
<t t-set="account_or_partner_object" t-value="account"/>
|
||||
<t t-set="type" t-value='"account_type"'/>
|
||||
</t>
|
||||
@@ -87,23 +88,23 @@
|
||||
</div>
|
||||
<div class="act_as_row">
|
||||
<div class="act_as_cell">
|
||||
From: <span t-field="o.date_from"/> To: <span t-field="o.date_to"/>
|
||||
From: <span t-esc="date_from"/> To: <span t-esc="date_to"/>
|
||||
</div>
|
||||
<div class="act_as_cell">
|
||||
<t t-if="o.only_posted_moves">All posted entries</t>
|
||||
<t t-if="not o.only_posted_moves">All entries</t>
|
||||
<t t-if="only_posted_moves">All posted entries</t>
|
||||
<t t-if="not only_posted_moves">All entries</t>
|
||||
</div>
|
||||
<div class="act_as_cell">
|
||||
<t t-if="o.hide_account_at_0">Hide</t>
|
||||
<t t-if="not o.hide_account_at_0">Show</t>
|
||||
<t t-if="hide_account_at_0">Hide</t>
|
||||
<t t-if="not hide_account_at_0">Show</t>
|
||||
</div>
|
||||
<div class="act_as_cell">
|
||||
<t t-if="o.centralize">Yes</t>
|
||||
<t t-if="not o.centralize">No</t>
|
||||
<t t-if="centralize">Yes</t>
|
||||
<t t-if="not centralize">No</t>
|
||||
</div>
|
||||
<div class="act_as_cell">
|
||||
<t t-if="o.show_analytic_tags">Yes</t>
|
||||
<t t-if="not o.show_analytic_tags">No</t>
|
||||
<t t-if="show_analytic_tags">Yes</t>
|
||||
<t t-if="not show_analytic_tags">No</t>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -188,29 +189,29 @@
|
||||
<div class="act_as_cell amount">
|
||||
<t t-if="type == 'account_type'">
|
||||
<t t-set="domain"
|
||||
t-value="[('account_id', '=', account_or_partner_object.account_id.id),
|
||||
('date', '<', o.date_from.strftime('%Y-%m-%d')),
|
||||
t-value="[('account_id', '=', account['id']),
|
||||
('date', '<', date_from),
|
||||
('debit', '<>', 0)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_monetary_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="account_or_partner_object.initial_debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
<t t-raw="account_or_partner_object['init_bal']['debit']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="type == 'partner_type'">
|
||||
<t t-set="domain"
|
||||
t-value="[('account_id', '=', account_or_partner_object.report_account_id.account_id.id),
|
||||
('partner_id', '=', account_or_partner_object.partner_id.id),
|
||||
('date', '<', o.date_from.strftime('%Y-%m-%d')),
|
||||
t-value="[('account_id', '=', account['id']),
|
||||
('partner_id', '=', partner['id']),
|
||||
('date', '<', date_from),
|
||||
('debit', '<>', 0)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_monetary_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="account_or_partner_object.initial_debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
<t t-raw="account_or_partner_object['init_bal']['debit']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
</div>
|
||||
@@ -218,29 +219,31 @@
|
||||
<div class="act_as_cell amount">
|
||||
<t t-if="type == 'account_type'">
|
||||
<t t-set="domain"
|
||||
t-value="[('account_id', '=', account_or_partner_object.account_id.id),
|
||||
('date', '<', o.date_from.strftime('%Y-%m-%d')),
|
||||
t-value="[('account_id', '=', account['id']),
|
||||
('date', '<', date_from),
|
||||
('credit', '<>', 0)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_monetary_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="account_or_partner_object.initial_credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
<t
|
||||
t-raw="account_or_partner_object['init_bal']['credit']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="type == 'partner_type'">
|
||||
<t t-set="domain"
|
||||
t-value="[('account_id', '=', account_or_partner_object.report_account_id.account_id.id),
|
||||
('partner_id', '=', account_or_partner_object.partner_id.id),
|
||||
('date', '<', o.date_from.strftime('%Y-%m-%d')),
|
||||
t-value="[('account_id', '=', account['id']),
|
||||
('partner_id', '=', partner['id']),
|
||||
('date', '<', date_from),
|
||||
('credit', '<>', 0)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_monetary_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="account_or_partner_object.initial_credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
<t
|
||||
t-raw="account_or_partner_object['init_bal']['credit']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
</div>
|
||||
@@ -248,64 +251,66 @@
|
||||
<div class="act_as_cell amount">
|
||||
<t t-if="type == 'account_type'">
|
||||
<t t-set="domain"
|
||||
t-value="[('account_id', '=', account_or_partner_object.account_id.id),
|
||||
('date', '<', o.date_from.strftime('%Y-%m-%d'))]"/>
|
||||
t-value="[('account_id', '=', account['id']),
|
||||
('date', '<', date_from)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_monetary_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="account_or_partner_object.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
<t
|
||||
t-raw="account_or_partner_object['init_bal']['balance']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="type == 'partner_type'">
|
||||
<t t-set="domain"
|
||||
t-value="[('account_id', '=', account_or_partner_object.report_account_id.account_id.id),
|
||||
('partner_id', '=', account_or_partner_object.partner_id.id),
|
||||
('date', '<', o.date_from.strftime('%Y-%m-%d'))]"/>
|
||||
t-value="[('account_id', '=', account['id']),
|
||||
('partner_id', '=', partner['id']),
|
||||
('date', '<', date_from)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_monetary_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="account_or_partner_object.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
<t t-raw="account_or_partner_object['init_bal']['balance']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
</div>
|
||||
<t t-if="foreign_currency">
|
||||
<t t-if="account.account_id.currency_id.id">
|
||||
<t t-if="o._get_atr_from_dict(account['id'], accounts_data, 'currency_id')">
|
||||
<div class="act_as_cell amount" style="width: 2.08%;">
|
||||
<span t-field="account.account_id.currency_id.display_name"/>
|
||||
<span t-field="o._get_atr_from_dict(account['id'], accounts_data, 'currency_name')"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount" style="width: 5.19%;">
|
||||
<t t-if="type == 'account_type'">
|
||||
<t t-set="domain"
|
||||
t-value="[('account_id', '=', account_or_partner_object.account_id.id),
|
||||
t-value="[('account_id', '=', account['id']),
|
||||
('date', '<', o.date_from)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_monetary_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="account_or_partner_object.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>
|
||||
<t
|
||||
t-raw="account_or_partner_object['init_bal']['bal_curr']" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="type == 'partner_type'">
|
||||
<t t-set="domain"
|
||||
t-value="[('account_id', '=', account_or_partner_object.report_account_id.account_id.id),
|
||||
('partner_id', '=', account_or_partner_object.partner_id.id),
|
||||
t-value="[('account_id', '=', account['id']),
|
||||
('partner_id', '=', partner['id']),
|
||||
('date', '<', o.date_from)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_monetary_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="account_or_partner_object.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>
|
||||
<t t-raw="account_or_partner_object['init_bal']['bal_curr']" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="not account.account_id.currency_id.id">
|
||||
<t t-if="not o._get_atr_from_dict(account['id'], accounts_data, 'currency_id')">
|
||||
<div class="act_as_cell" style="width: 2.08%;"/>
|
||||
<div class="act_as_cell" style="width: 5.19%;"/>
|
||||
</t>
|
||||
@@ -313,76 +318,102 @@
|
||||
</div>
|
||||
|
||||
<!-- Display each lines -->
|
||||
<t t-foreach="account_or_partner_object.move_line_ids" t-as="line">
|
||||
<t t-foreach="account_or_partner_object['move_lines']" t-as="line">
|
||||
<!-- # lines or centralized lines -->
|
||||
<div class="act_as_row lines">
|
||||
<!--## date-->
|
||||
<div class="act_as_cell left">
|
||||
<t t-set="res_model" t-value="'account.move.line'"/>
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.id"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<!--## We don't use t-field because it throws an error on click -->
|
||||
<t t-esc="line.date" t-options="{'widget': 'date'}"/></a>
|
||||
<t t-if="line['id']">
|
||||
<a t-att-data-active-id="line['id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<!--## We don't use t-field because it throws an error on click -->
|
||||
<t t-esc="line['date']" t-options="{'widget': 'date'}"/></a>
|
||||
</t>
|
||||
<t t-if="not line['id']">
|
||||
<a class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<!--## We don't use t-field because it throws an error on click -->
|
||||
<t t-esc="line['date']" t-options="{'widget': 'date'}"/></a>
|
||||
</t>
|
||||
</span>
|
||||
</div>
|
||||
<!--## move-->
|
||||
<div class="act_as_cell left">
|
||||
<t t-set="res_model" t-value="'account.move'"/>
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.move_id.id"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line.entry"/></a>
|
||||
</span>
|
||||
<t t-if="line['entry_id']">
|
||||
<span>
|
||||
<a t-att-data-active-id="line['entry_id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line['entry']"/></a>
|
||||
</span>
|
||||
</t>
|
||||
</div>
|
||||
<!--## journal-->
|
||||
<div class="act_as_cell left">
|
||||
<t t-set="res_model" t-value="'account.journal'"/>
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.move_id.journal_id.id"
|
||||
<a t-att-data-active-id="line['journal_id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line.journal"/></a>
|
||||
<t t-raw="o._get_atr_from_dict(line['journal_id'], journals_data, 'code')"/></a>
|
||||
</span>
|
||||
</div>
|
||||
<!--## account code-->
|
||||
<div class="act_as_cell left">
|
||||
<t t-set="res_model" t-value="'account.account'"/>
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.account_id.id"
|
||||
<a t-att-data-active-id="account['id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line.account"/></a>
|
||||
<t t-raw="o._get_atr_from_dict(account['id'], accounts_data, 'code')"/></a>
|
||||
</span>
|
||||
</div>
|
||||
<!--## taxes-->
|
||||
<div class="act_as_cell left"><span t-field="line.taxes_description"/></div>
|
||||
<div class="act_as_cell left">
|
||||
<t t-if="taxes_data and line['tax_ids']">
|
||||
<t t-foreach="line['tax_ids']" t-as="tax_id">
|
||||
<span t-esc="o._get_atr_from_dict(tax_id, taxes_data, 'amount')"/> <span t-esc="o._get_atr_from_dict(tax_id, taxes_data, 'string')"/>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
<!--## partner-->
|
||||
<div class="act_as_cell left">
|
||||
<t t-set="res_model" t-value="'res.partner'"/>
|
||||
<span t-if="line.partner">
|
||||
<a t-att-data-active-id="line.move_line_id.partner_id.id"
|
||||
<span t-if="line['partner_id']">
|
||||
<a t-att-data-active-id="line['partner_id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;"><t t-raw="line.partner"/></a>
|
||||
style="color: black;"><t
|
||||
t-raw="line['partner_name']"/></a>
|
||||
</span>
|
||||
</div>
|
||||
<!--## ref - label-->
|
||||
<div class="act_as_cell left">
|
||||
<t t-set="res_model" t-value="'account.move.line'"/>
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.id"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line.label"/></a>
|
||||
</span>
|
||||
<t t-if="line['id']">
|
||||
<span>
|
||||
<a t-att-data-active-id="line['id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line['ref']"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="not line['id']">
|
||||
<span>
|
||||
<a class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line['ref']"/></a>
|
||||
</span>
|
||||
</t>
|
||||
</div>
|
||||
<!--## cost_center-->
|
||||
<t t-if="show_cost_center">
|
||||
@@ -398,71 +429,105 @@
|
||||
</t>
|
||||
<t t-if="show_analytic_tags">
|
||||
<!--## analytic tags-->
|
||||
<div class="act_as_cell left"><span t-field="line.tags"/></div>
|
||||
<div class="act_as_cell left">
|
||||
<t t-if="line['tag_ids']">
|
||||
<t t-foreach="line['tag_ids']" t-as="tag_id">
|
||||
<span t-esc="o._get_atr_from_dict(tag_id, tags_data, 'name')"/>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
<!--## matching_number-->
|
||||
<div class="act_as_cell">
|
||||
<t t-set="res_model" t-value="'account.full.reconcile'"/>
|
||||
<span t-if="line.matching_number">
|
||||
<a t-att-data-active-id="line.move_line_id.full_reconcile_id.id"
|
||||
<span t-if="line['rec_id']">
|
||||
<a t-att-data-active-id="line['rec_id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;"><t t-raw="line.matching_number"/></a>
|
||||
style="color: black;"><t t-raw="line['rec_name']"/></a>
|
||||
</span>
|
||||
</div>
|
||||
<!--## debit-->
|
||||
<div class="act_as_cell amount">
|
||||
<t t-set="res_model" t-value="'account.move.line'"/>
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.id"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action_monetary"
|
||||
style="color: black;">
|
||||
<t t-raw="line.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
<t t-if="line['id']">
|
||||
<span>
|
||||
<a t-att-data-active-id="line['id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action_monetary"
|
||||
style="color: black;">
|
||||
<t t-raw="line['debit']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="not line['id']">
|
||||
<span>
|
||||
<a class="o_account_financial_reports_web_action_monetary"
|
||||
style="color: black;">
|
||||
<t t-raw="line['debit']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
</div>
|
||||
<!--## credit-->
|
||||
<div class="act_as_cell amount">
|
||||
<t t-set="res_model" t-value="'account.move.line'"/>
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.id"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action_monetary"
|
||||
style="color: black;">
|
||||
<t t-raw="line.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
<t t-if="line['id']">
|
||||
<span>
|
||||
<a t-att-data-active-id="line['id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action_monetary"
|
||||
style="color: black;">
|
||||
<t t-raw="line['credit']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="not line['id']">
|
||||
<span>
|
||||
<a class="o_account_financial_reports_web_action_monetary"
|
||||
style="color: black;">
|
||||
<t t-raw="line['credit']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
<!--## balance cumulated-->
|
||||
<div class="act_as_cell amount">
|
||||
<t t-set="res_model" t-value="'account.move.line'"/>
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.id"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action_monetary"
|
||||
style="color: black;">
|
||||
<t t-raw="line.cumul_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
<t t-if="line['id']">
|
||||
<span>
|
||||
<a t-att-data-active-id="line['id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action_monetary"
|
||||
style="color: black;">
|
||||
<t t-raw="line['balance']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="not line['id']">
|
||||
<span>
|
||||
<a class="o_account_financial_reports_web_action_monetary"
|
||||
style="color: black;">
|
||||
<t t-raw="line['balance']"
|
||||
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
</div>
|
||||
<t t-if="foreign_currency">
|
||||
<t t-if="line.currency_id.id">
|
||||
<t t-if="line['currency_id']">
|
||||
<!--## currency_name-->
|
||||
<div class="act_as_cell amount" style="width: 2.08%;">
|
||||
<span t-field="line.currency_id.display_name"/>
|
||||
<span t-esc="line['currency_id'][1]"/>
|
||||
</div>
|
||||
<!--## amount_currency-->
|
||||
<div class="act_as_cell amount" style="width: 5.19%;">
|
||||
<t t-set="res_model" t-value="'account.move.line'"/>
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.id"
|
||||
<a t-att-data-active-id="line['id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line.amount_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>
|
||||
<t t-raw="line['bal_curr']"/></a>
|
||||
</span>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="not line.currency_id.id">
|
||||
<t t-if="not line['currency_id']">
|
||||
<!--## currency_name-->
|
||||
<div class="act_as_cell amount" style="width: 2.08%;"/>
|
||||
<!--## amount_currency-->
|
||||
@@ -482,7 +547,7 @@
|
||||
<t t-if='type == "account_type"'>
|
||||
<div class="act_as_cell first_column"
|
||||
style="width: 41.32%;"><span
|
||||
t-field="account_or_partner_object.code"/> - <span t-field="account_or_partner_object.name"/></div>
|
||||
t-esc="o._get_atr_from_dict(account['id'], accounts_data, 'code')"/> - <span t-esc="o._get_atr_from_dict(account['id'], accounts_data, 'name')"/></div>
|
||||
<div class="act_as_cell right"
|
||||
style="width: 22.9%;">Ending balance</div>
|
||||
</t>
|
||||
@@ -502,51 +567,53 @@
|
||||
<div class="act_as_cell" style="width: 2.41%;"/>
|
||||
<!--## debit-->
|
||||
<div class="act_as_cell amount" style="width: 6.02%;">
|
||||
<span t-field="account_or_partner_object.final_debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span
|
||||
t-esc="account_or_partner_object['fin_bal']['debit']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## credit-->
|
||||
<div class="act_as_cell amount" style="width: 6.02%;">
|
||||
<span t-field="account_or_partner_object.final_credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span
|
||||
t-esc="account_or_partner_object['fin_bal']['credit']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## balance cumulated-->
|
||||
<div class="act_as_cell amount" style="width: 6.02%;">
|
||||
<span t-field="account_or_partner_object.final_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="account_or_partner_object['fin_bal']['balance']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## currency_name + amount_currency-->
|
||||
<t t-if="foreign_currency">
|
||||
<t t-if="account.account_id.currency_id.id">
|
||||
<t t-if="o._get_atr_from_dict(account['id'], accounts_data, 'currency_id')">
|
||||
<div class="act_as_cell amount" style="width: 2.08%;">
|
||||
<span t-field="account.account_id.currency_id.display_name"/>
|
||||
<span t-field="o._get_atr_from_dict(account['id'], accounts_data, 'currency_name')"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount" style="width: 5.19%;">
|
||||
<t t-if="type == 'account_type'">
|
||||
<t t-set="domain"
|
||||
t-value="[('account_id', '=', account_or_partner_object.account_id.id),
|
||||
('date', '<', o.date_from)]"/>
|
||||
t-value="[('account_id', '=', account['id']),
|
||||
('date', '<', date_from)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_monetary_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="account_or_partner_object.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account_or_partner_object.account_id.currency_id}"/></a>
|
||||
<t
|
||||
t-raw="account_or_partner_object['fin_bal']['bal_curr']" t-options="{'widget': 'monetary', 'display_currency': account_or_partner_object.account_id.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="type == 'partner_type'">
|
||||
<t t-set="domain"
|
||||
t-value="[('account_id', '=', account_or_partner_object.report_account_id.account_id.id),
|
||||
('partner_id', '=', account_or_partner_object.partner_id.id),
|
||||
('date', '<', o.date_from)]"/>
|
||||
<t t-set="domain" t-value="[('account_id', '=', account['id']),
|
||||
('partner_id', '=', partner['id']),
|
||||
('date', '<', date_from)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_monetary_multi"
|
||||
style="color: black;">
|
||||
<t t-raw="account_or_partner_object.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account_or_partner_object.report_account_id.currency_id}"/></a>
|
||||
<t t-raw="account_or_partner_object['fin_bal']['bal_curr']" t-options="{'widget': 'monetary', 'display_currency': account_or_partner_object.report_account_id.currency_id}"/></a>
|
||||
</span>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="not account.account_id.currency_id ">
|
||||
<t t-if="not o._get_atr_from_dict(account['id'], accounts_data, 'currency_id')">
|
||||
<div class="act_as_cell amount" style="width: 2.08%;"/>
|
||||
<div class="act_as_cell amount" style="width: 5.19%;"/>
|
||||
</t>
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright 2018 Eficent Business and IT Consulting Services S.L.
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
|
||||
<template id="report_journal_ledger_qweb">
|
||||
|
||||
<template id="journal_ledger">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="account_financial_report.internal_layout">
|
||||
@@ -12,23 +15,23 @@
|
||||
</template>
|
||||
|
||||
<template id="report_journal_ledger_base">
|
||||
<t t-set="display_currency" t-value="o.foreign_currency"/>
|
||||
<t t-set="display_account_name" t-value="o.with_account_name"/>
|
||||
<t t-set="title">Journal Ledger - <t t-raw="o.company_id.name"/> - <t t-raw="o.company_id.currency_id.name"/></t>
|
||||
<t t-set="company_name" t-value="o.company_id.name"/>
|
||||
<t t-set="display_currency" t-value="foreign_currency"/>
|
||||
<t t-set="display_account_name" t-value="with_account_name"/>
|
||||
<t t-set="title">Journal Ledger - <t t-raw="company_name"/> - <t t-raw="currency_name"/></t>
|
||||
<t t-set="company_name" t-value="Company_Name"/>
|
||||
<div class="page">
|
||||
<div class="row">
|
||||
<h4 class="mt0" t-esc="title or 'Odoo Report'" style="text-align: center;"/>
|
||||
</div>
|
||||
<t t-if="o.group_option == 'none'">
|
||||
<t t-if="group_option == 'none'">
|
||||
<div class="page_break">
|
||||
<t t-call="account_financial_report.report_journal_all"/>
|
||||
<br/>
|
||||
<t t-call="account_financial_report.report_journal_all_taxes"/>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="o.group_option == 'journal'">
|
||||
<t t-foreach="o.report_journal_ledger_ids" t-as="journal">
|
||||
<t t-if="group_option == 'journal'">
|
||||
<t t-foreach="Journal_Ledgers" t-as="journal">
|
||||
<div class="page_break">
|
||||
<t t-call="account_financial_report.report_journal_ledger_journal"/>
|
||||
<br/>
|
||||
@@ -44,7 +47,7 @@
|
||||
<div class="act_as_table list_table" style="margin-top: 10px;"/>
|
||||
<div class="act_as_table data_table" style="width: 100%;">
|
||||
<t t-call="account_financial_report.report_journal_ledger_journal_table_header"/>
|
||||
<t t-foreach="o.report_move_ids" t-as="move">
|
||||
<t t-foreach="Moves" t-as="move">
|
||||
<t t-call="account_financial_report.report_journal_move"/>
|
||||
</t>
|
||||
</div>
|
||||
@@ -53,13 +56,13 @@
|
||||
<template id="account_financial_report.report_journal_ledger_journal">
|
||||
<div class="act_as_table list_table" style="margin-top: 10px;"/>
|
||||
<div class="act_as_caption account_title" style="width: 100%;">
|
||||
<span t-field="journal.name"/> (<span t-field="journal.currency_id.display_name"/>) - <span t-field="o.date_from"/> to <span t-field="o.date_to"/> - <span t-field="o.move_target"/> Moves
|
||||
<span t-esc="journal['name']"/> (<span t-esc="journal['currency_name']"/>) - <span t-esc="date_from" t-options="{'widget': 'date'}"/> to <span t-esc="date_to" t-options="{'widget': 'date'}"/> - <span t-esc="move_target"/> Moves
|
||||
</div>
|
||||
|
||||
<div class="act_as_table data_table" style="width: 100%;">
|
||||
<t t-call="account_financial_report.report_journal_ledger_journal_table_header"/>
|
||||
<t t-call="account_financial_report.report_journal_ledger_journal_first_line"/>
|
||||
<t t-foreach="journal.report_move_ids" t-as="move">
|
||||
<t t-foreach="journal['report_moves']" t-as="move">
|
||||
<t t-call="account_financial_report.report_journal_move"/>
|
||||
</t>
|
||||
</div>
|
||||
@@ -155,11 +158,11 @@
|
||||
name="taxes"/>
|
||||
<div class="act_as_cell amount"
|
||||
name="debit">
|
||||
<b><span t-field="journal.debit"/></b>
|
||||
<b><span t-esc="journal['debit']" t-options="{'widget': 'float', 'precision': 2}"/></b>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="credit">
|
||||
<b><span t-field="journal.credit"/></b>
|
||||
<b><span t-esc="journal['credit']" t-options="{'widget': 'float', 'precision': 2}"/></b>
|
||||
</div>
|
||||
<t t-if="display_currency">
|
||||
<div class="act_as_cell"
|
||||
@@ -177,9 +180,9 @@
|
||||
<t t-set="display_move_info" t-value="True"/>
|
||||
<t t-set="last_partner" t-eval="None"/>
|
||||
<t t-set="display_partner" t-eval="True"/>
|
||||
<t t-foreach="move.report_move_line_ids" t-as="move_line">
|
||||
<t t-foreach="move['report_move_lines']" t-as="move_line">
|
||||
<div class="act_as_row lines">
|
||||
<t t-set="current_partner" t-value="move_line.partner_id"/>
|
||||
<t t-set="current_partner" t-value="o._get_partner_name(move_line['partner_id'], partner_ids_data)"/>
|
||||
<t t-set="display_partner" t-value="current_partner != last_partner"/>
|
||||
<t t-call="account_financial_report.report_journal_move_line"/>
|
||||
<t t-set="last_partner" t-value="current_partner"/>
|
||||
@@ -191,54 +194,65 @@
|
||||
<template id="account_financial_report.report_journal_move_line">
|
||||
<div class="act_as_cell left"
|
||||
name="entry">
|
||||
<span t-if="display_move_info" t-field="move_line.entry"/>
|
||||
<t t-set="res_model" t-value="'account.move'"/>
|
||||
<span t-if="display_move_info">
|
||||
<a t-att-data-active-id="move_line['move_id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-esc="o._get_atr_from_dict(move_line['move_id'], move_ids_data, 'entry')"/>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<div class="act_as_cell left"
|
||||
name="date">
|
||||
<span t-if="display_move_info" t-field="move_line.date"/>
|
||||
<span t-if="display_move_info" t-esc="move_line['date']" t-options="{'widget': 'date'}"/>
|
||||
</div>
|
||||
<div class="act_as_cell left"
|
||||
name="account">
|
||||
<span t-field="move_line.account_code"/>
|
||||
<span t-esc="o._get_atr_from_dict(move_line['account_id'], account_ids_data, 'code')"/>
|
||||
<span t-if="display_account_name">
|
||||
- <span t-field="move_line.account"/>
|
||||
- <span t-esc="o._get_atr_from_dict(move_line['account_id'], account_ids_data, 'name')"/>
|
||||
</span>
|
||||
</div>
|
||||
<div class="act_as_cell left"
|
||||
name="partner">
|
||||
<span t-if="display_partner" t-field="move_line.partner"/>
|
||||
<span t-if="display_partner" t-esc="o._get_partner_name(move_line['partner_id'], partner_ids_data)"/>
|
||||
</div>
|
||||
<div class="act_as_cell left"
|
||||
name="label">
|
||||
<span t-field="move_line.label"/>
|
||||
<span t-if="move_line['label']" t-esc="move_line['label']"/>
|
||||
<span t-if="not move_line['label']">/</span>
|
||||
</div>
|
||||
<div class="act_as_cell left"
|
||||
name="taxes">
|
||||
<span t-field="move_line.taxes_description"/>
|
||||
<t t-set="tax_line_dat" t-value="o._get_data_from_dict(move_line['tax_line_id'], tax_line_data)"/>
|
||||
<t t-set="move_line_ids_taxes_dat" t-value="o._get_data_from_dict(move_line['move_line_id'], move_line_ids_taxes_data)"/>
|
||||
<span t-esc="o._get_ml_tax_description(move_line, tax_line_dat, move_line_ids_taxes_dat)"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="debit">
|
||||
<t t-if="move_line.debit">
|
||||
<span t-field="move_line.debit"/>
|
||||
<t t-if="move_line['debit']">
|
||||
<span t-esc="move_line['debit']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</t>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="credit">
|
||||
<t t-if="move_line.credit">
|
||||
<span t-field="move_line.credit"/>
|
||||
<t t-if="move_line['credit']">
|
||||
<span t-esc="move_line['credit']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</t>
|
||||
</div>
|
||||
<t t-if="display_currency">
|
||||
<div class="act_as_cell"
|
||||
name="currency_name">
|
||||
<t t-if="move_line.currency_name">
|
||||
<span t-field="move_line.currency_name"/>
|
||||
<t t-if="move_line['currency_id']">
|
||||
<span t-esc="currency_ids_data.get(move_line['currency_id'], '')"/>
|
||||
</t>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="amount_currency">
|
||||
<t t-if="move_line.amount_currency">
|
||||
<span t-field="move_line.amount_currency"/>
|
||||
<t t-if="move_line['amount_currency']" t-options="{'widget': 'float', 'precision': 2}">
|
||||
<span t-esc="move_line['amount_currency']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
@@ -314,39 +328,39 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<t t-foreach="journal.report_tax_line_ids" t-as="tax_line">
|
||||
<t t-foreach="journal['tax_lines']" t-as="tax_line">
|
||||
<div class="act_as_row lines">
|
||||
<div class="act_as_cell left"
|
||||
name="tax_name">
|
||||
<span t-field="tax_line.tax_name"/>
|
||||
<span t-esc="tax_line['tax_name']"/>
|
||||
</div>
|
||||
<div class="act_as_cell left"
|
||||
name="tax_code">
|
||||
<span t-field="tax_line.tax_code"/>
|
||||
<span t-esc="tax_line['tax_code']"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="base_debit">
|
||||
<span t-field="tax_line.base_debit"/>
|
||||
<span t-esc="tax_line['base_debit']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="base_credit">
|
||||
<span t-field="tax_line.base_credit"/>
|
||||
<span t-esc="tax_line['base_credit']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="base_balance">
|
||||
<span t-field="tax_line.base_balance"/>
|
||||
<span t-esc="tax_line['base_balance']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="tax_debit">
|
||||
<span t-field="tax_line.tax_debit"/>
|
||||
<span t-esc="tax_line['tax_debit']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="tax_credit">
|
||||
<span t-field="tax_line.tax_credit"/>
|
||||
<span t-esc="tax_line['tax_credit']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="tax_balance">
|
||||
<span t-field="tax_line.tax_balance"/>
|
||||
<span t-esc="tax_line['tax_balance']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
@@ -423,39 +437,39 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<t t-foreach="o.report_tax_line_ids" t-as="tax_line">
|
||||
<t t-foreach="ReportTaxLines" t-as="tax_line">
|
||||
<div class="act_as_row lines">
|
||||
<div class="act_as_cell left"
|
||||
name="tax_name">
|
||||
<span t-field="tax_line.tax_name"/>
|
||||
<span t-esc="tax_line['tax_name']"/>
|
||||
</div>
|
||||
<div class="act_as_cell left"
|
||||
name="tax_code">
|
||||
<span t-field="tax_line.tax_code"/>
|
||||
<span t-esc="tax_line['tax_code']"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="base_debit">
|
||||
<span t-field="tax_line.base_debit"/>
|
||||
<span t-esc="tax_line['base_debit']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="base_credit">
|
||||
<span t-field="tax_line.base_credit"/>
|
||||
<span t-esc="tax_line['base_credit']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="base_balance">
|
||||
<span t-field="tax_line.base_balance"/>
|
||||
<span t-esc="tax_line['base_balance']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="tax_debit">
|
||||
<span t-field="tax_line.tax_debit"/>
|
||||
<span t-esc="tax_line['tax_debit']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="tax_credit">
|
||||
<span t-field="tax_line.tax_credit"/>
|
||||
<span t-esc="tax_line['tax_credit']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</div>
|
||||
<div class="act_as_cell amount"
|
||||
name="tax_balance">
|
||||
<span t-field="tax_line.tax_balance"/>
|
||||
<span t-esc="tax_line['tax_balance']" t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="account_financial_report.report_open_items_qweb">
|
||||
<template id="open_items">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="account_financial_report.internal_layout">
|
||||
@@ -13,10 +13,10 @@
|
||||
|
||||
<template id="account_financial_report.report_open_items_base">
|
||||
<!-- Saved flag fields into variables, used to define columns display -->
|
||||
<t t-set="foreign_currency" t-value="o.foreign_currency"/>
|
||||
<t t-set="foreign_currency" t-value="foreign_currency"/>
|
||||
<!-- Defines global variables used by internal layout -->
|
||||
<t t-set="title">Open Items - <t t-raw="o.company_id.name"/> - <t t-raw="o.company_id.currency_id.name"/></t>
|
||||
<t t-set="company_name" t-value="o.company_id.name"/>
|
||||
<t t-set="title">Open Items - <t t-raw="company_name"/> - <t t-raw="currency_name"/></t>
|
||||
<t t-set="company_name" t-value="Company_Name"/>
|
||||
<div class="page">
|
||||
<div class="row">
|
||||
<h4 class="mt0" t-esc="title or 'Odoo Report'" style="text-align: center;"/>
|
||||
@@ -24,23 +24,23 @@
|
||||
<!-- Display filters -->
|
||||
<t t-call="account_financial_report.report_open_items_filters"/>
|
||||
|
||||
<t t-foreach="o.account_ids" t-as="account">
|
||||
<t t-foreach="Open_Items.keys()" t-as="account_id">
|
||||
<div class="page_break">
|
||||
<!-- Display account header -->
|
||||
<div class="act_as_table list_table" style="margin-top: 10px;" />
|
||||
<div class="account_title"
|
||||
style="width: 100%;">
|
||||
<span t-field="account.code"/>
|
||||
<span t-esc="accounts_data[account_id]['code']"/>
|
||||
-
|
||||
<span t-field="account.name"/>
|
||||
<span t-esc="accounts_data[account_id]['name']"/>
|
||||
</div>
|
||||
|
||||
<!-- Display account partners -->
|
||||
<t t-foreach="account.partner_ids" t-as="partner">
|
||||
<t t-foreach="Open_Items[account_id]" t-as="partner_id" >
|
||||
<div class="page_break">
|
||||
<!-- Display partner header -->
|
||||
<div class="account_title">
|
||||
<span t-field="partner.name"/>
|
||||
<div class="act_as_caption account_title">
|
||||
<span t-esc="partners_data[partner_id]['name']"/>
|
||||
</div>
|
||||
|
||||
<!-- Display partner move lines -->
|
||||
@@ -48,7 +48,8 @@
|
||||
|
||||
<!-- Display partner footer -->
|
||||
<t t-call="account_financial_report.report_open_items_ending_cumul">
|
||||
<t t-set="account_or_partner_object" t-value="partner"/>
|
||||
<t t-set="account_or_partner_id" t-value="partners_data[partner_id]"/>
|
||||
<t t-set="currency_id" t-value="accounts_data[account_id]['currency_name']"/>
|
||||
<t t-set="type" t-value='"partner_type"'/>
|
||||
</t>
|
||||
</div>
|
||||
@@ -56,7 +57,8 @@
|
||||
|
||||
<!-- Display account footer -->
|
||||
<t t-call="account_financial_report.report_open_items_ending_cumul">
|
||||
<t t-set="account_or_partner_object" t-value="account"/>
|
||||
<t t-set="account_or_partner_id" t-value="accounts_data[account_id]"/>
|
||||
<t t-set="currency_id" t-value="accounts_data[account_id]['currency_name']"/>
|
||||
<t t-set="type" t-value='"account_type"'/>
|
||||
</t>
|
||||
</div>
|
||||
@@ -73,15 +75,15 @@
|
||||
</div>
|
||||
<div class="act_as_row">
|
||||
<div class="act_as_cell">
|
||||
<span t-field="o.date_at"/>
|
||||
<span t-esc="date_at"/>
|
||||
</div>
|
||||
<div class="act_as_cell">
|
||||
<t t-if="o.only_posted_moves">All posted entries</t>
|
||||
<t t-if="not o.only_posted_moves">All entries</t>
|
||||
<t t-if="target_move == 'posted'">All posted entries</t>
|
||||
<t t-if="target_move == 'all'">All entries</t>
|
||||
</div>
|
||||
<div class="act_as_cell">
|
||||
<t t-if="o.hide_account_at_0">Hide</t>
|
||||
<t t-if="not o.hide_account_at_0">Show</t>
|
||||
<t t-if="hide_account_at_0">Hide</t>
|
||||
<t t-if="not hide_account_at_0">Show</t>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -127,78 +129,71 @@
|
||||
</div>
|
||||
|
||||
<!-- Display each lines -->
|
||||
<t t-foreach="partner.move_line_ids" t-as="line">
|
||||
<t t-foreach="Open_Items[account_id][partner_id]" t-as="line" >
|
||||
<!-- # lines or centralized lines -->
|
||||
<div class="act_as_row lines">
|
||||
<!--## date-->
|
||||
<div class="act_as_cell left">
|
||||
<span t-field="line.date"/>
|
||||
<span t-raw="line['date']"/>
|
||||
</div>
|
||||
<!--## move-->
|
||||
<div class="act_as_cell left">
|
||||
<t t-set="res_model" t-value="'account.move'"/>
|
||||
<span>
|
||||
<a t-att-data-active-id="line.move_line_id.move_id.id"
|
||||
<a t-att-data-active-id="line['move_id']"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line.entry"/>
|
||||
<t t-esc="line['move_name']"/>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<!--## journal-->
|
||||
<div class="act_as_cell left">
|
||||
<span t-field="line.journal"/>
|
||||
<span t-esc="line['journal']"/>
|
||||
</div>
|
||||
<!--## account code-->
|
||||
<div class="act_as_cell left">
|
||||
<span t-field="line.account"/>
|
||||
<span t-esc="line['account']"/>
|
||||
</div>
|
||||
<!--## partner-->
|
||||
<div class="act_as_cell left">
|
||||
<t t-set="res_model" t-value="'res.partner'"/>
|
||||
<span t-if="line.partner">
|
||||
<a t-att-data-active-id="line.move_line_id.partner_id.id"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
style="color: black;">
|
||||
<t t-raw="line.partner"/>
|
||||
</a>
|
||||
</span>
|
||||
<!-- <span t-if="line.get('partner_id', False)" t-esc="line['partner_id']"/>-->
|
||||
<span t-esc="line['partner_name']"/>
|
||||
</div>
|
||||
<!--## ref - label-->
|
||||
<div class="act_as_cell left">
|
||||
<span t-field="line.label"/>
|
||||
<span t-esc="line['ref']"/>
|
||||
</div>
|
||||
<!--## date_due-->
|
||||
<div class="act_as_cell left">
|
||||
<span t-field="line.date_due"/>
|
||||
<span t-esc="line['date_maturity']"/>
|
||||
</div>
|
||||
<!--## amount_total_due-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-field="line.amount_total_due" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-if="line.get('original', False)" t-esc="line['original']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<!--## amount_residual-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-field="line.amount_residual" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<span t-esc="line['amount_residual']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</div>
|
||||
<t t-if="foreign_currency">
|
||||
<t t-if="line.currency_id.id">
|
||||
<t t-if="line['currency_id']">
|
||||
<!--## currency_name-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-field="line.currency_id.display_name"/>
|
||||
<span t-esc="line['currency_name']"/>
|
||||
</div>
|
||||
<!--## amount_total_due_currency-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-field="line.amount_total_due_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/>
|
||||
<span t-esc="line['amount_currency']"/>
|
||||
</div>
|
||||
<!--## amount_residual_currency-->
|
||||
<div class="act_as_cell amount">
|
||||
<span t-field="line.amount_residual_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/>
|
||||
<span t-esc="line['amount_residual_currency']"/>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="not line.currency_id.id">
|
||||
<!--## currency_name-->
|
||||
<t t-if="not line['currency_id']">
|
||||
<!--## currency_name-->
|
||||
<div class="act_as_cell"/>
|
||||
<!--## amount_total_due_currency-->
|
||||
<div class="act_as_cell"/>
|
||||
@@ -218,9 +213,9 @@
|
||||
<!--## date-->
|
||||
<t t-if='type == "account_type"'>
|
||||
<div class="act_as_cell first_column" style="width: 36.34%;">
|
||||
<span t-field="account_or_partner_object.code"/>
|
||||
<span t-esc="accounts_data[account_id]['code']"/>
|
||||
-
|
||||
<span t-field="account_or_partner_object.name"/>
|
||||
<span t-esc="accounts_data[account_id]['name']"/>
|
||||
</div>
|
||||
<div class="act_as_cell right" style="width: 28.66%;">Ending
|
||||
balance</div>
|
||||
@@ -237,32 +232,21 @@
|
||||
<div class="act_as_cell amount" style="width: 6.57%;"/>
|
||||
<!--## amount_currency-->
|
||||
<div class="act_as_cell amount" style="width: 6.57%;">
|
||||
<span t-field="account_or_partner_object.final_amount_residual" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<t t-if='type == "account_type"'>
|
||||
<span t-esc="total_amount[account_id]['residual']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</t>
|
||||
<t t-if='type == "partner_type"'>
|
||||
<span t-esc="total_amount[account_id][partner_id]['residual']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
</t>
|
||||
</div>
|
||||
<!--## amount_total_due_currency + amount_residual_currency -->
|
||||
<t t-if="foreign_currency">
|
||||
<t t-if="account_or_partner_object.currency_id.id">
|
||||
<!--## currency_name-->
|
||||
<div class="act_as_cell amount" style="width: 2.25%;">
|
||||
<span t-field="account_or_partner_object.currency_id.display_name"/>
|
||||
</div>
|
||||
<!--## amount_total_due_currency-->
|
||||
<div class="act_as_cell amount" style="width: 6.57%;">
|
||||
<span t-field="account_or_partner_object.final_amount_total_due_currency" t-options="{'widget': 'monetary', 'display_currency': account_or_partner_object.currency_id}"/>
|
||||
</div>
|
||||
<!--## amount_residual_currency-->
|
||||
<div class="act_as_cell amount" style="width: 6.57%;">
|
||||
<span t-field="account_or_partner_object.final_amount_residual_currency" t-options="{'widget': 'monetary', 'display_currency': account_or_partner_object.currency_id}"/>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="not account_or_partner_object.currency_id.id">
|
||||
<!--## currency_name-->
|
||||
<div class="act_as_cell"/>
|
||||
<!--## amount_total_due_currency-->
|
||||
<div class="act_as_cell"/>
|
||||
<!--## amount_residual_currency-->
|
||||
<div class="act_as_cell"/>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="account_financial_report.report_vat_report_qweb">
|
||||
<template id="vat_report">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="account_financial_report.internal_layout">
|
||||
@@ -12,8 +12,8 @@
|
||||
</template>
|
||||
|
||||
<template id="account_financial_report.report_vat_report_base">
|
||||
<t t-set="title">VAT Report - <t t-raw="o.company_id.name"/> - <t t-raw="o.company_id.currency_id.name"/></t>
|
||||
<t t-set="company_name" t-value="o.company_id.name"/>
|
||||
<t t-set="title">VAT Report - <t t-raw="company_name"/> - <t t-raw="currency_name"/></t>
|
||||
<t t-set="company_name" t-value="company_name"/>
|
||||
<div class="page">
|
||||
<div class="row">
|
||||
<h4 class="mt0" t-esc="title or 'Odoo Report'" style="text-align: center;"/>
|
||||
@@ -36,105 +36,101 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<t t-foreach="o.taxtags_ids" t-as="tag">
|
||||
<t t-foreach="vat_report" t-as="tag_or_group">
|
||||
<div class="act_as_row lines" style="font-weight: bold;">
|
||||
<t t-if="tag.taxtag_id">
|
||||
<t t-set="res_model" t-value="'account.account.tag'"/>
|
||||
<t t-set="res_id" t-value="tag.taxtag_id.id"/>
|
||||
</t>
|
||||
<t t-if="tag.taxgroup_id">
|
||||
<t t-set="res_model" t-value="'account.tax.group'"/>
|
||||
<t t-set="res_id" t-value="tag.taxgroup_id.id"/>
|
||||
</t>
|
||||
<div class="act_as_cell left oe_tooltip_string" style="width: 5%;">
|
||||
<span>
|
||||
<a t-att-data-active-id="res_id"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
t-att-style="style">
|
||||
<t t-att-style="style" t-raw="tag.code"/></a>
|
||||
</span>
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-active-id="res_id"-->
|
||||
<!-- t-att-data-res-model="res_model"-->
|
||||
<!-- class="o_account_financial_reports_web_action"-->
|
||||
<!-- t-att-style="style">-->
|
||||
<t t-att-style="style" t-raw="tag_or_group['code']"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<div class="act_as_cell left oe_tooltip_string" style="width: 65%;">
|
||||
<span>
|
||||
<a t-att-data-active-id="res_id"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
t-att-style="style"><t t-att-style="style" t-raw="tag.name"/></a>
|
||||
</span>
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-active-id="res_id"-->
|
||||
<!-- t-att-data-res-model="res_model"-->
|
||||
<!-- class="o_account_financial_reports_web_action"-->
|
||||
<!-- t-att-style="style">-->
|
||||
<t t-att-style="style" t-raw="tag_or_group['name']"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<div class="act_as_cell amount" style="width: 15%;">
|
||||
<t t-set="domain"
|
||||
t-value="[('tax_ids', 'in', [tax.tax_id.id for tax in tag.tax_ids]),
|
||||
('date', '>=', o.date_from),
|
||||
('date', '<=', o.date_to)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_multi"
|
||||
t-att-style="style">
|
||||
<t t-att-style="style" t-raw="tag.net"
|
||||
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
<!-- <t t-set="domain"-->
|
||||
<!-- t-value="[('tax_ids', 'in', [tax.tax_id.id for tax in tag.tax_ids]),-->
|
||||
<!-- ('date', '>=', o.date_from),-->
|
||||
<!-- ('date', '<=', o.date_to)]"/>-->
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-domain="domain"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action_multi"-->
|
||||
<!-- t-att-style="style">-->
|
||||
<t t-att-style="style" t-raw="tag_or_group['net']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<div class="act_as_cell amount" style="width: 15%;">
|
||||
<t t-set="domain"
|
||||
t-value="[('tax_line_id', 'in', [tax.tax_id.id for tax in tag.tax_ids]),
|
||||
('date', '>=', o.date_from),
|
||||
('date', '<=', o.date_to),
|
||||
('tax_exigible', '=', True)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_multi"
|
||||
t-att-style="style">
|
||||
<t t-att-style="style" t-raw="tag.tax"
|
||||
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
<!-- <t t-set="domain"-->
|
||||
<!-- t-value="[('tax_line_id', 'in', [tax.tax_id.id for tax in tag.tax_ids]),-->
|
||||
<!-- ('date', '>=', o.date_from),-->
|
||||
<!-- ('date', '<=', o.date_to),-->
|
||||
<!-- ('tax_exigible', '=', True)]"/>-->
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-domain="domain"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action_multi"-->
|
||||
<!-- t-att-style="style">-->
|
||||
<t t-att-style="style" t-raw="tag_or_group['tax']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
</div>
|
||||
<t t-if="o.tax_detail">
|
||||
<t t-foreach="tag.tax_ids" t-as="tax">
|
||||
<t t-set="res_model" t-value="'account.tax'"/>
|
||||
<t t-if="tax_detail">
|
||||
<t t-foreach="tag_or_group['taxes']" t-as="tax">
|
||||
<div class="act_as_row lines">
|
||||
<div class="act_as_cell" style="width: 5%;"/>
|
||||
<div class="act_as_cell left oe_tooltip_string" style="padding-left: 20px; width: 65%;">
|
||||
<span>
|
||||
<a t-att-data-active-id="tax.tax_id.id"
|
||||
t-att-data-res-model="res_model"
|
||||
class="o_account_financial_reports_web_action"
|
||||
t-att-style="style"><t t-att-style="style" t-raw="tax.name"/></a>
|
||||
</span>
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-active-id="tax.tax_id.id"-->
|
||||
<!-- t-att-data-res-model="res_model"-->
|
||||
<!-- class="o_account_financial_reports_web_action"-->
|
||||
<!-- t-att-style="style">-->
|
||||
<t t-att-style="style" t-raw="tax['name']"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<div class="act_as_cell amount" style="width: 15%;">
|
||||
<t t-set="domain"
|
||||
t-value="[('tax_ids', 'in', tax.tax_id.ids),
|
||||
('date', '>=', o.date_from),
|
||||
('date', '<=', o.date_to),
|
||||
('tax_exigible', '=', True)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_multi"
|
||||
t-att-style="style">
|
||||
<t t-att-style="style" t-raw="tax.net"
|
||||
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
<!-- <t t-set="domain"-->
|
||||
<!-- t-value="[('tax_ids', 'in', tax.tax_id.ids),-->
|
||||
<!-- ('date', '>=', o.date_from),-->
|
||||
<!-- ('date', '<=', o.date_to),-->
|
||||
<!-- ('tax_exigible', '=', True)]"/>-->
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-domain="domain"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action_multi"-->
|
||||
<!-- t-att-style="style">-->
|
||||
<t t-att-style="style" t-raw="tax['net']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
<div class="act_as_cell amount" style="width: 15%;">
|
||||
<t t-set="domain"
|
||||
t-value="[('tax_line_id', '=', tax.tax_id.id),
|
||||
('date', '>=', o.date_from),
|
||||
('date', '<=', o.date_to),
|
||||
('tax_exigible', '=', True)]"/>
|
||||
<span>
|
||||
<a t-att-data-domain="domain"
|
||||
t-att-data-res-model="'account.move.line'"
|
||||
class="o_account_financial_reports_web_action_multi"
|
||||
t-att-style="style">
|
||||
<t t-att-style="style" t-raw="tax.tax"
|
||||
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
|
||||
</span>
|
||||
<!-- <t t-set="domain"-->
|
||||
<!-- t-value="[('tax_line_id', '=', tax.tax_id.id),-->
|
||||
<!-- ('date', '>=', o.date_from),-->
|
||||
<!-- ('date', '<=', o.date_to),-->
|
||||
<!-- ('tax_exigible', '=', True)]"/>-->
|
||||
<!-- <span>-->
|
||||
<!-- <a t-att-data-domain="domain"-->
|
||||
<!-- t-att-data-res-model="'account.move.line'"-->
|
||||
<!-- class="o_account_financial_reports_web_action_multi"-->
|
||||
<!-- t-att-style="style">-->
|
||||
<t t-att-style="style" t-raw="tax['tax']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
@@ -153,13 +149,13 @@
|
||||
</div>
|
||||
<div class="act_as_row">
|
||||
<div class="act_as_cell">
|
||||
<span t-field="o.date_from"/>
|
||||
<span t-esc="date_from"/>
|
||||
</div>
|
||||
<div class="act_as_cell">
|
||||
<span t-field="o.date_to"/>
|
||||
<span t-esc="date_to"/>
|
||||
</div>
|
||||
<div class="act_as_cell">
|
||||
<span t-field="o.based_on"/>
|
||||
<span t-esc="based_on"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user