<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>

    <record model="ir.actions.act_window" id="sale_order_para_faturar_action">
        <field name="name">Pedidos para faturar</field>
        <field name="res_model">sale.order</field>
        <field name="view_mode">tree,form,kanban,calendar,pivot,graph</field>
        <field name="domain">[('invoice_status','=','to invoice')]</field>
        <field name="search_view_id" ref="sale_order_search" />
    </record>

    <record model="ir.actions.act_window.view" id="sale_order_para_faturar_tree_action">
        <field eval="1" name="sequence"/>
        <field name="view_mode">tree</field>
        <field name="view_id" ref="sale.view_order_tree"/>
        <field name="act_window_id" ref="sale_order_para_faturar_action"/>
    </record>

    <record model="ir.actions.act_window.view" id="sale_order_para_faturar_form_action">
        <field eval="2" name="sequence"/>
        <field name="view_mode">form</field>
        <field name="view_id" ref="sale_order_form"/>
        <field name="act_window_id" ref="sale_order_para_faturar_action"/>
    </record>

    <record model="ir.actions.act_window.view" id="sale_order_para_faturar_kanban_action">
        <field eval="3" name="sequence"/>
        <field name="view_mode">kanban</field>
        <field name="view_id" ref="sale_order_kanban"/>
        <field name="act_window_id" ref="sale_order_para_faturar_action"/>
    </record>

    <record model="ir.actions.act_window.view" id="sale_order_para_faturar_calendar_action">
        <field eval="4" name="sequence"/>
        <field name="view_mode">calendar</field>
        <field name="view_id" ref="sale_order_calendar"/>
        <field name="act_window_id" ref="sale_order_para_faturar_action"/>
    </record>

    <record model="ir.actions.act_window.view" id="sale_order_para_faturar_pivot_action">
        <field eval="5" name="sequence"/>
        <field name="view_mode">pivot</field>
        <field name="view_id" ref="sale_order_pivot"/>
        <field name="act_window_id" ref="sale_order_para_faturar_action"/>
    </record>

    <record model="ir.actions.act_window.view" id="sale_order_para_faturar_graph_action">
        <field eval="6" name="sequence"/>
        <field name="view_mode">graph</field>
        <field name="view_id" ref="sale_order_graph"/>
        <field name="act_window_id" ref="sale_order_para_faturar_action"/>
    </record>

<!--    <record model="ir.ui.menu" id="menu_sale_order_para_faturar">
        <field name="name">Pedidos para faturar</field>
        <field name="parent_id" ref="sale.menu_sale_invoicing"/>
        <field name="action" ref="sale_order_para_faturar_action"/>
        <field name="sequence" eval="3"/>
    </record>-->

    <!-- Temporariamente, substituímos o menu original pelo nosso -->
    <record model="ir.ui.menu" id="sale.menu_sale_order_invoice">
        <field name="name">Pedidos para faturar</field>
        <field name="parent_id" ref="sale.menu_sale_invoicing"/>
        <field name="action" ref="sale_order_para_faturar_action"/>
        <field name="sequence" eval="3"/>
    </record>

</odoo>
<commit_msg>[FIX] Tree view de Vendas para Faturar<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>

    <record model="ir.actions.act_window" id="sale_order_para_faturar_action">
        <field name="name">Pedidos para faturar</field>
        <field name="res_model">sale.order</field>
        <field name="view_mode">tree,form,kanban,calendar,pivot,graph</field>
        <field name="domain">[('invoice_status','=','to invoice')]</field>
        <field name="search_view_id" ref="sale_order_search" />
    </record>

    <record model="ir.actions.act_window.view" id="sale_order_para_faturar_tree_action">
        <field eval="1" name="sequence"/>
        <field name="view_mode">tree</field>
        <field name="view_id" ref="sale.view_order_tree"/>
        <field name="act_window_id" ref="sale_order_para_faturar_action"/>
    </record>

    <record id="view_order_tree" model="ir.ui.view">
        <field name="name">sale.order.tree (in sped_sale)</field>
        <field name="model">sale.order</field>
        <field name="inherit_id" ref="sale.view_order_tree"/>
        <field name="arch" type="xml">
            <field name="partner_id" position="replace">
                <field name="participante_id" string="Cliente"/>
            </field>
        </field>
    </record>

    <record model="ir.actions.act_window.view" id="sale_order_para_faturar_form_action">
        <field eval="2" name="sequence"/>
        <field name="view_mode">form</field>
        <field name="view_id" ref="sale_order_form"/>
        <field name="act_window_id" ref="sale_order_para_faturar_action"/>
    </record>

    <record model="ir.actions.act_window.view" id="sale_order_para_faturar_kanban_action">
        <field eval="3" name="sequence"/>
        <field name="view_mode">kanban</field>
        <field name="view_id" ref="sale_order_kanban"/>
        <field name="act_window_id" ref="sale_order_para_faturar_action"/>
    </record>

    <record model="ir.actions.act_window.view" id="sale_order_para_faturar_calendar_action">
        <field eval="4" name="sequence"/>
        <field name="view_mode">calendar</field>
        <field name="view_id" ref="sale_order_calendar"/>
        <field name="act_window_id" ref="sale_order_para_faturar_action"/>
    </record>

    <record model="ir.actions.act_window.view" id="sale_order_para_faturar_pivot_action">
        <field eval="5" name="sequence"/>
        <field name="view_mode">pivot</field>
        <field name="view_id" ref="sale_order_pivot"/>
        <field name="act_window_id" ref="sale_order_para_faturar_action"/>
    </record>

    <record model="ir.actions.act_window.view" id="sale_order_para_faturar_graph_action">
        <field eval="6" name="sequence"/>
        <field name="view_mode">graph</field>
        <field name="view_id" ref="sale_order_graph"/>
        <field name="act_window_id" ref="sale_order_para_faturar_action"/>
    </record>

<!--    <record model="ir.ui.menu" id="menu_sale_order_para_faturar">
        <field name="name">Pedidos para faturar</field>
        <field name="parent_id" ref="sale.menu_sale_invoicing"/>
        <field name="action" ref="sale_order_para_faturar_action"/>
        <field name="sequence" eval="3"/>
    </record>-->

    <!-- Temporariamente, substituímos o menu original pelo nosso -->
    <record model="ir.ui.menu" id="sale.menu_sale_order_invoice">
        <field name="name">Pedidos para faturar</field>
        <field name="parent_id" ref="sale.menu_sale_invoicing"/>
        <field name="action" ref="sale_order_para_faturar_action"/>
        <field name="sequence" eval="3"/>
    </record>

</odoo>

{'fraction_non_alphanumeric': 0.16075276540726907, 'fraction_numerical': 0.004884355696020686, 'mean_word_length': 3.8313671061762666, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 2, '>': 161, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 3}, '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': '5042064', 'n_tokens_mistral': 2414, 'n_tokens_neox': 2312, 'n_words': 354}