<commit_before><?xml version='1.0' encoding='UTF-8' ?>
<openerp>
    <data noupdate="0">
    
        <record id="mandate_category_search_view" model="ir.ui.view">
            <field name="name">mandate.category.search (ficep_retrocession)</field>
            <field name="model">mandate.category</field>
            <field name="inherit_id" ref="ficep_mandate.mandate_category_search_view" />
            <field name="arch" type="xml">
               <xpath expr="//filter[@name='is_submission_mandate']" position="before">
                    <field name="fractionation_id"/>
                    <field name="calculation_method_id"/>
                    <separator/>
                    <filter name="monthly_invoicing" string="Monthly invoicing"
                            domain="[('invoice_type','=','month')]" />
                    <filter name="yearly_invoicing" string="Yearly invoicing"
                            domain="[('invoice_type','=','year')]" />
                    <filter name="no_invoicing" string="No invoicing"
                            domain="[('invoice_type','=','none')]" />
                    <separator/>
               </xpath>
               <xpath expr="//filter[@name='ext_assembly_category_id']" position="after">
                    <filter name="invoice_type" string="Invoice type" domain="[]" context="{'group_by':'invoice_type'}"/>
               </xpath>
            </field>
        </record>
                
        <record id="mandate_category_form_view" model="ir.ui.view">
           <field name="name">mandate.category.form.view (ficep_retrocession)</field>
           <field name="model">mandate.category</field>
           <field name="inherit_id" ref="ficep_mandate.mandate_category_form_view" />
           <field name="arch" type="xml">
               <xpath expr="//field[@name='int_power_level_id']" position="after">
                     <field name="fractionation_id" domain="[('total_percentage', '=', '100.0')]"/>
                     <field name="invoice_type"/>
                     <field name="calculation_method_id" attrs="{'required' : [('invoice_type', '!=', 'none')]}"/>
               </xpath>
           </field>
        </record>
        
        <record id="sta_mandate_form_view" model="ir.ui.view">
           <field name="name">sta.mandate.form (ficep_retrocession)</field>
           <field name="model">sta.mandate</field>
           <field name="inherit_id" ref="ficep_mandate.sta_mandate_form_view" />
           <field name="arch" type="xml">
               <xpath expr="//field[@name='is_submission_assets']" position="after">
                     <field name="invoice_type" readonly="1"/>
                     <field name="method_type" readonly="1"/>
               </xpath>
               <xpath expr="//div[@name='buttons']" position="inside">
	               <button string="Retrocessions" name="%(retrocession_action)d"
	                                type="action" attrs="{'invisible': ['|',('id','=',False)]}"
	                                context="{'search_default_sta_mandate_id': active_id,
	                                          'default_sta_mandate_id': active_id}" />
	           </xpath>
               <xpath expr="//page[@name='index']" position="after">
                     <button string="All Details" name="%(calculation_rule_action)d"
                                        type="action" attrs="{'invisible': [('id','=',False)]}"
                                        context="{'search_default_sta_mandate_id': active_id,
                                                  'default_sta_mandate_id': active_id,
                                                  'search_default_all': True}" />
                     <page name="rules" string="Rules">
                         <field name="calculation_rule_ids" attrs="{'invisible': [('active', '=', False)]}">
                             <tree version="7.0" editable="bottom">
                                 <field name="name"/>
                                 <field name="percentage"/>
                                 <field name="amount"/>
                             </tree>
                         </field>  
                         <field name="calculation_rule_inactive_ids" attrs="{'invisible': [('active', '=', True)]}">
                             <tree version="7.0" editable="bottom">
                                 <field name="name"/>
                                 <field name="percentage"/>
                                 <field name="amount"/>
                             </tree>
                         </field>  
                     </page>
               </xpath>
           </field>
        </record>
        
        <record id="ext_mandate_form_view" model="ir.ui.view">
           <field name="name">ext.mandate.form (ficep_retrocession)</field>
           <field name="model">ext.mandate</field>
           <field name="inherit_id" ref="ficep_mandate.ext_mandate_form_view" />
           <field name="arch" type="xml">
               <xpath expr="//field[@name='is_submission_assets']" position="after">
                     <field name="invoice_type" readonly="1"/>
                     <field name="method_type" readonly="1"/>
               </xpath>
               <xpath expr="//div[@name='buttons']" position="inside">
                   <button string="Retrocessions" name="%(retrocession_action)d"
                                    type="action" attrs="{'invisible': ['|',('id','=',False)]}"
                                    context="{'search_default_ext_mandate_id': active_id,
                                              'default_ext_mandate_id': active_id}" />
               </xpath>
               <xpath expr="//page[@name='index']" position="after">
                     <button string="All Details" name="%(calculation_rule_action)d"
                                        type="action" attrs="{'invisible': [('id','=',False)]}"
                                        context="{'search_default_ext_mandate_id': active_id,
                                                  'default_ext_mandate_id': active_id,
                                                  'search_default_all': True}" />
                     <page name="rules" string="Rules">
                         <field name="calculation_rule_ids" attrs="{'invisible': [('active', '=', False)]}">
                             <tree version="7.0" editable="bottom">
                                 <field name="name"/>
                                 <field name="percentage"/>
                                 <field name="amount"/>
                             </tree>
                         </field>  
                         <field name="calculation_rule_inactive_ids" attrs="{'invisible': [('active', '=', True)]}">
                             <tree version="7.0" editable="bottom">
                                 <field name="name"/>
                                 <field name="percentage"/><commit_msg>[FIX] fix button on mandate view<commit_after><?xml version='1.0' encoding='UTF-8' ?>
