[MIG] FIX XML Formatting using pycharm

pull/268/head
Sandip Mangukiya 2017-06-01 13:12:04 +05:30 committed by Murtuza Saleh
parent 93a864d1d8
commit 4070cd5531
6 changed files with 1089 additions and 1018 deletions

View File

@ -14,7 +14,8 @@
<field name="name">Bank Statements</field>
<field ref="model_bank_acc_rec_statement" name="model_id"/>
<field eval="True" name="global"/>
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]
<field name="domain_force">
['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]
</field>
</record>

View File

@ -26,11 +26,13 @@
<field name="arch" type="xml">
<form string="Bank Account Reconciliation Statement" version="7.0">
<header>
<button name="action_cancel" type="object" states="draft,to_be_reviewed"
<button name="action_cancel" type="object"
states="draft,to_be_reviewed"
string="Cancel" icon="fa-ban"/>
<button name="action_review" type="object" states="draft"
string="Ready for Review" icon="fa-forward"/>
<button name="action_process" type="object" states="to_be_reviewed"
<button name="action_process" type="object"
states="to_be_reviewed"
string="Process"/>
<button name="action_cancel_draft" states="cancel,done"
string="Set to Draft" type="object"/>
@ -41,23 +43,33 @@
</header>
<sheet>
<group col="4" colspan="4">
<field name="account_id" placeholder="Enter Account Name" />
<field name="account_id"
placeholder="Enter Account Name"/>
<field name="name" placeholder="Enter Name"/>
<field name="ending_date" placeholder="Enter ending date" />
<field name="starting_balance" placeholder="Enter Starting Balance" />
<field name="ending_balance" placeholder="Enter Ending Balance" />
<field name="last_ending_date" placeholder="Last Statement Date"
<field name="ending_date"
placeholder="Enter ending date"/>
<field name="starting_balance"
placeholder="Enter Starting Balance"/>
<field name="ending_balance"
placeholder="Enter Ending Balance"/>
<field name="last_ending_date"
placeholder="Last Statement Date"
readonly="1"/>
<field name="suppress_ending_date_filter"/>
<field name="company_id" groups="base.group_multi_company"
<field name="company_id"
groups="base.group_multi_company"
placeholder="Enter Company Name"/>
</group>
<notebook colspan="5">
<page string="Journal Items">
<label for='account_label' string='Deposits, Credits, and Interest' />
<field colspan="4" mode="tree" name="debit_move_line_ids"
nolabel="1" widget="one2many_list" height="300">
<form string="Deposits, Credits, and Interest" version="7.0">
<label for='account_label'
string='Deposits, Credits, and Interest'/>
<field colspan="4" mode="tree"
name="debit_move_line_ids"
nolabel="1" widget="one2many_list"
height="300">
<form string="Deposits, Credits, and Interest"
version="7.0">
<field name="cleared_bank_account"/>
<field name="date" readonly="1"/>
<field name="name" readonly="1"/>
@ -66,9 +78,11 @@
<field name="amount" readonly="1"/>
<field name="amountcur" readonly="1"/>
<field name="currency_id" readonly="1"/>
<field name="research_required" readonly="1" />
<field name="research_required"
readonly="1"/>
</form>
<tree string="Deposits, Credits, and Interest" editable="top"
<tree string="Deposits, Credits, and Interest"
editable="top"
mute_additem="draft,to_be_reviewed,done, cancel">
<field name="cleared_bank_account"/>
<field name="date" readonly="1"/>
@ -84,8 +98,10 @@
</field>
<label for='account_label2'
string='Checks, Withdrawals, Debits, and Service Charges'/>
<field colspan="4" mode="tree" name="credit_move_line_ids"
nolabel="1" widget="one2many_list" height="300">
<field colspan="4" mode="tree"
name="credit_move_line_ids"
nolabel="1" widget="one2many_list"
height="300">
<form string="Checks, Withdrawals, Debits, and Service Charges"
version="7.0">
<field name="cleared_bank_account"/>
@ -96,10 +112,12 @@
<field name="amount" readonly="1"/>
<field name="amountcur" readonly="1"/>
<field name="currency_id" readonly="1"/>
<field name="research_required" readonly="1" />
<field name="research_required"
readonly="1"/>
</form>
<tree string="Checks, Withdrawals, Debits, and Service Charges"
editable="top" mute_additem="draft,to_be_reviewed,done, cancel">
editable="top"
mute_additem="draft,to_be_reviewed,done, cancel">
<field name="cleared_bank_account"/>
<field name="date" readonly="1"/>
<field name="name" readonly="1"/>
@ -116,11 +134,15 @@
groups="account_banking_reconciliation.group_bank_stmt_verifier">
<button name="action_select_all"
confirm="Current edits in statement will be lost. Do you want to select all?"
type="object" states="draft,to_be_reviewed" string="Select All"
type="object"
states="draft,to_be_reviewed"
string="Select All"
icon="gtk-go-forward"/>
<button name="action_unselect_all"
confirm="Current edits in statement will be lost. Do you want to unselect all?"
type="object" states="draft,to_be_reviewed" string="Unselect All"
type="object"
states="draft,to_be_reviewed"
string="Unselect All"
icon="gtk-cancel"/>
</group>
<newline/>
@ -146,7 +168,8 @@
</group>
</group>
<newline/>
<separator string="Balances - Cleared and Uncleared" />
<separator
string="Balances - Cleared and Uncleared"/>
<group name="balances" col="4" colspan="4">
<group name="balance1" col="2" colspan="2">
<field name="cleared_balance"/>
@ -164,12 +187,15 @@
</group>
</page>
<page string="Other Information">
<separator string="Tracking Information" colspan="4" />
<separator string="Tracking Information"
colspan="4"/>
<group colspan="2" col="2">
<field name="verified_by_user_id" placeholder="Enter user whoever varified" />
<field name="verified_by_user_id"
placeholder="Enter user whoever varified"/>
</group>
<group colspan="2" col="2">
<field name="verified_date" placeholder="Enter date of varification" />
<field name="verified_date"
placeholder="Enter date of varification"/>
</group>
</page>
<page string="Notes">
@ -189,17 +215,21 @@
<field name="arch" type="xml">
<search string="Search Bank Account Reconciliation Statements">
<filter icon="terp-document-new" string="Draft"
domain="[('state','=','draft')]" help="Statements that haven't yet been confirmed" />
domain="[('state','=','draft')]"
help="Statements that haven't yet been confirmed"/>
<filter icon="terp-dolar" string="To be Reviewed"
domain="[('state','=','to_be_reviewed')]" help="Statements that are ready for review" />
<filter icon="terp-check" string="Done" domain="[('state','=','done')]"
domain="[('state','=','to_be_reviewed')]"
help="Statements that are ready for review"/>
<filter icon="terp-check" string="Done"
domain="[('state','=','done')]"
help="Statements that have been processed"/>
<separator orientation="vertical"/>
<field name="name" select="1"/>
<field name="ending_date" select="1" string="Ending Date"/>
<field name="account_id" select="1"/>
<field name="verified_by_user_id" select="1">
<filter domain="[('verified_by_user_id','=',uid)]" help="Verified by me"
<filter domain="[('verified_by_user_id','=',uid)]"
help="Verified by me"
icon="terp-personal"/>
</field>
<newline/>
@ -208,7 +238,8 @@
<filter string="Account" icon="terp-personal" domain="[]"
context="{'group_by':'account_id'}"/>
<separator orientation="vertical"/>
<filter string="State" icon="terp-stock_effects-object-colorize"
<filter string="State"
icon="terp-stock_effects-object-colorize"
domain="[]" context="{'group_by':'state'}"/>
</group>
</search>
@ -229,18 +260,22 @@
<!-- </record> -->
<menuitem icon="STOCK_JUSTIFY_FILL" action="action_bank_acc_rec_statement"
id="npg_bank_acc_rec_statement_menu" parent="account.menu_finance_configuration"
id="npg_bank_acc_rec_statement_menu"
parent="account.menu_finance_configuration"
sequence="5"/>
<act_window id="act_account_move_line_to_add" name="Journal Items"
res_model="account.move.line" src_model="bank.acc.rec.statement" />
res_model="account.move.line"
src_model="bank.acc.rec.statement"/>
<act_window id="act_supplier_payment_to_add" name="Supplier Payment"
domain="[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]"
context="{'type':'payment'}" res_model="account.voucher" src_model="bank.acc.rec.statement" />
context="{'type':'payment'}" res_model="account.voucher"
src_model="bank.acc.rec.statement"/>
<act_window id="act_customer_payment_to_add" name="Customer Payment"
domain="[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]"
context="{'type':'receipt'}" res_model="account.voucher" src_model="bank.acc.rec.statement" />
context="{'type':'receipt'}" res_model="account.voucher"
src_model="bank.acc.rec.statement"/>
</odoo>

View File

@ -13,8 +13,10 @@
<field name="bank_acc_rec_statement_id"/>
</field>
<field name="move_id" position="before">
<filter icon="terp-document-new" string="Uncleared Bank Account"
domain="[('cleared_bank_account','=',False)]" help="Journal Entries not cleared" />
<filter icon="terp-document-new"
string="Uncleared Bank Account"
domain="[('cleared_bank_account','=',False)]"
help="Journal Entries not cleared"/>
<separator orientation="vertical"/>
</field>
</field>

View File

@ -2,7 +2,8 @@
<odoo>
<template id="report_bank_statement_detail_doc">
<t t-call="report.external_layout">
<t t-set="o" t-value="o.with_context({'lang':o.company_id.partner_id.lang})" />
<t t-set="o"
t-value="o.with_context({'lang':o.company_id.partner_id.lang})"/>
<div class="page">
<h2 style='text-align:center;'>
Reconciliation Detail
@ -13,7 +14,8 @@
</h5>
<div class="row">
<table class="table table-condensed" t-if="not o.account_id.currency_id">
<table class="table table-condensed"
t-if="not o.account_id.currency_id">
<thead>
<tr>
<th></th>
@ -31,7 +33,8 @@
</tr>
</thead>
</table>
<table class="table table-condensed" t-if="o.account_id.currency_id">
<table class="table table-condensed"
t-if="o.account_id.currency_id">
<thead>
<tr>
<th></th>
@ -46,7 +49,8 @@
</tr>
</thead>
</table>
<table class="table table-condensed" t-if="not o.account_id.currency_id">
<table class="table table-condensed"
t-if="not o.account_id.currency_id">
<tbody class="invoice_tbody">
<tr>
<td>
@ -81,7 +85,8 @@
</tr>
</tbody>
</table>
<table class="table table-condensed" t-if="o.account_id.currency_id">
<table class="table table-condensed"
t-if="o.account_id.currency_id">
<tbody class="invoice_tbody">
<tr>
<td>
@ -116,7 +121,8 @@
</tr>
</tbody>
</table>
<table class="table table-condensed" t-if="not o.account_id.currency_id">
<table class="table table-condensed"
t-if="not o.account_id.currency_id">
<tbody class="invoice_tbody">
<tr t-foreach="o.debit_move_line_ids" t-as="debit"
t-if="debit.cleared_bank_account">
@ -147,7 +153,8 @@
</tr>
</tbody>
</table>
<table class="table table-condensed" t-if="o.account_id.currency_id">
<table class="table table-condensed"
t-if="o.account_id.currency_id">
<tbody class="invoice_tbody">
<tr t-foreach="o.debit_move_line_ids" t-as="debit"
t-if="debit.cleared_bank_account">
@ -180,16 +187,20 @@
<tr>
<td>
<b>
<span>Total Deposits &amp; Credits</span>
<span>Total Deposits &amp;
Credits
</span>
</b>
</td>
<td></td>
<td class="text-right">
<span t-if="o.sum_of_debits" t-field="o.sum_of_debits"
<span t-if="o.sum_of_debits"
t-field="o.sum_of_debits"
t-options='{"widget": "monetary", "display_currency": o.account_id.currency_id}'/>
</td>
<td class="text-right">
<span t-if="o.sum_of_debits_cur" t-field="o.sum_of_debits_cur"
<span t-if="o.sum_of_debits_cur"
t-field="o.sum_of_debits_cur"
t-options='{"widget": "monetary", "display_currency": o.account_id.currency_id}'/>
</td>
</tr>
@ -217,12 +228,15 @@
<tr>
<td>
<b>
<span>Total Deposits &amp; Credits</span>
<span>Total Deposits &amp;
Credits
</span>
</b>
</td>
<td></td>
<td class="text-right">
<span t-if="o.sum_of_debits" t-field="o.sum_of_debits"
<span t-if="o.sum_of_debits"
t-field="o.sum_of_debits"
t-options='{"widget": "monetary", "display_currency": o.account_id.currency_id}'/>
</td>
</tr>
@ -244,9 +258,11 @@
</tbody>
</table>
</div>
<table class="table table-condensed" t-if="not o.account_id.currency_id">
<table class="table table-condensed"
t-if="not o.account_id.currency_id">
<tbody class="invoice_tbody">
<tr t-foreach="o.credit_move_line_ids" t-as="credit"
<tr t-foreach="o.credit_move_line_ids"
t-as="credit"
t-if="credit.cleared_bank_account">
<td></td>
<td>
@ -275,9 +291,11 @@
</tr>
</tbody>
</table>
<table class="table table-condensed" t-if="o.account_id.currency_id">
<table class="table table-condensed"
t-if="o.account_id.currency_id">
<tbody class="invoice_tbody">
<tr t-foreach="o.credit_move_line_ids" t-as="credit"
<tr t-foreach="o.credit_move_line_ids"
t-as="credit"
t-if="credit.cleared_bank_account">
<td></td>
<td>
@ -308,16 +326,19 @@
<tr>
<td>
<b>
<span>Total Checks &amp; Payments</span>
<span>Total Checks &amp; Payments
</span>
</b>
</td>
<td></td>
<td class="text-right">
<span t-if="o.sum_of_credits" t-field="o.sum_of_credits"
<span t-if="o.sum_of_credits"
t-field="o.sum_of_credits"
t-options='{"widget": "monetary", "display_currency": o.account_id.currency_id}'/>
</td>
<td class="text-right">
<span t-if="o.sum_of_credits_cur" t-field="o.sum_of_credits_cur"
<span t-if="o.sum_of_credits_cur"
t-field="o.sum_of_credits_cur"
t-options='{"widget": "monetary", "display_currency": o.account_id.currency_id}'/>
</td>
</tr>
@ -328,7 +349,8 @@
<tr>
<td>
<b>
<span>Total Cleared Transactions</span>
<span>Total Cleared Transactions
</span>
</b>
</td>
<td></td>
@ -379,12 +401,15 @@
<tr>
<td>
<b>
<span>Total Deposits &amp; Credits</span>
<span>Total Deposits &amp;
Credits
</span>
</b>
</td>
<td></td>
<td class="text-right">
<span t-if="o.sum_of_credits" t-field="o.sum_of_credits"
<span t-if="o.sum_of_credits"
t-field="o.sum_of_credits"
t-options='{"widget": "monetary", "display_currency": o.account_id.currency_id}'/>
</td>
</tr>
@ -395,7 +420,8 @@
<tr>
<td>
<b>
<span>Total Cleared Transactions</span>
<span>Total Cleared Transactions
</span>
</b>
</td>
<td></td>

View File

@ -2,7 +2,8 @@
<odoo>
<template id="report_bank_statement_summary_doc">
<t t-call="report.external_layout">
<t t-set="o" t-value="o.with_context({'lang':o.company_id.partner_id.lang})" />
<t t-set="o"
t-value="o.with_context({'lang':o.company_id.partner_id.lang})"/>
<div class="page">
<h2 style='text-align:center;'>
Reconciliation Summary
@ -41,11 +42,13 @@
</b>
</td>
<td class="text-right">
<span t-if="o.sum_of_debits" t-field="o.sum_of_debits"
<span t-if="o.sum_of_debits"
t-field="o.sum_of_debits"
t-options='{"widget": "monetary", "display_currency": o.account_id.currency_id}'/>
</td>
<td class="text-right">
<span t-if="o.sum_of_debits_cur" t-field="o.sum_of_debits_cur"
<span t-if="o.sum_of_debits_cur"
t-field="o.sum_of_debits_cur"
t-options='{"widget": "monetary", "display_currency": o.account_id.currency_id}'/>
</td>
<td></td>
@ -60,11 +63,13 @@
</b>
</td>
<td class="text-right">
<span t-if="o.sum_of_credits" t-field="o.sum_of_credits"
<span t-if="o.sum_of_credits"
t-field="o.sum_of_credits"
t-options='{"widget": "monetary", "display_currency": o.account_id.currency_id}'/>
</td>
<td class="text-right">
<span t-if="o.sum_of_credits_cur" t-field="o.sum_of_credits_cur"
<span t-if="o.sum_of_credits_cur"
t-field="o.sum_of_credits_cur"
t-options='{"widget": "monetary", "display_currency": o.account_id.currency_id}'/>
</td>
<td></td>
@ -195,7 +200,8 @@
</td>
<td></td>
<td class="text-right">
<span t-if="o.sum_of_debits" t-field="o.sum_of_debits"
<span t-if="o.sum_of_debits"
t-field="o.sum_of_debits"
t-options='{"widget": "monetary", "display_currency": o.account_id.currency_id}'/>
</td>
<td></td>
@ -211,7 +217,8 @@
</td>
<td></td>
<td class="text-right">
<span t-if="o.sum_of_credits" t-field="o.sum_of_credits"
<span t-if="o.sum_of_credits"
t-field="o.sum_of_credits"
t-options='{"widget": "monetary", "display_currency": o.account_id.currency_id}'/>
</td>
<td></td>