|
@ -25,7 +25,6 @@ |
|
|
<t t-call="account_financial_report.report_open_items_filters"/> |
|
|
<t t-call="account_financial_report.report_open_items_filters"/> |
|
|
|
|
|
|
|
|
<t t-foreach="Open_Items.keys()" t-as="account_id"> |
|
|
<t t-foreach="Open_Items.keys()" t-as="account_id"> |
|
|
<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="account_title" |
|
|
<div class="account_title" |
|
@ -34,34 +33,45 @@ |
|
|
- |
|
|
- |
|
|
<span t-esc="accounts_data[account_id]['name']"/> |
|
|
<span t-esc="accounts_data[account_id]['name']"/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<t t-if="not show_partner_details"> |
|
|
|
|
|
<div class="act_as_table data_table" style="width: 100%;"> |
|
|
|
|
|
<t t-call="account_financial_report.report_open_items_lines_header"/> |
|
|
|
|
|
|
|
|
<!-- Display account partners --> |
|
|
|
|
|
<t t-foreach="Open_Items[account_id]" t-as="partner_id" > |
|
|
|
|
|
|
|
|
<!-- Display account move lines --> |
|
|
|
|
|
<t t-foreach="Open_Items[account_id]" t-as="line" > |
|
|
|
|
|
<t t-call="account_financial_report.report_open_items_lines"/> |
|
|
|
|
|
</t> |
|
|
|
|
|
</div> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="show_partner_details"> |
|
|
<div class="page_break"> |
|
|
<div class="page_break"> |
|
|
<!-- Display partner header --> |
|
|
|
|
|
<div class="act_as_caption account_title"> |
|
|
|
|
|
<span t-esc="partners_data[partner_id]['name']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Display partner move lines --> |
|
|
|
|
|
<t t-call="account_financial_report.report_open_items_lines"/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Display partner footer --> |
|
|
|
|
|
<t t-call="account_financial_report.report_open_items_ending_cumul"> |
|
|
|
|
|
<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"'/> |
|
|
|
|
|
|
|
|
<!-- Display account partners --> |
|
|
|
|
|
<t t-foreach="Open_Items[account_id]" t-as="partner_id" > |
|
|
|
|
|
<div class="act_as_caption account_title"> |
|
|
|
|
|
<span t-esc="partners_data[partner_id]['name']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="act_as_table data_table" style="width: 100%;"> |
|
|
|
|
|
<!-- Display partner header --> |
|
|
|
|
|
<t t-call="account_financial_report.report_open_items_lines_header"/> |
|
|
|
|
|
<!-- Display partner move lines --> |
|
|
|
|
|
<t t-foreach="Open_Items[account_id][partner_id]" t-as="line" > |
|
|
|
|
|
<t t-call="account_financial_report.report_open_items_lines"/> |
|
|
|
|
|
</t> |
|
|
|
|
|
</div> |
|
|
|
|
|
<t t-call="account_financial_report.report_open_items_ending_cumul"> |
|
|
|
|
|
<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> |
|
|
</t> |
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
</t> |
|
|
</t> |
|
|
|
|
|
|
|
|
<!-- Display account footer --> |
|
|
<!-- Display account footer --> |
|
|
<t t-call="account_financial_report.report_open_items_ending_cumul"> |
|
|
<t t-call="account_financial_report.report_open_items_ending_cumul"> |
|
|
<t t-set="account_or_partner_id" t-value="accounts_data[account_id]"/> |
|
|
<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="currency_id" t-value="accounts_data[account_id]['currency_name']"/> |
|
|
<t t-set="type" t-value='"account_type"'/> |
|
|
<t t-set="type" t-value='"account_type"'/> |
|
|
</t> |
|
|
</t> |
|
|
</div> |
|
|
|
|
|
</t> |
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
@ -89,119 +99,116 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<template id="account_financial_report.report_open_items_lines"> |
|
|
|
|
|
<div class="act_as_table data_table" style="width: 100%;"> |
|
|
|
|
|
<!-- Display table headers for lines --> |
|
|
|
|
|
<div class="act_as_thead"> |
|
|
|
|
|
<div class="act_as_row labels"> |
|
|
|
|
|
<!--## date--> |
|
|
|
|
|
<div class="act_as_cell first_column" style="width: 5.51%;"> |
|
|
|
|
|
Date</div> |
|
|
|
|
|
<!--## move--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 9.76%;">Entry</div> |
|
|
|
|
|
<!--## journal--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 4.78%;">Journal</div> |
|
|
|
|
|
<!--## account code--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 5.38%;">Account</div> |
|
|
|
|
|
<!--## partner--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 15.07%;">Partner |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## ref - label--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 24.5%;">Ref - |
|
|
|
|
|
Label</div> |
|
|
|
|
|
<!--## date_due--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 6.47%;">Due |
|
|
|
|
|
date</div> |
|
|
|
|
|
<!--## amount_total_due--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 6.57%;">Original |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## amount_residual--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 6.57%;">Residual</div> |
|
|
|
|
|
<t t-if="foreign_currency"> |
|
|
|
|
|
<!--## currency_name--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 2.25%;">Cur.</div> |
|
|
|
|
|
<!--## amount_total_due_currency--> |
|
|
|
|
|
<div class="act_as_cell amount" style="width: 6.57%;">Cur. Original</div> |
|
|
|
|
|
<!--## amount_residual_currency--> |
|
|
|
|
|
<div class="act_as_cell amount" style="width: 6.57%;">Cur. Residual</div> |
|
|
|
|
|
</t> |
|
|
|
|
|
|
|
|
<template id="account_financial_report.report_open_items_lines_header"> |
|
|
|
|
|
<!-- Display table headers for lines --> |
|
|
|
|
|
<div class="act_as_thead"> |
|
|
|
|
|
<div class="act_as_row labels"> |
|
|
|
|
|
<!--## date--> |
|
|
|
|
|
<div class="act_as_cell first_column" style="width: 5.51%;"> |
|
|
|
|
|
Date</div> |
|
|
|
|
|
<!--## move--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 9.76%;">Entry</div> |
|
|
|
|
|
<!--## journal--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 4.78%;">Journal</div> |
|
|
|
|
|
<!--## account code--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 5.38%;">Account</div> |
|
|
|
|
|
<!--## partner--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 15.07%;">Partner |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<!--## ref - label--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 24.5%;">Ref - |
|
|
|
|
|
Label</div> |
|
|
|
|
|
<!--## date_due--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 6.47%;">Due |
|
|
|
|
|
date</div> |
|
|
|
|
|
<!--## amount_total_due--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 6.57%;">Original |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## amount_residual--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 6.57%;">Residual</div> |
|
|
|
|
|
<t t-if="foreign_currency"> |
|
|
|
|
|
<!--## currency_name--> |
|
|
|
|
|
<div class="act_as_cell" style="width: 2.25%;">Cur.</div> |
|
|
|
|
|
<!--## amount_total_due_currency--> |
|
|
|
|
|
<div class="act_as_cell amount" style="width: 6.57%;">Cur. Original</div> |
|
|
|
|
|
<!--## amount_residual_currency--> |
|
|
|
|
|
<div class="act_as_cell amount" style="width: 6.57%;">Cur. Residual</div> |
|
|
|
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
<!-- Display each lines --> |
|
|
|
|
|
<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-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_id']" |
|
|
|
|
|
t-att-data-res-model="res_model" |
|
|
|
|
|
class="o_account_financial_reports_web_action" |
|
|
|
|
|
style="color: black;"> |
|
|
|
|
|
<t t-esc="line['move_name']"/> |
|
|
|
|
|
</a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## journal--> |
|
|
|
|
|
<div class="act_as_cell left"> |
|
|
|
|
|
<span t-esc="line['journal']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## account code--> |
|
|
|
|
|
<div class="act_as_cell left"> |
|
|
|
|
|
<span t-esc="line['account']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## partner--> |
|
|
|
|
|
<div class="act_as_cell left"> |
|
|
|
|
|
|
|
|
<template id="account_financial_report.report_open_items_lines"> |
|
|
|
|
|
<!-- # lines or centralized lines --> |
|
|
|
|
|
<div class="act_as_row lines"> |
|
|
|
|
|
<!--## date--> |
|
|
|
|
|
<div class="act_as_cell left"> |
|
|
|
|
|
<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_id']" |
|
|
|
|
|
t-att-data-res-model="res_model" |
|
|
|
|
|
class="o_account_financial_reports_web_action" |
|
|
|
|
|
style="color: black;"> |
|
|
|
|
|
<t t-esc="line['move_name']"/> |
|
|
|
|
|
</a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## journal--> |
|
|
|
|
|
<div class="act_as_cell left"> |
|
|
|
|
|
<span t-esc="line['journal']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## account code--> |
|
|
|
|
|
<div class="act_as_cell left"> |
|
|
|
|
|
<span t-esc="line['account']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## partner--> |
|
|
|
|
|
<div class="act_as_cell left"> |
|
|
<!-- <span t-if="line.get('partner_id', False)" t-esc="line['partner_id']"/>--> |
|
|
<!-- <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-esc="line['ref']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## date_due--> |
|
|
|
|
|
<div class="act_as_cell left"> |
|
|
|
|
|
<span t-esc="line['date_maturity']"/> |
|
|
|
|
|
|
|
|
<span t-esc="line['partner_name']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## ref - label--> |
|
|
|
|
|
<div class="act_as_cell left"> |
|
|
|
|
|
<span t-esc="line['ref']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## date_due--> |
|
|
|
|
|
<div class="act_as_cell left"> |
|
|
|
|
|
<span t-esc="line['date_maturity']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## amount_total_due--> |
|
|
|
|
|
<div class="act_as_cell amount"> |
|
|
|
|
|
<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-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']"> |
|
|
|
|
|
<!--## currency_name--> |
|
|
|
|
|
<div class="act_as_cell amount"> |
|
|
|
|
|
<span t-esc="line['currency_name']"/> |
|
|
</div> |
|
|
</div> |
|
|
<!--## amount_total_due--> |
|
|
|
|
|
|
|
|
<!--## amount_total_due_currency--> |
|
|
<div class="act_as_cell amount"> |
|
|
<div class="act_as_cell amount"> |
|
|
<span t-if="line.get('original', False)" t-esc="line['original']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/> |
|
|
|
|
|
|
|
|
<span t-esc="line['amount_currency']"/> |
|
|
</div> |
|
|
</div> |
|
|
<!--## amount_residual--> |
|
|
|
|
|
|
|
|
<!--## amount_residual_currency--> |
|
|
<div class="act_as_cell amount"> |
|
|
<div class="act_as_cell amount"> |
|
|
<span t-esc="line['amount_residual']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/> |
|
|
|
|
|
|
|
|
<span t-esc="line['amount_residual_currency']"/> |
|
|
</div> |
|
|
</div> |
|
|
<t t-if="foreign_currency"> |
|
|
|
|
|
<t t-if="line['currency_id']"> |
|
|
|
|
|
<!--## currency_name--> |
|
|
|
|
|
<div class="act_as_cell amount"> |
|
|
|
|
|
<span t-esc="line['currency_name']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## amount_total_due_currency--> |
|
|
|
|
|
<div class="act_as_cell amount"> |
|
|
|
|
|
<span t-esc="line['amount_currency']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!--## amount_residual_currency--> |
|
|
|
|
|
<div class="act_as_cell amount"> |
|
|
|
|
|
<span t-esc="line['amount_residual_currency']"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="not line['currency_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> |
|
|
|
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="not line['currency_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> |
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|