<openerp>
    <data noupdate="0">
    
        <record id="mandate_category_search_view" model="ir.ui.view">
            <field name="name">mandate.category.search (ficep_retrocession)</field>
            <field name="model">mandate.category</field>
            <field name="inherit_id" ref="ficep_mandate.mandate_category_search_view" />
            <field name="arch" type="xml">
               <xpath expr="//filter[@name='is_submission_mandate']" position="before">
                    <field name="fractionation_id"/>
                    <field name="calculation_method_id"/>
                    <separator/>
                    <filter name="monthly_invoicing" string="Monthly invoicing"
                            domain="[('invoice_type','=','month')]" />
                    <filter name="yearly_invoicing" string="Yearly invoicing"
                            domain="[('invoice_type','=','year')]" />
                    <filter name="no_invoicing" string="No invoicing"
                            domain="[('invoice_type','=','none')]" />
                    <separator/>
               </xpath>
               <xpath expr="//filter[@name='ext_assembly_category_id']" position="after">
                    <filter name="invoice_type" string="Invoice type" domain="[]" context="{'group_by':'invoice_type'}"/>
               </xpath>
            </field>
        </record>
                
        <record id="mandate_category_form_view" model="ir.ui.view">
           <field name="name">mandate.category.form.view (ficep_retrocession)</field>
           <field name="model">mandate.category</field>
           <field name="inherit_id" ref="ficep_mandate.mandate_category_form_view" />
           <field name="arch" type="xml">
               <xpath expr="//field[@name='int_power_level_id']" position="after">
                     <field name="fractionation_id" domain="[('total_percentage', '=', '100.0')]"/>
                     <field name="invoice_type"/>
                     <field name="calculation_method_id" attrs="{'required' : [('invoice_type', '!=', 'none')]}"/>
               </xpath>
           </field>
        </record>
        
        <record id="sta_mandate_form_view" model="ir.ui.view">
           <field name="name">sta.mandate.form (ficep_retrocession)</field>
           <field name="model">sta.mandate</field>
           <field name="inherit_id" ref="ficep_mandate.sta_mandate_form_view" />
           <field name="arch" type="xml">
               <xpath expr="//field[@name='is_submission_assets']" position="after">
                     <field name="invoice_type" readonly="1"/>
                     <field name="method_type" readonly="1"/>
               </xpath>
               <xpath expr="//div[@name='buttons']" position="inside">
	               <button string="Retrocessions" name="%(retrocession_action)d"
	                                type="action" attrs="{'invisible': ['|',('id','=',False)]}"
	                                context="{'search_default_sta_mandate_id': active_id,
	                                          'default_sta_mandate_id': active_id}" />
	           </xpath>
               <xpath expr="//page[@name='index']" position="after">                     
                     <page name="rules" string="Rules">
                         <button string="All Details" name="%(calculation_rule_action)d"
                                        type="action" attrs="{'invisible': [('id','=',False)]}"
                                        context="{'search_default_sta_mandate_id': active_id,
                                                  'default_sta_mandate_id': active_id,
                                                  'search_default_all': True}" />
                         <field name="calculation_rule_ids" attrs="{'invisible': [('active', '=', False)]}">
                             <tree version="7.0" editable="bottom">
                                 <field name="name"/>
                                 <field name="percentage"/>
                                 <field name="amount"/>
                             </tree>
                         </field>  
                         <field name="calculation_rule_inactive_ids" attrs="{'invisible': [('active', '=', True)]}">
                             <tree version="7.0" editable="bottom">
                                 <field name="name"/>
                                 <field name="percentage"/>  
                                 <field name="amount"/>
                             </tree>
                         </field>  
                     </page>
               </xpath>
           </field>
        </record>
        
        <record id="ext_mandate_form_view" model="ir.ui.view">
           <field name="name">ext.mandate.form (ficep_retrocession)</field>
           <field name="model">ext.mandate</field>
           <field name="inherit_id" ref="ficep_mandate.ext_mandate_form_view" />
           <field name="arch" type="xml">
               <xpath expr="//field[@name='is_submission_assets']" position="after">
                     <field name="invoice_type" readonly="1"/>
                     <field name="method_type" readonly="1"/>
               </xpath>
               <xpath expr="//div[@name='buttons']" position="inside">
                   <button string="Retrocessions" name="%(retrocession_action)d"
                                    type="action" attrs="{'invisible': ['|',('id','=',False)]}"
                                    context="{'search_default_ext_mandate_id': active_id,
                                              'default_ext_mandate_id': active_id}" />
               </xpath>
               <xpath expr="//page[@name='index']" position="after">                     
                     <page name="rules" string="Rules">
                         <button string="All Details" name="%(calculation_rule_action)d"
                                        type="action" attrs="{'invisible': [('id','=',False)]}"
                                        context="{'search_default_ext_mandate_id': active_id,
                                                  'default_ext_mandate_id': active_id,
                                                  'search_default_all': True}" />
                         <field name="calculation_rule_ids" attrs="{'invisible': [('active', '=', False)]}">
                             <tree version="7.0" editable="bottom">
                                 <field name="name"/>
                                 <field name="percentage"/>
                                 <field name="amount"/>
                             </tree>
                         </field>  
                         <field name="calculation_rule_inactive_ids" attrs="{'invisible': [('active', '=', True)]}">
                             <tree version="7.0" editable="bottom">
                                 <field name="name"/>
                                 <field name="percentage"/>
{'fraction_non_alphanumeric': 0.14923677671281504, 'fraction_numerical': 0.0028399006034788782, 'mean_word_length': 1.4651732586629331, 'pattern_counts': {'":': 0, '<': 205, '<?xml version=': 2, '>': 205, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 58, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '652055', 'n_tokens_mistral': 3654, 'n_tokens_neox': 3529, 'n_words': 536}