[FIX] account_financial_report: Actions

This commit is contained in:
Alexandre D. Díaz
2021-03-23 14:26:10 +01:00
committed by chaule97
parent 2e2679232e
commit 3ce1d6b4fc
37 changed files with 1767 additions and 1876 deletions

View File

@@ -248,210 +248,210 @@
<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;">-->
<!--## We don't use t-field because it throws an error on click -->
<t t-esc="line['date']" t-options="{'widget': 'date'}" />
<!-- </a>-->
<!-- </span>-->
<span
t-att-res-id="line.move_line_id.id"
res-model="account.move.line"
view-type="form"
>
<!--## We don't use t-field because it throws an error on click -->
<t t-esc="line['date']" t-options="{'widget': 'date'}" />
</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
t-att-res-id="line.move_line_id.move_id.id"
res-model="account.move"
view-type="form"
>
<t t-raw="line['entry']" />
</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
t-att-res-id="line.move_line_id.move_id.journal_id.id"
res-model="account.journal"
view-type="form"
>
<t t-raw="line['journal']" />
</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
t-att-res-id="line.move_line_id.account_id.id"
res-model="account.account"
view-type="form"
>
<t t-raw="line['account']" />
</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
t-att-res-id="line.move_line_id.partner_id.id"
res-model="res.partner"
view-type="form"
>
<t t-raw="line['partner']" />
</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['ref_label']" />
<!-- </a>-->
<!-- </span>-->
<span
t-att-res-id="line.move_line_id.id"
res-model="account.move.line"
view-type="form"
>
<t t-raw="line['ref_label']" />
</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;">-->
<!--## We don't use t-field because it throws an error on click -->
<t t-esc="line['due_date']" t-options="{'widget': 'date'}" />
<!-- </a>-->
<!-- </span>-->
<span
t-att-res-id="line.move_line_id.id"
res-model="account.move.line"
view-type="form"
>
<!--## We don't use t-field because it throws an error on click -->
<t
t-esc="line['due_date']"
t-options="{'widget': 'date'}"
/>
</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['residual']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
<!-- </a>-->
<!-- </span>-->
<span
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)]"
res-model="account.move.line"
>
<t
t-raw="line['residual']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</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
t-field="line.current"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</t>
<t t-else="">
<span
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)]"
res-model="account.move.line"
>
<t
t-raw="line['current']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</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['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
t-field="line.age_30_days"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</t>
<t t-else="">
<span
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)]"
res-model="account.move.line"
>
<t
t-raw="line['30_days']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</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['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
t-field="line.age_60_days"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</t>
<t t-else="">
<span
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)]"
res-model="account.move.line"
>
<t
t-raw="line['60_days']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</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['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
t-field="line.age_90_days"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</t>
<t t-else="">
<span
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)]"
res-model="account.move.line"
>
<t
t-raw="line['90_days']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</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['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
t-field="line.age_120_days"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</t>
<t t-else="">
<span
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)]"
res-model="account.move.line"
>
<t
t-raw="line['120_days']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</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
t-field="line.older"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</t>
<t t-else="">
<span
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)]"
res-model="account.move.line"
>
<t
t-raw="line['older']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</div>
</div>
</t>

View File

