|
@ -1,33 +1,40 @@ |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<odoo> |
|
|
<odoo> |
|
|
|
|
|
|
|
|
<template id="account_financial_report_qweb.report_general_ledger_qweb"> |
|
|
|
|
|
|
|
|
<template id="report_general_ledger_qweb"> |
|
|
<t t-call="report.html_container"> |
|
|
<t t-call="report.html_container"> |
|
|
<t t-foreach="docs" t-as="o"> |
|
|
<t t-foreach="docs" t-as="o"> |
|
|
|
|
|
<t t-call="account_financial_report_qweb.internal_layout"> |
|
|
|
|
|
<t t-call="account_financial_report_qweb.report_general_ledger_base"/> |
|
|
|
|
|
</t> |
|
|
|
|
|
</t> |
|
|
|
|
|
</t> |
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template id="report_general_ledger_base"> |
|
|
<!-- Saved flag fields into variables, used to define columns display --> |
|
|
<!-- Saved flag fields into variables, used to define columns display --> |
|
|
<t t-set="show_cost_center" t-value="o.show_cost_center"/> |
|
|
<t t-set="show_cost_center" t-value="o.show_cost_center"/> |
|
|
<t t-set="has_second_currency" t-value="o.has_second_currency"/> |
|
|
|
|
|
|
|
|
|
|
|
<t t-call="account_financial_report_qweb.internal_layout"> |
|
|
|
|
|
|
|
|
<t t-set="foreign_currency" t-value="o.foreign_currency"/> |
|
|
<!-- Defines global variables used by internal layout --> |
|
|
<!-- Defines global variables used by internal layout --> |
|
|
<t t-set="title">General Ledger</t> |
|
|
<t t-set="title">General Ledger</t> |
|
|
<t t-set="company_name" t-value="o.company_id.name"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<t t-set="res_company" t-value="o.company_id"/> |
|
|
<div class="page"> |
|
|
<div class="page"> |
|
|
<!-- Display filters --> |
|
|
<!-- Display filters --> |
|
|
<t t-call="account_financial_report_qweb.report_general_ledger_qweb_filters"/> |
|
|
|
|
|
|
|
|
<t t-call="account_financial_report_qweb.report_general_ledger_filters"/> |
|
|
|
|
|
|
|
|
<t t-foreach="o.account_ids" t-as="account"> |
|
|
<t t-foreach="o.account_ids" t-as="account"> |
|
|
<div class="page_break"> |
|
|
<div class="page_break"> |
|
|
<!-- Display account header --> |
|
|
<!-- Display account header --> |
|
|
<div class="act_as_table list_table" style="margin-top: 10px;"/> |
|
|
<div class="act_as_table list_table" style="margin-top: 10px;"/> |
|
|
<div class="act_as_caption account_title" style="width: 1141px !important;"> |
|
|
|
|
|
|
|
|
<div class="act_as_caption account_title" |
|
|
|
|
|
style="width: 100%"> |
|
|
<span t-field="account.code"/> - <span t-field="account.name"/> |
|
|
<span t-field="account.code"/> - <span t-field="account.name"/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<t t-if="not account.partner_ids"> |
|
|
<t t-if="not account.partner_ids"> |
|
|
<!-- Display account move lines without partner regroup --> |
|
|
<!-- Display account move lines without partner regroup --> |
|
|
<t t-call="account_financial_report_qweb.report_general_ledger_qweb_lines"> |
|
|
|
|
|
|
|
|
<t t-set="type" t-value='"account_type"'/> |
|
|
|
|
|
<t t-call="account_financial_report_qweb.report_general_ledger_lines"> |
|
|
<t t-set="account_or_partner_object" t-value="account"/> |
|
|
<t t-set="account_or_partner_object" t-value="account"/> |
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
@ -35,6 +42,7 @@ |
|
|
<t t-if="account.partner_ids"> |
|
|
<t t-if="account.partner_ids"> |
|
|
<!-- Display account partners --> |
|
|
<!-- Display account partners --> |
|
|
<t t-foreach="account.partner_ids" t-as="partner"> |
|
|
<t t-foreach="account.partner_ids" t-as="partner"> |
|
|
|
|
|
<t t-set="type" t-value='"partner_type"'/> |
|
|
<div class="page_break"> |
|
|
<div class="page_break"> |
|
|
<!-- Display partner header --> |
|
|
<!-- Display partner header --> |
|
|
<div class="act_as_caption account_title"> |
|
|
<div class="act_as_caption account_title"> |
|
@ -42,12 +50,12 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- Display partner move lines --> |
|
|
<!-- Display partner move lines --> |
|
|
<t t-call="account_financial_report_qweb.report_general_ledger_qweb_lines"> |
|
|
|
|
|
|
|
|
<t t-call="account_financial_report_qweb.report_general_ledger_lines"> |
|
|
<t t-set="account_or_partner_object" t-value="partner"/> |
|
|
<t t-set="account_or_partner_object" t-value="partner"/> |
|
|
</t> |
|
|
</t> |
|
|
|
|
|
|
|
|
<!-- Display partner footer --> |
|
|
<!-- Display partner footer --> |
|
|
<t t-call="account_financial_report_qweb.report_general_ledger_qweb_ending_cumul"> |
|
|
|
|
|
|
|
|
<t t-call="account_financial_report_qweb.report_general_ledger_ending_cumul"> |
|
|
<t t-set="account_or_partner_object" t-value="partner"/> |
|
|
<t t-set="account_or_partner_object" t-value="partner"/> |
|
|
<t t-set="type" t-value='"partner_type"'/> |
|
|
<t t-set="type" t-value='"partner_type"'/> |
|
|
</t> |
|
|
</t> |
|
@ -56,20 +64,17 @@ |
|
|
</t> |
|
|
</t> |
|
|
|
|
|
|
|
|
<!-- Display account footer --> |
|
|
<!-- Display account footer --> |
|
|
<t t-call="account_financial_report_qweb.report_general_ledger_qweb_ending_cumul"> |
|
|
|
|
|
|
|
|
<t t-call="account_financial_report_qweb.report_general_ledger_ending_cumul"> |
|
|
<t t-set="account_or_partner_object" t-value="account"/> |
|
|
<t t-set="account_or_partner_object" t-value="account"/> |
|
|
<t t-set="type" t-value='"account_type"'/> |
|
|
<t t-set="type" t-value='"account_type"'/> |
|
|
</t> |
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
</t> |
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
</t> |
|
|
|
|
|
</t> |
|
|
|
|
|
</t> |
|
|
|
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<template id="account_financial_report_qweb.report_general_ledger_qweb_filters"> |
|
|
|
|
|
<div class="act_as_table data_table" style="width: 1140px !important;"> |
|
|
|
|
|
|
|
|
<template id="account_financial_report_qweb.report_general_ledger_filters"> |
|
|
|
|
|
<div class="act_as_table data_table" style="width: 100%;"> |
|
|
<div class="act_as_row labels"> |
|
|
<div class="act_as_row labels"> |
|
|
<div class="act_as_cell">Date range filter</div> |
|
|
<div class="act_as_cell">Date range filter</div> |
|
|
<div class="act_as_cell">Target moves filter</div> |
|
|
<div class="act_as_cell">Target moves filter</div> |
|
@ -96,82 +101,198 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<template id="account_financial_report_qweb.report_general_ledger_qweb_lines"> |
|
|
|
|
|
<div class="act_as_table data_table" style="width: 1140px !important;"> |
|
|
|
|
|
|
|
|
<template id="account_financial_report_qweb.report_general_ledger_lines"> |
|
|
|
|
|
<div class="act_as_table data_table" style="width: 100%;"> |
|
|
|
|
|
|
|
|
<!-- Display table headers for lines --> |
|
|
<!-- Display table headers for lines --> |
|
|
<div class="act_as_thead"> |
|
|
<div class="act_as_thead"> |
|
|
<div class="act_as_row labels"> |
|
|
<div class="act_as_row labels"> |
|
|
<!--## date--> |
|
|
<!--## date--> |
|
|
<div class="act_as_cell first_column" style="width: 60px;">Date</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell first_column" style="width: 5.74%;"> |
|
|
|
|
|
Date</div> |
|
|
<!--## move--> |
|
|
<!--## move--> |
|
|
<div class="act_as_cell" style="width: 100px;">Entry</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell" style="width: 8.77%">Entry</div> |
|
|
<!--## journal--> |
|
|
<!--## journal--> |
|
|
<div class="act_as_cell" style="width: 40px;">Journal</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell" style="width: 4.13%;">Journal</div> |
|
|
<!--## account code--> |
|
|
<!--## account code--> |
|
|
<div class="act_as_cell" style="width: 50px;">Account</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell" style="width: 4.75%;">Account</div> |
|
|
<!--## account code--> |
|
|
<!--## account code--> |
|
|
<div class="act_as_cell" style="width: 90px;">Taxes</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell" style="width: 8.89%;">Taxes</div> |
|
|
<!--## partner--> |
|
|
<!--## partner--> |
|
|
<div class="act_as_cell" style="width: 140px;">Partner</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell" style="width: 12.01%;">Partner |
|
|
|
|
|
</div> |
|
|
<!--## ref - label--> |
|
|
<!--## ref - label--> |
|
|
<div class="act_as_cell" style="width: 250px;">Ref - Label</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell" style="width: 22.9%;">Ref - |
|
|
|
|
|
Label</div> |
|
|
<t t-if="show_cost_center"> |
|
|
<t t-if="show_cost_center"> |
|
|
<!--## cost_center--> |
|
|
<!--## cost_center--> |
|
|
<div class="act_as_cell" style="width: 100px;">Cost center</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell" style="width: 8.03%;">Cost |
|
|
|
|
|
center</div> |
|
|
</t> |
|
|
</t> |
|
|
<!--## matching_number--> |
|
|
<!--## matching_number--> |
|
|
<div class="act_as_cell" style="width: 25px;">Rec.</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell" style="width: 2.41%;">Rec.</div> |
|
|
<!--## debit--> |
|
|
<!--## debit--> |
|
|
<div class="act_as_cell amount" style="width: 75px;">Debit</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell amount" style="width: 6.02%;">Debit</div> |
|
|
<!--## credit--> |
|
|
<!--## credit--> |
|
|
<div class="act_as_cell amount" style="width: 75px;">Credit</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell amount" style="width: 6.02%;">Credit</div> |
|
|
<!--## balance cumulated--> |
|
|
<!--## balance cumulated--> |
|
|
<div class="act_as_cell amount" style="width: 75px;">Cumul. Bal.</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell amount" style="width: 6.02%;">Cumul. Bal.</div> |
|
|
|
|
|
<t t-if="foreign_currency"> |
|
|
<!--## currency_name--> |
|
|
<!--## currency_name--> |
|
|
<div class="act_as_cell" style="width: 35px;">Cur.</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell" style="width: 2.08%;">Cur.</div> |
|
|
<!--## amount_currency--> |
|
|
<!--## amount_currency--> |
|
|
<div class="act_as_cell amount" style="width: 75px;">Amount cur.</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell amount" style="width: 5.19%;">Amount cur.</div> |
|
|
|
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- Display first line with initial balance --> |
|
|
<!-- Display first line with initial balance --> |
|
|
<div class="act_as_row lines"> |
|
|
<div class="act_as_row lines"> |
|
|
<!--## date--> |
|
|
<!--## date--> |
|
|
<div class="act_as_cell"></div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell"/> |
|
|
<!--## move--> |
|
|
<!--## move--> |
|
|
<div class="act_as_cell"></div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell"/> |
|
|
<!--## journal--> |
|
|
<!--## journal--> |
|
|
<div class="act_as_cell"></div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell"/> |
|
|
<!--## account code--> |
|
|
<!--## account code--> |
|
|
<div class="act_as_cell"></div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell"/> |
|
|
<!--## taxes--> |
|
|
<!--## taxes--> |
|
|
<div class="act_as_cell"></div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell"/> |
|
|
<!--## partner--> |
|
|
<!--## partner--> |
|
|
<div class="act_as_cell"></div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell"/> |
|
|
<!--## ref - label--> |
|
|
<!--## ref - label--> |
|
|
<div class="act_as_cell amount">Initial balance</div> |
|
|
<div class="act_as_cell amount">Initial balance</div> |
|
|
<t t-if="show_cost_center"> |
|
|
<t t-if="show_cost_center"> |
|
|
<!--## cost_center--> |
|
|
<!--## cost_center--> |
|
|
<div class="act_as_cell"></div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell"/> |
|
|
</t> |
|
|
</t> |
|
|
<!--## matching_number--> |
|
|
<!--## matching_number--> |
|
|
<div class="act_as_cell"></div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell"/> |
|
|
<!--## debit--> |
|
|
<!--## debit--> |
|
|
<div class="act_as_cell amount"><span t-field="account_or_partner_object.initial_debit"/></div> |
|
|
|
|
|
|
|
|
<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), |
|
|
|
|
|
('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 underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="account_or_partner_object.initial_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), |
|
|
|
|
|
('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 underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="account_or_partner_object.initial_debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</t> |
|
|
|
|
|
</div> |
|
|
<!--## credit--> |
|
|
<!--## credit--> |
|
|
<div class="act_as_cell amount"><span t-field="account_or_partner_object.initial_credit"/></div> |
|
|
|
|
|
|
|
|
<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), |
|
|
|
|
|
('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 underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="account_or_partner_object.initial_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), |
|
|
|
|
|
('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 underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="account_or_partner_object.initial_credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</t> |
|
|
|
|
|
</div> |
|
|
<!--## balance cumulated--> |
|
|
<!--## balance cumulated--> |
|
|
<div class="act_as_cell amount"><span t-field="account_or_partner_object.initial_balance"/></div> |
|
|
|
|
|
<!--## currency_name--> |
|
|
|
|
|
<div class="act_as_cell"><span t-field="account_or_partner_object.currency_id.name"/></div> |
|
|
|
|
|
<t t-if="account_or_partner_object.currency_id"> |
|
|
|
|
|
<!--## balance_currency--> |
|
|
|
|
|
<div class="act_as_cell amount"><span t-field="account_or_partner_object.initial_balance_foreign_currency"/></div> |
|
|
|
|
|
|
|
|
<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)]"/> |
|
|
|
|
|
<span> |
|
|
|
|
|
<a t-att-data-domain="domain" |
|
|
|
|
|
t-att-data-res-model="'account.move.line'" |
|
|
|
|
|
class="o_account_financial_reports_web_action_monetary_multi underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="account_or_partner_object.initial_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)]"/> |
|
|
|
|
|
<span> |
|
|
|
|
|
<a t-att-data-domain="domain" |
|
|
|
|
|
t-att-data-res-model="'account.move.line'" |
|
|
|
|
|
class="o_account_financial_reports_web_action_monetary_multi underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="account_or_partner_object.initial_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"> |
|
|
|
|
|
<div class="act_as_cell amount" style="width: 2.08%;"> |
|
|
|
|
|
<span t-field="account.account_id.currency_id.display_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)]"/> |
|
|
|
|
|
<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> |
|
|
|
|
|
</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)]"/> |
|
|
|
|
|
<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> |
|
|
|
|
|
</span> |
|
|
|
|
|
</t> |
|
|
|
|
|
</div> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="not account.account_id.currency_id.id"> |
|
|
|
|
|
<div class="act_as_cell" style="width: 2.08%;"/> |
|
|
|
|
|
<div class="act_as_cell" style="width: 5.19%;"/> |
|
|
</t> |
|
|
</t> |
|
|
<t t-if="not account_or_partner_object.currency_id"> |
|
|
|
|
|
<!--## balance_currency--> |
|
|
|
|
|
<div class="act_as_cell"></div> |
|
|
|
|
|
</t> |
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
@ -180,80 +301,230 @@ |
|
|
<!-- # lines or centralized lines --> |
|
|
<!-- # lines or centralized lines --> |
|
|
<div class="act_as_row lines"> |
|
|
<div class="act_as_row lines"> |
|
|
<!--## date--> |
|
|
<!--## date--> |
|
|
<div class="act_as_cell left"><span t-field="line.date"/></div> |
|
|
|
|
|
|
|
|
<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 underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="line.date"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
<!--## move--> |
|
|
<!--## move--> |
|
|
<div class="act_as_cell left"><span t-field="line.entry"/></div> |
|
|
|
|
|
|
|
|
<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 underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="line.entry"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
<!--## journal--> |
|
|
<!--## journal--> |
|
|
<div class="act_as_cell left"><span t-field="line.journal"/></div> |
|
|
|
|
|
|
|
|
<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" |
|
|
|
|
|
t-att-data-res-model="res_model" |
|
|
|
|
|
class="o_account_financial_reports_web_action underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="line.journal"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
<!--## account code--> |
|
|
<!--## account code--> |
|
|
<div class="act_as_cell left"><span t-field="line.account"/></div> |
|
|
|
|
|
|
|
|
<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" |
|
|
|
|
|
t-att-data-res-model="res_model" |
|
|
|
|
|
class="o_account_financial_reports_web_action underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="line.account"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
<!--## taxes--> |
|
|
<!--## taxes--> |
|
|
<div class="act_as_cell left"><span t-field="line.taxes_description"/></div> |
|
|
<div class="act_as_cell left"><span t-field="line.taxes_description"/></div> |
|
|
<!--## partner--> |
|
|
<!--## partner--> |
|
|
<div class="act_as_cell left"><span t-field="line.partner"/></div> |
|
|
|
|
|
|
|
|
<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 underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"><t t-raw="line.partner"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
<!--## ref - label--> |
|
|
<!--## ref - label--> |
|
|
<div class="act_as_cell left"><span t-field="line.label"/></div> |
|
|
|
|
|
<t t-if="show_cost_center"> |
|
|
|
|
|
|
|
|
<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 underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="line.label"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
<!--## cost_center--> |
|
|
<!--## cost_center--> |
|
|
<div class="act_as_cell left"><span t-field="line.cost_center"/></div> |
|
|
|
|
|
|
|
|
<t t-if="show_cost_center"> |
|
|
|
|
|
<div class="act_as_cell left"> |
|
|
|
|
|
<t t-set="res_model" t-value="'account_analytic_account'"/> |
|
|
|
|
|
<span t-if="line.cost_center"> |
|
|
|
|
|
<a t-att-data-active-id="line.move_line_id.analytic_account_id.id" |
|
|
|
|
|
t-att-data-res-model="res_model" |
|
|
|
|
|
class="o_account_financial_reports_web_action underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"><t t-raw="line.cost_center"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
</t> |
|
|
</t> |
|
|
<!--## matching_number--> |
|
|
<!--## matching_number--> |
|
|
<div class="act_as_cell"><span t-field="line.matching_number"/></div> |
|
|
|
|
|
|
|
|
<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" |
|
|
|
|
|
t-att-data-res-model="res_model" |
|
|
|
|
|
class="o_account_financial_reports_web_action underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"><t t-raw="line.matching_number"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
<!--## debit--> |
|
|
<!--## debit--> |
|
|
<div class="act_as_cell amount"><span t-field="line.debit"/></div> |
|
|
|
|
|
|
|
|
<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 underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="line.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
<!--## credit--> |
|
|
<!--## credit--> |
|
|
<div class="act_as_cell amount"><span t-field="line.credit"/></div> |
|
|
|
|
|
|
|
|
<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 underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="line.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<!--## balance cumulated--> |
|
|
<!--## balance cumulated--> |
|
|
<div class="act_as_cell amount"><span t-field="line.cumul_balance"/></div> |
|
|
|
|
|
|
|
|
<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 underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="line.cumul_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
<t t-if="foreign_currency"> |
|
|
|
|
|
<t t-if="line.currency_id.id"> |
|
|
<!--## currency_name--> |
|
|
<!--## currency_name--> |
|
|
<div class="act_as_cell"><span t-field="line.currency_id.name"/></div> |
|
|
|
|
|
<t t-if="line.currency_id"> |
|
|
|
|
|
|
|
|
<div class="act_as_cell amount" style="width: 2.08%;"> |
|
|
|
|
|
<span t-field="line.currency_id.display_name"/> |
|
|
|
|
|
</div> |
|
|
<!--## amount_currency--> |
|
|
<!--## amount_currency--> |
|
|
<div class="act_as_cell amount"><span t-field="line.amount_currency"/></div> |
|
|
|
|
|
|
|
|
<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" |
|
|
|
|
|
t-att-data-res-model="res_model" |
|
|
|
|
|
class="o_account_financial_reports_web_action underline-on-hover" |
|
|
|
|
|
style="color: black; cursor: pointer;"> |
|
|
|
|
|
<t t-raw="line.amount_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
</t> |
|
|
</t> |
|
|
<t t-if="not line.currency_id"> |
|
|
|
|
|
|
|
|
<t t-if="not line.currency_id.id"> |
|
|
|
|
|
<!--## currency_name--> |
|
|
|
|
|
<div class="act_as_cell amount" style="width: 2.08%;"/> |
|
|
<!--## amount_currency--> |
|
|
<!--## amount_currency--> |
|
|
<div class="act_as_cell"></div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell amount" style="width: 5.19%;"/> |
|
|
|
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
</t> |
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<template id="account_financial_report_qweb.report_general_ledger_qweb_ending_cumul"> |
|
|
|
|
|
|
|
|
<template id="account_financial_report_qweb.report_general_ledger_ending_cumul"> |
|
|
<!-- Display ending balance line for account or partner --> |
|
|
<!-- Display ending balance line for account or partner --> |
|
|
<div class="act_as_table list_table" style="width: 1141px !important;"> |
|
|
|
|
|
|
|
|
<div class="act_as_table list_table" style="width: 100%;"> |
|
|
<div class="act_as_row labels" style="font-weight: bold;"> |
|
|
<div class="act_as_row labels" style="font-weight: bold;"> |
|
|
<!--## date--> |
|
|
<!--## date--> |
|
|
<t t-if='type == "account_type"'> |
|
|
<t t-if='type == "account_type"'> |
|
|
<div class="act_as_cell first_column" style="width: 380px;"><span t-field="account_or_partner_object.code"/> - <span t-field="account_or_partner_object.name"/></div> |
|
|
|
|
|
<div class="act_as_cell right" style="width: 290px;">Ending balance</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell first_column" |
|
|
|
|
|
style="width: 43.88%;"><span |
|
|
|
|
|
t-field="account_or_partner_object.code"/> - <span t-field="account_or_partner_object.name"/></div> |
|
|
|
|
|
<div class="act_as_cell right" |
|
|
|
|
|
style="width: 22.9%;">Ending balance</div> |
|
|
</t> |
|
|
</t> |
|
|
<t t-if='type == "partner_type"'> |
|
|
<t t-if='type == "partner_type"'> |
|
|
<div class="act_as_cell first_column" style="width: 380px;"></div> |
|
|
|
|
|
<div class="act_as_cell right" style="width: 290px;">Partner ending balance</div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell first_column" style="width: 43.88%;"/> |
|
|
|
|
|
<div class="act_as_cell right" style="width: 22.9%;">Partner ending balance</div> |
|
|
</t> |
|
|
</t> |
|
|
<t t-if="show_cost_center"> |
|
|
<t t-if="show_cost_center"> |
|
|
<!--## cost_center--> |
|
|
<!--## cost_center--> |
|
|
<div class="act_as_cell" style="width: 100px;"></div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell" style="width: 8.03%"/> |
|
|
</t> |
|
|
</t> |
|
|
<!--## matching_number--> |
|
|
<!--## matching_number--> |
|
|
<div class="act_as_cell" style="width: 25px;"></div> |
|
|
|
|
|
|
|
|
<div class="act_as_cell" style="width: 2.41%;"/> |
|
|
<!--## debit--> |
|
|
<!--## debit--> |
|
|
<div class="act_as_cell amount" style="width: 75px;"><span t-field="account_or_partner_object.final_debit"/></div> |
|
|
|
|
|
|
|
|
<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}"/> |
|
|
|
|
|
</div> |
|
|
<!--## credit--> |
|
|
<!--## credit--> |
|
|
<div class="act_as_cell amount" style="width: 75px;"><span t-field="account_or_partner_object.final_credit"/></div> |
|
|
|
|
|
|
|
|
<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}"/> |
|
|
|
|
|
</div> |
|
|
<!--## balance cumulated--> |
|
|
<!--## balance cumulated--> |
|
|
<div class="act_as_cell amount" style="width: 75px; padding-right: 1px;"><span t-field="account_or_partner_object.final_balance"/></div> |
|
|
|
|
|
<!--## currency_name--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 35px;"><span t-field="account_or_partner_object.currency_id.name"/></div> |
|
|
|
|
|
<t t-if="account_or_partner_object.currency_id"> |
|
|
|
|
|
<!--## balance_currency--> |
|
|
|
|
|
<div class="act_as_cell amount" style="width: 75px;"><span t-field="account_or_partner_object.final_balance_foreign_currency"/></div> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="not account_or_partner_object.currency_id"> |
|
|
|
|
|
<!--## balance_currency--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 75px;"/> |
|
|
|
|
|
|
|
|
<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}"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## currency_name + amount_currency--> |
|
|
|
|
|
<t t-if="foreign_currency"> |
|
|
|
|
|
<t t-if="account.account_id.currency_id.id"> |
|
|
|
|
|
<div class="act_as_cell amount" style="width: 2.08%;"> |
|
|
|
|
|
<span t-field="account.account_id.currency_id.display_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)]"/> |
|
|
|
|
|
<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> |
|
|
|
|
|
</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)]"/> |
|
|
|
|
|
<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> |
|
|
|
|
|
</span> |
|
|
|
|
|
</t> |
|
|
|
|
|
</div> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="not account.account_id.currency_id "> |
|
|
|
|
|
<div class="act_as_cell amount" style="width: 2.08%;"/> |
|
|
|
|
|
<div class="act_as_cell amount" style="width: 5.19%;"/> |
|
|
|
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|