<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_partner_form_add_web_field" model="ir.ui.view">
            <field name="name">res.partner.form.add_web_field</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="purchase_advance_payment.view_partner_property_form_add_on_account"/>
            <field name="arch" type="xml">
                 <field name="date" position="attributes">
                    <attribute name="readonly">1</attribute>
                    <attribute name="string">Created date</attribute>
                </field>
                <field name="date" position="after">
                    <field name="annual_invoiced"/>
                    <field name="monthly_invoiced"/>
                    <field name="past_year_invoiced"/>
                    <field name="past_month_invoiced"/>
                </field>
                <field name="active" position="after">
                    <field name="web" attrs="{'invisible': [('is_company', '!=', True)]}"/>
                    <field name="email_web" attrs="{'invisible': [('web', '!=', True)], 'required': [('web', '=', True)]}"/>
                </field>
                <field name="property_account_position" position="after">
                    <field name="invoice_type_id" attrs="{'required': [('is_company', '=', True),('customer', '=', True),('dropship', '=', False),('prospective', '=', False)]}"/>
                </field>
                <field name="user_id" position="replace"/>
                <field name="ref" position="replace"/>
                <field name="title" position="after">
                    <field name="ref"/>
                    <field name="user_id"/>
                    <field name="dropship" attrs="{'invisible': [('type', '!=', 'delivery')]}"/>
                </field>
                <field name="debit" position="before">
                    <field name="eur_currency" invisible="1"/>
                    <field name="purchase_quantity" groups="purchase.group_purchase_user" widget="monetary" options="{'currency_field': 'supplier_currency'}"/>
                </field>
                <field name="debit" position="attributes">
                    <attribute name="widget">monetary</attribute>
                    <attribute name="options">{'currency_field': 'eur_currency'}</attribute>
                </field>
                <field name="credit" position="attributes">
                    <attribute name="widget">monetary</attribute>
                    <attribute name="options">{'currency_field': 'eur_currency'}</attribute>
                </field>
            </field>
        </record>

        <record id="view_res_partner_filter_add_comercial" model="ir.ui.view">
            <field name="name">res.partner.select</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_res_partner_filter"/>
            <field name="arch" type="xml">
                <field name="name" position="replace">
                   <field name="name"
                       filter_domain="['|','|','|',('display_name','ilike',self),('ref','=',self),('email','ilike',self),('comercial', 'ilike', self)]"/>
                    <field name="vat"/>
                    <field name="email"/>
                    <field name="email_web"/>
                    <field name="zip"/>
                    <field name="phone"/>
                </field>
            </field>
        </record>

        <record id="sale.act_res_partner_2_sale_order" model="ir.actions.act_window">
            <field name="name">Sales</field>
            <field name="res_model">sale.order</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form,graph</field>
            <field name="context">{'search_default_partner_id': active_id, 'default_state': 'reserve'}</field>
            <field name="domain">[('state', 'not in', ['cancel', 'draft', 'sent'])]</field>
            <field name="groups_id" eval="[(4, ref('base.group_sale_salesman'))]"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create a quotation or sales order for this customer.
              </p><p>
                Odoo will help you efficiently handle the complete sale flow:
                quotation, sales order, delivery, invoicing and
                payment.
              </p><p>
                The social feature helps you organize discussions on each sales
                order, and allow your customer to keep track of the evolution
                of the sales order.
              </p>
            </field>
        </record>

        <record id="act_res_partner_2_sale_quotations" model="ir.actions.act_window">
            <field name="name">Quotations</field>
            <field name="res_model">sale.order</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form,graph</field>
            <field name="context">{'search_default_partner_id': active_id}</field>
            <field name="domain">[('state', 'in', ['draft','sent'])]</field>
            <field name="groups_id" eval="[(4, ref('base.group_sale_salesman'))]"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create a quotation or sales order for this customer.
              </p><p>
                Odoo will help you efficiently handle the complete sale flow:
                quotation, sales order, delivery, invoicing and
                payment.
              </p><p>
                The social feature helps you organize discussions on each sales
                order, and allow your customer to keep track of the evolution
                of the sales order.
              </p>
            </field>
        </record>