@@ -232,18 +232,11 @@
('date', '&lt;', date_from),
('debit', '&lt;&gt;', 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['init_bal']['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
<span t-att-domain="domain" res-model="account.move.line">
<t
t-raw="account_or_partner_object['init_bal']['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
<t t-if="type == 'partner_type'">
@@ -254,18 +247,11 @@
('date', '&lt;', date_from),
('debit', '&lt;&gt;', 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['init_bal']['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
<span t-att-domain="domain" res-model="account.move.line">
<t
t-raw="account_or_partner_object['init_bal']['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</div>
@@ -278,18 +264,11 @@
('date', '&lt;', date_from),
('credit', '&lt;&gt;', 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['init_bal']['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
<span t-att-domain="domain" res-model="account.move.line">
<t
t-raw="account_or_partner_object['init_bal']['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
<t t-if="type == 'partner_type'">
@@ -300,18 +279,11 @@
('date', '&lt;', date_from),
('credit', '&lt;&gt;', 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['init_bal']['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
<span t-att-domain="domain" res-model="account.move.line">
<t
t-raw="account_or_partner_object['init_bal']['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</div>
@@ -323,18 +295,11 @@
t-value="[('account_id', '=', account['id']),
('date', '&lt;', 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['init_bal']['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
<span t-att-domain="domain" res-model="account.move.line">
<t
t-raw="account_or_partner_object['init_bal']['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
<t t-if="type == 'partner_type'">
@@ -344,18 +309,11 @@
('partner_id', '=', partner['id']),
('date', '&lt;', 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['init_bal']['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
<span t-att-domain="domain" res-model="account.move.line">
<t
t-raw="account_or_partner_object['init_bal']['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</div>
@@ -375,18 +333,14 @@
t-value="[('account_id', '=', account['id']),
('date', '&lt;', 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['init_bal']['bal_curr']"
t-options="{'widget': 'monetary', 'display_currency': o._get_atr_from_dict(account['id'], accounts_data, 'currency_id')}"
/>
</a>
<span
t-att-domain="domain"
res-model="account.move.line"
>
<t
t-raw="account_or_partner_object['init_bal']['bal_curr']"
t-options="{'widget': 'monetary', 'display_currency': o._get_atr_from_dict(account['id'], accounts_data, 'currency_id')}"
/>
</span>
</t>
<t t-if="type == 'partner_type'">
@@ -396,18 +350,14 @@
('partner_id', '=', partner['id']),
('date', '&lt;', 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['init_bal']['bal_curr']"
t-options="{'widget': 'monetary', 'display_currency': o._get_atr_from_dict(account['id'], accounts_data, 'currency_id')}"
/>
</a>
<span
t-att-domain="domain"
res-model="account.move.line"
>
<t
t-raw="account_or_partner_object['init_bal']['bal_curr']"
t-options="{'widget': 'monetary', 'display_currency': o._get_atr_from_dict(account['id'], accounts_data, 'currency_id')}"
/>
</span>
</t>
</div>
@@ -426,82 +376,63 @@
<div class="act_as_row lines">
<!--## date-->
<div class="act_as_cell left">
<t t-set="res_model" t-value="'account.move.line'" />
<span>
<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>
<t t-if="line['id']">
<!--## We don't use t-field because it throws an error on click -->
<span
t-att-res-id="line['id']"
res-model="account.move.line"
view-type="form"
>
<t
t-esc="line['date']"
t-options="{'widget': 'date'}"
/>
</span>
</t>
<t t-else="">
<span>
<!--## We don't use t-field because it throws an error on click -->
<t
t-esc="line['date']"
t-options="{'widget': 'date'}"
/>
</span>
</t>
</div>
<!--## move-->
<div class="act_as_cell left">
<t t-set="res_model" t-value="'account.move'" />
<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-att-res-id="line['entry_id']"
res-model="account.move"
view-type="form"
>
<t t-raw="line['entry']" />
</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['journal_id']"
t-att-data-res-model="res_model"
class="o_account_financial_reports_web_action"
style="color: black;"
>
<t
t-raw="o._get_atr_from_dict(line['journal_id'], journals_data, 'code')"
/>
</a>
<span
t-att-res-id="line['journal_id']"
res-model="account.journal"
view-type="form"
>
<t
t-raw="o._get_atr_from_dict(line['journal_id'], journals_data, 'code')"
/>
</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="account['id']"
t-att-data-res-model="res_model"
class="o_account_financial_reports_web_action"
style="color: black;"
>
<t
t-raw="o._get_atr_from_dict(account['id'], accounts_data, 'code')"
/>
</a>
<span
t-att-res-id="account['id']"
res-model="account.account"
view-type="form"
>
<t
t-raw="o._get_atr_from_dict(account['id'], accounts_data, 'code')"
/>
</span>
</div>
<!--## taxes-->
@@ -516,58 +447,45 @@
</div>
<!--## partner-->
<div class="act_as_cell left">
<t t-set="res_model" t-value="'res.partner'" />
<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-if="line['partner_id']">
<span
t-att-res-id="line['partner_id']"
res-model="res.partner"
view-type="form"
>
<t t-raw="line['partner_name']" />
</a>
</span>
</span>
</t>
</div>
<!--## ref - label-->
<div class="act_as_cell left">
<t t-set="res_model" t-value="'account.move.line'" />
<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_label']" />
</a>
<span
t-att-res-id="line['id']"
res-model="account.move.line"
view-type="form"
>
<t t-raw="line['ref_label']" />
</span>
</t>
<t t-if="not line['id']">
<t t-else="">
<span>
<a
class="o_account_financial_reports_web_action"
style="color: black;"
>
<t t-raw="line['ref_label']" />
</a>
<t t-raw="line['ref_label']" />
</span>
</t>
</div>
<!--## cost_center-->
<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['analytic_account_id']">
<a
t-att-data-active-id="line['analytic_account_id']"
t-att-data-res-model="res_model"
class="o_account_financial_reports_web_action"
style="color: black;"
<t t-if="line['analytic_account_id']">
<span
t-att-res-id="line['analytic_account_id']"
res-model="account.analytic.account"
view-type="form"
>
<t t-raw="line['analytic_account']" />
</a>
</span>
</span>
</t>
</div>
</t>
<t t-if="show_analytic_tags">
@@ -584,111 +502,82 @@
</t>
<!--## matching_number-->
<div class="act_as_cell">
<t t-set="res_model" t-value="'account.full.reconcile'" />
<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-if="line['rec_id']">
<span
t-att-res-id="line['rec_id']"
res-model="account.full.reconcile"
view-type="form"
>
<t t-raw="line['rec_name']" />
</a>
</span>
</span>
</t>
</div>
<!--## debit-->
<div class="act_as_cell amount">
<t t-set="res_model" t-value="'account.move.line'" />
<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-att-res-id="line['id']"
res-model="account.move.line"
view-type="form"
>
<t
t-raw="line['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
<t t-if="not line['id']">
<t t-else="">
<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>
<t
t-raw="line['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</div>
<!--## credit-->
<div class="act_as_cell amount">
<t t-set="res_model" t-value="'account.move.line'" />
<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-att-res-id="line['id']"
res-model="account.move.line"
view-type="form"
>
<t
t-raw="line['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
<t t-if="not line['id']">
<t t-else="">
<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>
<t
t-raw="line['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</div>
<!--## balance cumulated-->
<div class="act_as_cell amount">
<t t-set="res_model" t-value="'account.move.line'" />
<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-att-res-id="line['id']"
res-model="account.move.line"
view-type="form"
>
<t
t-raw="line['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
<t t-if="not line['id']">
<t t-else="">
<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>
<t
t-raw="line['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</div>
@@ -700,16 +589,12 @@
</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['id']"
t-att-data-res-model="res_model"
class="o_account_financial_reports_web_action"
style="color: black;"
>
<t t-raw="line['bal_curr']" />
</a>
<span
t-att-res-id="line['id']"
res-model="account.move.line"
view-type="form"
>
<t t-raw="line['bal_curr']" />
</span>
</div>
</t>
@@ -799,7 +684,7 @@
/>
<span>
<a
t-att-data-domain="domain"
t-att-data-t-att-domain="domain"
t-att-data-res-model="'account.move.line'"
class="o_account_financial_reports_web_action_monetary_multi"
style="color: black;"
@@ -820,7 +705,7 @@
/>
<span>
<a
t-att-data-domain="domain"
t-att-data-t-att-domain="domain"
t-att-data-res-model="'account.move.line'"
class="o_account_financial_reports_web_action_monetary_multi"
style="color: black;"

View File

@@ -195,19 +195,17 @@
</template>
<template id="account_financial_report.report_journal_move_line">
<div class="act_as_cell left" name="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-if="display_move_info">
<span
t-att-res-id="move_line['move_id']"
res-model="account.move"
view-type="form"
>
<t
t-esc="o._get_atr_from_dict(move_line['move_id'], move_ids_data, 'entry')"
/>
</a>
</span>
</span>
</t>
</div>
<div class="act_as_cell left" name="date">
<span

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="account_financial_report.internal_layout">
<div class="article">
<div class="article o_account_financial_reports_page">
<link
href="/account_financial_report/static/src/css/report.css"
rel="stylesheet"

View File

@@ -178,16 +178,12 @@
</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
t-att-res-id="line['move_id']"
res-model="account.move"
view-type="form"
>
<t t-esc="line['move_name']" />
</span>
</div>
<!--## journal-->

View File

@@ -111,18 +111,14 @@
style="margin-top: 10px;"
/>
<div class="act_as_caption account_title" style="width: 100%;">
<t t-set="res_model" t-value="'account.account'" />
<span>
<a
t-att-data-active-id="account_id"
t-att-data-res-model="res_model"
class="o_account_financial_reports_web_action"
t-att-style="style"
>
<t t-raw="accounts_data[account_id]['code']" />
-
<t t-raw="accounts_data[account_id]['name']" />
</a>
<span
t-att-res-id="account_id"
res-model="account.account"
view-type="form"
>
<t
t-raw="accounts_data[account_id]['code']"
/> - <t t-raw="accounts_data[account_id]['name']" />
</span>
</div>
<div class="act_as_table data_table" style="width: 100%;">
@@ -240,59 +236,44 @@
<!--## Code-->
<t t-if="balance['type'] == 'account_type'">
<div class="act_as_cell left">
<!-- <t t-if="accounts_data[account_id]['code']">-->
<t t-set="res_model" t-value="'account.account'" />
<span>
<a
t-att-data-active-id="balance['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-esc="balance['code']" />
</a>
<span
t-att-res-id="balance['id']"
res-model="account.account"
view-type="form"
>
<t t-att-style="style" t-esc="balance['code']" />
</span>
</div>
<!-- ## Account/Partner-->
<div class="act_as_cell left">
<t t-set="res_model" t-value="'account.account'" />
<span>
<a
t-att-data-active-id="balance['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-esc="balance['name']" />
</a>
<span
t-att-res-id="balance['id']"
res-model="account.account"
view-type="form"
>
<t t-att-style="style" t-esc="balance['name']" />
</span>
</div>
</t>
<t t-if="balance['type'] == 'group_type'">
<div class="act_as_cell left">
<t t-set="res_model" t-value="'account.group'" />
<span>
<a
t-att-data-active-id="balance['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="balance['code']" />
</a>
<span
t-att-res-id="balance['id']"
res-model="account.group"
view-type="form"
>
<t t-att-style="style" t-raw="balance['code']" />
</span>
</div>
<div class="act_as_cell left">
<t t-set="res_model" t-value="'account.group'" />
<span>
<a
t-att-data-active-id="balance['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-esc="balance['name']" />
</a>
<span
t-att-res-id="balance['id']"
res-model="account.group"
view-type="form"
>
<t t-att-style="style" t-esc="balance['name']" />
</span>
</div>
</t>
@@ -300,18 +281,15 @@
<t t-if="show_partner_details">
<div class="act_as_cell left">
<t t-set="res_model" t-value="'res.partner'" />
<span>
<a
t-att-data-active-id="partner_id"
t-att-data-res-model="res_model"
class="o_account_financial_reports_web_action"
<span
t-att-res-id="partner_id"
res-model="res.partner"
view-type="form"
>
<t
t-att-style="style"
>
<t
t-att-style="style"
t-esc="partners_data[partner_id]['name']"
/>
</a>
t-esc="partners_data[partner_id]['name']"
/>
</span>
</div>
</t>
@@ -324,38 +302,26 @@
t-value="[('account_id', '=', balance['id']),
('date', '&lt;', 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"
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-esc="balance['initial_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-esc="balance['initial_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
<t t-if="balance['type'] == 'group_type'">
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', 'in', line.compute_account_ids.ids),-->
<!-- ('date', '&lt;', date_from.strftime('%Y-%m-%d'))]"/>-->
<span>
<a
t-att-data-domain="domain"
t-att-data-res-model="'account.move.line'"
class="o_account_financial_reports_web_action_monetary_multi"
<t
t-set="domain"
t-value="[('account_id', 'in', line.compute_account_ids.ids),
('date', '&lt;', date_from.strftime('%Y-%m-%d'))]"
/>
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-raw="balance['initial_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-raw="balance['initial_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</t>
@@ -366,19 +332,12 @@
('partner_id', '=', int(partner_id)),
('date', '&lt;', 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"
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-raw="total_amount[account_id][partner_id]['initial_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-raw="total_amount[account_id][partner_id]['initial_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</div>
@@ -393,40 +352,28 @@
('date', '&lt;=', date_to),
('debit', '&lt;&gt;', 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"
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-esc="balance['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-esc="balance['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
<t t-if="balance['type'] == 'group_type'">
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', 'in', line.compute_account_ids.ids),-->
<!-- ('date', '&gt;=', line.report_id.date_from.strftime('%Y-%m-%d')),-->
<!-- ('date', '&lt;=', line.report_id.date_to.strftime('%Y-%m-%d')),-->
<!-- ('debit', '&lt;&gt;', 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"
<t
t-set="domain"
t-value="[('account_id', 'in', line.compute_account_ids.ids),
('date', '&gt;=', line.report_id.date_from.strftime('%Y-%m-%d')),
('date', '&lt;=', line.report_id.date_to.strftime('%Y-%m-%d')),
('debit', '&lt;&gt;', 0)]"
/>
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-raw="balance['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-raw="balance['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</t>
@@ -439,19 +386,12 @@
('date', '&lt;=', date_to),
('debit', '&lt;&gt;', 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"
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-raw="total_amount[account_id][partner_id]['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-raw="total_amount[account_id][partner_id]['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</div>
@@ -466,40 +406,28 @@
('date', '&lt;=', date_to),
('credit', '&lt;&gt;', 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"
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-esc="balance['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-esc="balance['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
<t t-if="balance['type'] == 'group_type'">
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', 'in', line.compute_account_ids.ids),-->
<!-- ('date', '&gt;=', line.report_id.date_from.strftime('%Y-%m-%d')),-->
<!-- ('date', '&lt;=', line.report_id.date_to.strftime('%Y-%m-%d')),-->
<!-- ('credit', '&lt;&gt;', 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"
<t
t-set="domain"
t-value="[('account_id', 'in', line.compute_account_ids.ids),
('date', '&gt;=', line.report_id.date_from.strftime('%Y-%m-%d')),
('date', '&lt;=', line.report_id.date_to.strftime('%Y-%m-%d')),
('credit', '&lt;&gt;', 0)]"
/>
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-raw="balance['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-raw="balance['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</t>
@@ -512,19 +440,12 @@
('date', '&lt;=', date_to),
('credit', '&lt;&gt;', 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"
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-raw="total_amount[account_id][partner_id]['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-raw="total_amount[account_id][partner_id]['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</div>
@@ -532,44 +453,34 @@
<div class="act_as_cell amount">
<t t-if="not show_partner_details">
<t t-if="balance['type'] == 'account_type'">
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', '=', balance['id']),-->
<!-- ('date', '&gt;=', date_from),-->
<!-- ('date', '&lt;=', date_to),-->
<!-- ('balance', '&lt;&gt;', 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"
<t
t-set="domain"
t-value="[('account_id', '=', balance['id']),
('date', '&gt;=', date_from),
('date', '&lt;=', date_to),
('balance', '&lt;&gt;', 0)]"
/>
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-esc="balance['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-esc="balance['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
<t t-if="balance['type'] == 'group_type'">
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', 'in', line.compute_account_ids.ids),-->
<!-- ('date', '&gt;=', line.report_id.date_from.strftime('%Y-%m-%d')),-->
<!-- ('date', '&lt;=', line.report_id.date_to.strftime('%Y-%m-%d'))]"/>-->
<span>
<a
t-att-data-domain="domain"
t-att-data-res-model="'account.move.line'"
class="o_account_financial_reports_web_action_multi"
<t
t-set="domain"
t-value="[('account_id', 'in', line.compute_account_ids.ids),
('date', '&gt;=', line.report_id.date_from.strftime('%Y-%m-%d')),
('date', '&lt;=', line.report_id.date_to.strftime('%Y-%m-%d'))]"
/>
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-raw="balance['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-raw="balance['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</t>
@@ -582,19 +493,12 @@
('date', '&lt;=', date_to),
('balance', '&lt;&gt;', 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"
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-raw="total_amount[account_id][partner_id]['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-raw="total_amount[account_id][partner_id]['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</div>
@@ -607,19 +511,12 @@
t-value="[('account_id', '=', balance['id']),
('date', '&lt;=', date_to)]"
/>
<span>
<a
t-att-data-domain="domain"
t-att-data-res-model="'account.move.line'"
class="o_account_financial_reports_web_action_monetary_multi"
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-esc="balance['ending_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-esc="balance['ending_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
<t t-if="balance['type'] == 'group_type'">
@@ -627,19 +524,12 @@
t-set="domain"
t-value="[('account_id', 'in', balance['account_ids'])]"
/>
<span>
<a
t-att-data-domain="domain"
t-att-data-res-model="'account.move.line'"
class="o_account_financial_reports_web_action_monetary_multi"
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-raw="balance['ending_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-raw="balance['ending_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</t>
@@ -650,19 +540,12 @@
('partner_id', '=', int(partner_id)),
('date', '&lt;=', date_to)]"
/>
<span>
<a
t-att-data-domain="domain"
t-att-data-res-model="'account.move.line'"
class="o_account_financial_reports_web_action_monetary_multi"
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
>
<t
t-att-style="style"
t-esc="total_amount[account_id][partner_id]['ending_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</a>
t-esc="total_amount[account_id][partner_id]['ending_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</t>
</div>
@@ -676,26 +559,24 @@
</div>
<!--## Initial balance cur.-->
<div class="act_as_cell amount">
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', '=', line.account_id.id)]"/>-->
<span>
<a
t-att-data-domain="domain"
t-att-data-res-model="'account.move.line'"
class="o_account_financial_reports_web_action_monetary_multi"
<t
t-set="domain"
t-value="[('account_id', '=', line.account_id.id)]"
/>
<span
t-att-domain="domain"
res-model="account.move.line"
>
<t
t-att-style="style"
>
<t
t-att-style="style"
t-esc="balance['initial_currency_balance']"
/>
</a>
t-esc="balance['initial_currency_balance']"
/>
</span>
<!-- <t t-if="line.account_group_id">-->
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', 'in', line.compute_account_ids.ids)]"/>-->
<!-- <span>-->
<!-- <a t-att-data-domain="domain"-->
<!-- <a t-att-data-t-att-domain="domain"-->
<!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">-->
@@ -716,21 +597,19 @@
/>
</div>
<div class="act_as_cell amount">
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', '=', line.report_account_id.account_id.id),-->
<!-- ('partner_id', '=', line.partner_id.id)]"/>-->
<span>
<a
t-att-data-domain="domain"
t-att-data-res-model="'account.move.line'"
class="o_account_financial_reports_web_action_monetary_multi"
<t
t-set="domain"
t-value="[('account_id', '=', line.report_account_id.account_id.id),
('partner_id', '=', line.partner_id.id)]"
/>
<span
t-att-domain="domain"
res-model="account.move.line"
>
<t
t-att-style="style"
>
<t
t-att-style="style"
t-raw="total_amount[account_id][partner_id]['initial_currency_balance']"
/>
</a>
t-raw="total_amount[account_id][partner_id]['initial_currency_balance']"
/>
</span>
</div>
</t>
@@ -741,26 +620,24 @@
<t t-if="balance['type'] == 'account_type'">
<t t-if="balance['currency_id']">
<div class="act_as_cell amount">
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', '=', line.account_id.id)]"/>-->
<span>
<a
t-att-data-domain="domain"
t-att-data-res-model="'account.move.line'"
class="o_account_financial_reports_web_action_monetary_multi"
<t
t-set="domain"
t-value="[('account_id', '=', line.account_id.id)]"
/>
<span
t-att-domain="domain"
res-model="account.move.line"
>
<t
t-att-style="style"
>
<t
t-att-style="style"
t-raw="balance['ending_currency_balance']"
/>
</a>
t-raw="balance['ending_currency_balance']"
/>
</span>
<!-- <t t-if="line.account_group_id">-->
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', 'in', line.compute_account_ids.ids)]"/>-->
<!-- <span>-->
<!-- <a t-att-data-domain="domain"-->
<!-- <a t-att-data-t-att-domain="domain"-->
<!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">-->
@@ -775,21 +652,19 @@
<t t-if="total_amount[account_id]['currency_id']">
<div class="act_as_cell amount">
<t t-if="type == 'partner_type'">
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', '=', line.report_account_id.account_id.id),-->
<!-- ('partner_id', '=', line.partner_id.id)]"/>-->
<span>
<a
t-att-data-domain="domain"
t-att-data-res-model="'account.move.line'"
class="o_account_financial_reports_web_action_monetary_multi"
<t
t-set="domain"
t-value="[('account_id', '=', line.report_account_id.account_id.id),
('partner_id', '=', line.partner_id.id)]"
/>
<span
t-att-domain="domain"
res-model="account.move.line"
>
<t
t-att-style="style"
>
<t
t-att-style="style"
t-raw="total_amount[account_id][partner_id]['ending_currency_balance']"
/>
</a>
t-raw="total_amount[account_id][partner_id]['ending_currency_balance']"
/>
</span>
</t>
</div>
@@ -843,7 +718,7 @@
<!-- t-value="[('account_id', '=', account.account_id.id),-->
<!-- ('date', '&lt;', o.date_from.strftime('%Y-%m-%d'))]"/>-->
<!-- <span>-->
<!-- <a t-att-data-domain="domain"-->
<!-- <a t-att-data-t-att-domain="domain"-->
<!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">-->
@@ -858,7 +733,7 @@
<!-- ('date', '&lt;=', account.report_id.date_to.strftime('%Y-%m-%d')),-->
<!-- ('debit', '&lt;&gt;', 0)]"/>-->
<!-- <span>-->
<!-- <a t-att-data-domain="domain"-->
<!-- <a t-att-data-t-att-domain="domain"-->
<!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">-->
@@ -873,7 +748,7 @@
<!-- ('date', '&lt;=', account.report_id.date_to.strftime('%Y-%m-%d')),-->
<!-- ('credit', '&lt;&gt;', 0)]"/>-->
<!-- <span>-->
<!-- <a t-att-data-domain="domain"-->
<!-- <a t-att-data-t-att-domain="domain"-->
<!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">-->
@@ -888,7 +763,7 @@
<!-- ('date', '&lt;=', account.report_id.date_to.strftime('%Y-%m-%d')),-->
<!-- ('period_balance', '&lt;&gt;', 0)]"/>-->
<!-- <span>-->
<!-- <a t-att-data-domain="domain"-->
<!-- <a t-att-data-t-att-domain="domain"-->
<!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">-->
@@ -900,7 +775,7 @@
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', '=', account.account_id.id)]"/>-->
<!-- <span>-->
<!-- <a t-att-data-domain="domain"-->
<!-- <a t-att-data-t-att-domain="domain"-->
<!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style" >-->
@@ -921,7 +796,7 @@
<!-- t-value="[('account_id', '=', account.account_id.id),-->
<!-- ('date', '&lt;', date_from.strftime('%Y-%m-%d'))]"/>-->
<!-- <span>-->
<!-- <a t-att-data-domain="domain"-->
<!-- <a t-att-data-t-att-domain="domain"-->
<!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">-->
@@ -932,7 +807,7 @@
<!-- <t t-set="domain"-->
<!-- t-value="[('account_id', '=', account.account_id.id)]"/>-->
<!-- <span>-->
<!-- <a t-att-data-domain="domain"-->
<!-- <a t-att-data-t-att-domain="domain"-->
<!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style" >-->

View File

@@ -50,64 +50,56 @@
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_or_group['code']" />
<!-- </a>-->
<!-- </span>-->
<span
t-att-res-id="res_id"
t-att-res-model="res_model"
view-type="form"
>
<t t-att-style="style" t-raw="tag_or_group['code']" />
</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_or_group['name']" />
<!-- </a>-->
<!-- </span>-->
<span
t-att-res-id="res_id"
t-att-res-model="res_model"
view-type="form"
>
<t t-att-style="style" t-raw="tag_or_group['name']" />
</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', '&gt;=', o.date_from),-->
<!-- ('date', '&lt;=', 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}"
t-set="domain"
t-value="[('tax_ids', 'in', [tax.tax_id.id for tax in tag.tax_ids]),
('date', '&gt;=', o.date_from),
('date', '&lt;=', o.date_to)]"
/>
<!-- </a>-->
<!-- </span>-->
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
t-raw="tag_or_group['net']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</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', '&gt;=', o.date_from),-->
<!-- ('date', '&lt;=', 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}"
t-set="domain"
t-value="[('tax_line_id', 'in', [tax.tax_id.id for tax in tag.tax_ids]),
('date', '&gt;=', o.date_from),
('date', '&lt;=', o.date_to),
('tax_exigible', '=', True)]"
/>
<!-- </a>-->
<!-- </span>-->
<span t-att-domain="domain" res-model="account.move.line">
<t
t-att-style="style"
t-raw="tag_or_group['tax']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</div>
</div>
<t t-if="tax_detail">
@@ -118,52 +110,51 @@
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
t-att-res-id="tax.tax_id.id"
t-att-res-model="res_model"
view-type="form"
>
<t t-att-style="style" t-raw="tax['name']" />
</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', '&gt;=', o.date_from),-->
<!-- ('date', '&lt;=', 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}"
t-set="domain"
t-value="[('tax_ids', 'in', tax.tax_id.ids),
('date', '&gt;=', o.date_from),
('date', '&lt;=', o.date_to),
('tax_exigible', '=', True)]"
/>
<!-- </a>-->
<!-- </span>-->
<span
t-att-domain="domain"
res-model="account.move.line"
>
<t
t-att-style="style"
t-raw="tax['net']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</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', '&gt;=', o.date_from),-->
<!-- ('date', '&lt;=', 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}"
t-set="domain"
t-value="[('tax_line_id', '=', tax.tax_id.id),
('date', '&gt;=', o.date_from),
('date', '&lt;=', o.date_to),
('tax_exigible', '=', True)]"
/>
<!-- </a>-->
<!-- </span>-->
<span
t-att-domain="domain"
res-model="account.move.line"
>
<t
t-att-style="style"
t-raw="tax['tax']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</span>
</div>
</div>
</t>