<commit_before><?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017 KMEE
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<odoo>
<data>
    <record model="ir.ui.view" id="financial_cashflow_tree_view">
        <field name="name">financial.cashflow.tree (in financial)</field>
        <field name="model">financial.cashflow</field>
        <field name="arch" type="xml">
            <tree string="Cashflow" create="0" delete="0" colors="black:financial_type in ('rr', 'pp');gray:financial_type in ('r', 'p')">
            <!-- <tree string="Cashflow" create="0" delete="0"> -->
                <field name="date_business_maturity"/>
                <!-- <field name="create_date"/> -->
                <!-- <field name="expected_date"/> -->
                <field name="partner_id"/>
                <field name="account_id"/>
                <field name="document_number"/>
                <field name="bank_id"/>
                <field name="payment_method_id"/>
                <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
                <field name="currency_id" groups="base.group_multi_currency"/>
                <field name="amount_total" invisible="1"/>
                <!-- <field name="balance"/> -->
                <field name="state" invisible="1"/>
                <field name="financial_type" invisible="1"/>
                <field name="amount_credit"/>
                <field name="amount_debit"/>
                <field name="amount_cumulative_balance"/>
            </tree>
        </field>
    </record>
    <record model="ir.ui.view" id="financial_cashflow_search_view">
        <field name="name">financial.cashflow.search (in financial)</field>
        <field name="model">financial.cashflow</field>
        <field name="arch" type="xml">
            <search string="Search Moves">
               <group col='10' colspan='4'>
                    <field name="bank_id" filter_domain="[('bank_id', 'ilike', self)]" string="Bank account is"/>
                    <field name="date_business_maturity" filter_domain="[('date_business_maturity', '=', self)]" string="Business maturity is"/>
                    <field name="date_business_maturity" filter_domain="[('date_business_maturity', '&gt;=', self)]" string="Business maturity from"/>
                    <field name="date_business_maturity" filter_domain="[('date_business_maturity', '&lt;=', self)]" string="Business maturity to"/>
                    <filter string="Effective payments" domain="['|', ('financial_type', '=', 'pp'), ('financial_type', '=', 'rr')]"/>
                    <filter string="Projected payments" domain="['|', ('financial_type', '=', 'p'), ('financial_type', '=', 'r')]"/>
               </group>
                <newline/>
                <group expand="0" string="Group By...">
               </group>
           </search>
        </field>
    </record>
    <record model="ir.ui.view" id="financial_cashflow_pivot">
        <field name="name">financial.cashflow.pivot</field>
        <field name="model">financial.cashflow</field>
        <field name="arch" type="xml">
            <pivot string="Cash Flow" display_quantity="true">
                <field name="account_id"/>
                <field name="date_maturity" interval="month" type="col"/>
                <field name="amount_paid" type="measure"/>
                <field name="amount_cumulative_balance" type="measure"/>
            </pivot>
        </field><commit_msg>[ADD] Initial balance to cashflow statement on filtering<commit_after><?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017 KMEE
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<odoo>
<data>
    <record model="ir.ui.view" id="financial_cashflow_tree_view">
        <field name="name">financial.cashflow.tree (in financial)</field>
        <field name="model">financial.cashflow</field>
        <field name="arch" type="xml">
            <tree string="Cashflow" create="0" delete="0" colors="black:financial_type in ('rr', 'pp');gray:financial_type in ('r', 'p')">
            <!-- <tree string="Cashflow" create="0" delete="0"> -->
                <field name="date_business_maturity"/>
                <!-- <field name="create_date"/> -->
                <!-- <field name="expected_date"/> -->
                <field name="partner_id"/>
                <field name="account_id"/>
                <field name="document_number"/>
                <field name="bank_id"/>
                <field name="payment_method_id"/>
                <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
                <field name="currency_id" groups="base.group_multi_currency"/>
                <field name="amount_total" invisible="1"/>
                <!-- <field name="balance"/> -->
                <field name="state" invisible="1"/>
                <field name="financial_type" invisible="1"/>
                <field name="amount_credit"/>
                <field name="amount_debit"/>
                <field name="amount_cumulative_balance"/>
            </tree>
        </field>
    </record>
    <record model="ir.ui.view" id="financial_cashflow_search_view">
        <field name="name">financial.cashflow.search (in financial)</field>
        <field name="model">financial.cashflow</field>
        <field name="arch" type="xml">
            <search string="Search Moves">
               <group col='10' colspan='4'>
                    <field name="bank_id" filter_domain="[('bank_id', 'ilike', self)]" string="Bank account is"/>
                    <field name="date_business_maturity" filter_domain="[('date_business_maturity', '=', self)]" string="Business maturity is"/>
                    <field name="date_business_maturity" filter_domain="[('date_business_maturity', '&gt;=', self)]" string="Business maturity from"/>
                    <field name="date_business_maturity" filter_domain="[('date_business_maturity', '&lt;=', self)]" string="Business maturity to"/>
                    <filter string="Effective payments" domain="[('financial_type', 'in', ['pp', 'rr', 'open'])]"/>
                    <filter string="Projected payments" domain="[('financial_type', 'in', ['p', 'r', 'open'])]"/>
               </group>
                <newline/>
                <group expand="0" string="Group By...">
               </group>
           </search>
        </field>
    </record>
    <record model="ir.ui.view" id="financial_cashflow_pivot">
        <field name="name">financial.cashflow.pivot</field>
        <field name="model">financial.cashflow</field>
        <field name="arch" type="xml">
            <pivot string="Cash Flow" display_quantity="true">
                <field name="account_id"/>
                <field name="date_maturity" interval="month" type="col"/>
                <field name="amount_paid" type="measure"/>
                <field name="amount_cumulative_balance" type="measure"/>
            </pivot>
        </field>
{'fraction_non_alphanumeric': 0.17296988725560153, 'fraction_numerical': 0.005708577137148565, 'mean_word_length': 2.388781431334623, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 2, '>': 143, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5093779', 'n_tokens_mistral': 2057, 'n_tokens_neox': 1934, 'n_words': 376}