<commit_msg>[IMP] 'custom_partner': En el botón Presupuestos de la ficha del cliente, añadido también aquellos que están cancelados<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_partner_form_add_web_field" model="ir.ui.view">
            <field name="name">res.partner.form.add_web_field</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="purchase_advance_payment.view_partner_property_form_add_on_account"/>
            <field name="arch" type="xml">
                 <field name="date" position="attributes">
                    <attribute name="readonly">1</attribute>
                    <attribute name="string">Created date</attribute>
                </field>
                <field name="date" position="after">
                    <field name="annual_invoiced"/>
                    <field name="monthly_invoiced"/>
                    <field name="past_year_invoiced"/>
                    <field name="past_month_invoiced"/>
                </field>
                <field name="active" position="after">
                    <field name="web" attrs="{'invisible': [('is_company', '!=', True)]}"/>
                    <field name="email_web" attrs="{'invisible': [('web', '!=', True)], 'required': [('web', '=', True)]}"/>
                </field>
                <field name="property_account_position" position="after">
                    <field name="invoice_type_id" attrs="{'required': [('is_company', '=', True),('customer', '=', True),('dropship', '=', False),('prospective', '=', False)]}"/>
                </field>
                <field name="user_id" position="replace"/>
                <field name="ref" position="replace"/>
                <field name="title" position="after">
                    <field name="ref"/>
                    <field name="user_id"/>
                    <field name="dropship" attrs="{'invisible': [('type', '!=', 'delivery')]}"/>
                </field>
                <field name="debit" position="before">
                    <field name="eur_currency" invisible="1"/>
                    <field name="purchase_quantity" groups="purchase.group_purchase_user" widget="monetary" options="{'currency_field': 'supplier_currency'}"/>
                </field>
                <field name="debit" position="attributes">
                    <attribute name="widget">monetary</attribute>
                    <attribute name="options">{'currency_field': 'eur_currency'}</attribute>
                </field>
                <field name="credit" position="attributes">
                    <attribute name="widget">monetary</attribute>
                    <attribute name="options">{'currency_field': 'eur_currency'}</attribute>
                </field>
            </field>
        </record>

        <record id="view_res_partner_filter_add_comercial" model="ir.ui.view">
            <field name="name">res.partner.select</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_res_partner_filter"/>
            <field name="arch" type="xml">
                <field name="name" position="replace">
                   <field name="name"
                       filter_domain="['|','|','|',('display_name','ilike',self),('ref','=',self),('email','ilike',self),('comercial', 'ilike', self)]"/>
                    <field name="vat"/>
                    <field name="email"/>
                    <field name="email_web"/>
                    <field name="zip"/>
                    <field name="phone"/>
                </field>
            </field>
        </record>

        <record id="sale.act_res_partner_2_sale_order" model="ir.actions.act_window">
            <field name="name">Sales</field>
            <field name="res_model">sale.order</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form,graph</field>
            <field name="context">{'search_default_partner_id': active_id, 'default_state': 'reserve'}</field>
            <field name="domain">[('state', 'not in', ['cancel', 'draft', 'sent'])]</field>
            <field name="groups_id" eval="[(4, ref('base.group_sale_salesman'))]"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create a quotation or sales order for this customer.
              </p><p>
                Odoo will help you efficiently handle the complete sale flow:
                quotation, sales order, delivery, invoicing and
                payment.
              </p><p>
                The social feature helps you organize discussions on each sales
                order, and allow your customer to keep track of the evolution
                of the sales order.
              </p>
            </field>
        </record>

        <record id="act_res_partner_2_sale_quotations" model="ir.actions.act_window">
            <field name="name">Quotations</field>
            <field name="res_model">sale.order</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form,graph</field>
            <field name="context">{'search_default_partner_id': active_id}</field>
            <field name="domain">[('state', 'in', ['cancel','draft','sent'])]</field>
            <field name="groups_id" eval="[(4, ref('base.group_sale_salesman'))]"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create a quotation or sales order for this customer.
              </p><p>
                Odoo will help you efficiently handle the complete sale flow:
                quotation, sales order, delivery, invoicing and
                payment.
              </p><p>
                The social feature helps you organize discussions on each sales
                order, and allow your customer to keep track of the evolution
                of the sales order.
              </p>
            </field>
        </record>

{'fraction_non_alphanumeric': 0.15148490142251061, 'fraction_numerical': 0.0014973795857249812, 'mean_word_length': 1.986832298136646, 'pattern_counts': {'":': 0, '<': 237, '<?xml version=': 2, '>': 237, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '5146250', 'n_tokens_mistral': 3295, 'n_tokens_neox': 3138, 'n_words': 674}