<commit_before><?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
        <!-- Project Issue Kanban View Inherit-->
        <record model="ir.ui.view" id="project_issue_kanban_view">
            <field name="name">view.project.issue.kanban</field>
            <field name="model">project.issue</field>
            <field name="inherit_id" ref="project_issue.project_issue_kanban_view"/>
            <field name="arch" type="xml">
                <field name="name" position="before"> 
                    <field name="issue_number"/> 
                    <br attrs="{'invisible':[('issue_number', '=', False)]}"/>
                </field>
                <field name="partner_id" position="replace"> 
                    <field name="partner_id"/> 
                    <br/>
                    <field name="branch_id"/> 
                </field>
            </field>
        </record>
        <!--Tree View Inherit project issue-->
        <record model="ir.ui.view" id="project_issue_tree_view">
                <field name="name">view.project.issue.tree</field>
                <field name="model">project.issue</field>
                <field name="inherit_id" ref="project_issue.project_issue_tree_view"/>
                <field name="arch" type="xml">
                    <field name="id" position="replace"/> 
                    <field name="name" position="before"> 
                        <field name="issue_number"/> 
                    </field>
                    <field name="user_id" position="replace"> 
                        <field name="employee_id"/> 
                    </field>
                    <field name="partner_id" position="after"> 
                        <field name="branch_id"/>
                        <field name="product_id"/> 
                    </field> 
                </field>
        </record>
    
        <!--Form View Inherit project issue-->
        <record id="view_project_issue_form" model="ir.ui.view">
            <field name="name">view.project.issue.form</field>
            <field name="model">project.issue</field>
            <field name="inherit_id" ref="project_issue.project_issue_form_view"/>
            <field name="arch" type="xml">
                <xpath expr="/form/sheet[@string='Issue']/group/group[1]" position="inside">
                      <field name="issue_type"/>
                      <field name="origin_id"/>
                      <field name="warranty"/>
                </xpath>
                <field name="id" position="attributes">
                        <attribute name="attrs">{'invisible':True}</attribute>
                </field>
                <xpath expr="/form/sheet/notebook/page[@string='Extra Info']" position="before">
                    <page string="Delivery Orders">
                        <field name="init_onchange_call" invisible="1"/>
                        <field name="backorder_ids" domain="[('id','in',init_onchange_call[0][2])]" widget="many2many"/>
                    </page>
                </xpath>
                <xpath expr="/form/sheet[@string='Issue']/group/group[1]/div" position="after">
                    <field name="categ_id" on_change="onchange_categ_id(categ_id)"/>     
                </xpath>
                <field name="categ_id" position="after"> 
                    <field name="product_id" domain="[('categ_id','=',categ_id)]" on_change="onchange_product_id(product_id)"/> 
                </field> 
                <field name="product_id"  position="after"> 
                    <field name="prodlot_id"  domain="[('product_id','=',product_id)]" on_change="onchange_prodlot_id(prodlot_id)"/> 
                </field>
                <field name="partner_id"  position="attributes">
                    <attribute name="domain">[('partner_type','in',['company'])]</attribute>
                    <attribute name="attrs">{'required':True}</attribute>
                </field>
                <field name="partner_id"  position="after"> 
                    <field name="branch_id" on_change="onchange_branch_id(branch_id)" domain="[('parent_id','=',partner_id),('partner_type','=','branch')]" attrs="{'invisible':[('have_branch', '=', False)],'required':[('have_branch', '=', True)]}"/>
                    <field name="have_branch" invisible="1"/> 
                </field>
                <label for="name"  position="before"><commit_msg>[ADD]Add field warranty to tree view<commit_after><?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
        <!-- Project Issue Kanban View Inherit-->
        <record model="ir.ui.view" id="project_issue_kanban_view">
            <field name="name">view.project.issue.kanban</field>
            <field name="model">project.issue</field>
            <field name="inherit_id" ref="project_issue.project_issue_kanban_view"/>
            <field name="arch" type="xml">
                <field name="name" position="before"> 
                    <field name="issue_number"/> 
                    <br attrs="{'invisible':[('issue_number', '=', False)]}"/>
                </field>
                <field name="partner_id" position="replace"> 
                    <field name="partner_id"/> 
                    <br/>
                    <field name="branch_id"/> 
                </field>
            </field>
        </record>
        <!--Tree View Inherit project issue-->
        <record model="ir.ui.view" id="project_issue_tree_view">
                <field name="name">view.project.issue.tree</field>
                <field name="model">project.issue</field>
                <field name="inherit_id" ref="project_issue.project_issue_tree_view"/>
                <field name="arch" type="xml">
                    <field name="id" position="replace"/> 
                    <field name="name" position="before"> 
                        <field name="issue_number"/> 
                    </field>
                    <field name="user_id" position="replace"> 
                        <field name="employee_id"/> 
                    </field>
                    <field name="partner_id" position="after"> 
                        <field name="branch_id"/>
                        <field name="product_id"/> 
                    </field>
                    <field name="employee_id" position="after"> 
                        <field name="warranty"/>
                    </field>
                </field>
        </record>
    
        <!--Form View Inherit project issue-->
        <record id="view_project_issue_form" model="ir.ui.view">
            <field name="name">view.project.issue.form</field>
            <field name="model">project.issue</field>
            <field name="inherit_id" ref="project_issue.project_issue_form_view"/>
            <field name="arch" type="xml">
                <xpath expr="/form/sheet[@string='Issue']/group/group[1]" position="inside">
                      <field name="issue_type"/>
                      <field name="origin_id"/>
                      <field name="warranty"/>
                </xpath>
                <field name="id" position="attributes">
                        <attribute name="attrs">{'invisible':True}</attribute>
                </field>
                <xpath expr="/form/sheet/notebook/page[@string='Extra Info']" position="before">
                    <page string="Delivery Orders">
                        <field name="init_onchange_call" invisible="1"/>
                        <field name="backorder_ids" readonly="1" domain="[('id','in',init_onchange_call[0][2])]" widget="many2many"/>
                    </page>
                </xpath>
                <xpath expr="/form/sheet[@string='Issue']/group/group[1]/div" position="after">
                    <field name="categ_id" on_change="onchange_categ_id(categ_id)"/>     
                </xpath>
                <field name="categ_id" position="after"> 
                    <field name="product_id" domain="[('categ_id','=',categ_id)]" on_change="onchange_product_id(product_id)"/> 
                </field> 
                <field name="product_id"  position="after"> 
                    <field name="prodlot_id"  domain="[('product_id','=',product_id)]" on_change="onchange_prodlot_id(prodlot_id)"/> 
                </field>
                <field name="partner_id"  position="attributes">
                    <attribute name="domain">[('partner_type','in',['company'])]</attribute>
                    <attribute name="attrs">{'required':True}</attribute>
                </field>
                <field name="partner_id"  position="after"> 
                    <field name="branch_id" on_change="onchange_branch_id(branch_id)" domain="[('parent_id','=',partner_id),('partner_type','=','branch')]" attrs="{'invisible':[('have_branch', '=', False)],'required':[('have_branch', '=', True)]}"/>
                    <field name="have_branch" invisible="1"/> 
                </field>
                <label for="name"  position="before">
{'fraction_non_alphanumeric': 0.1603836716484497, 'fraction_numerical': 0.002342181574838278, 'mean_word_length': 1.7925879788227967, 'pattern_counts': {'":': 0, '<': 178, '<?xml version=': 2, '>': 178, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6612323', 'n_tokens_mistral': 2518, 'n_tokens_neox': 2335, 'n_words': 379}