<commit_before><openerp>
	<data>
		<record id="subscription_register_tree" model="ir.ui.view">
            <field name="name">subscription.register.tree</field>
            <field name="model">subscription.register</field>
            <field name="arch" type="xml">
                <tree string="Subscription Register">
	                <field name="register_number_operation"/>
          			<field name="date"/>
          			<field name="partner_id"/>
          			<field name="share_short_name"/>
          			<field name="quantity" sum="Total quantity"/>
          			<field name="share_unit_price"/>
		          	<field name="total_amount_line" sum="Total amount"/>
          			<field name="type"/>
                </tree>
            </field>
        </record>
        
        <record id="subscription_register_form" model="ir.ui.view">
            <field name="name">subscription.register.form</field>
            <field name="model">subscription.register</field>
            <field name="arch" type="xml">
                <form string="Subscription Register">
	                <group>
		                <group>
			                <field name="register_number_operation"/>
		          			<field name="date"/>
							<field name="share_short_name"/>
		          			<field name="partner_id"/>
		          			<field name="partner_id_to" attrs="{'invisible':[('type','!=','transfer')]}"/>
		          			<field name="user_id" invisible="True"/>
	          			</group>
	          			<group>
		          			<field name="type"/>
		          			<field name="quantity"/>
		          			<field name="share_unit_price"/>
		          			<field name="total_amount_line"/>
	          			</group>
	          		</group>
                </form>
            </field>
        </record>
        
        <record id="subscription_register_action" model="ir.actions.act_window">
            <field name="name">Subscription Register</field>
            <field name="res_model">subscription.register</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="subscription_register_tree"/>
        </record>
	
		<menuitem action="subscription_register_action" name="Subscription Register" id="menu_easy_my_coop_subscription_register"  parent="menu_easy_my_coop_main_subscription" sequence="20"/><commit_msg>[IMP] add search view to subscription register<commit_after><openerp>
	<data>
		<record id="subscription_register_tree" model="ir.ui.view">
            <field name="name">subscription.register.tree</field>
            <field name="model">subscription.register</field>
            <field name="arch" type="xml">
                <tree string="Subscription Register">
	                <field name="register_number_operation"/>
          			<field name="date"/>
          			<field name="partner_id"/>
          			<field name="share_short_name"/>
          			<field name="quantity" sum="Total quantity"/>
          			<field name="share_unit_price"/>
		          	<field name="total_amount_line" sum="Total amount"/>
          			<field name="type"/>
                </tree>
            </field>
        </record>
        
        <record id="subscription_register_form" model="ir.ui.view">
            <field name="name">subscription.register.form</field>
            <field name="model">subscription.register</field>
            <field name="arch" type="xml">
                <form string="Subscription Register">
	                <group>
		                <group>
			                <field name="register_number_operation"/>
		          			<field name="date"/>
							<field name="share_short_name"/>
		          			<field name="partner_id"/>
		          			<field name="partner_id_to" attrs="{'invisible':[('type','!=','transfer')]}"/>
		          			<field name="user_id" invisible="True"/>
	          			</group>
	          			<group>
		          			<field name="type"/>
		          			<field name="quantity"/>
		          			<field name="share_unit_price"/>
		          			<field name="total_amount_line"/>
	          			</group>
	          		</group>
                </form>
            </field>
        </record>
        
		<record id="view_subscription_register_filter" model="ir.ui.view">
            <field name="name">Subscription Register Search</field>
            <field name="model">subscription.register</field>
            <field name="arch" type="xml">
                <search string="Search Subscription Register">
                   <field name="partner_id"
                       filter_domain="[('partner_id','ilike',self)]"/>
                   <field name="register_number_operation"/>
                   <separator/>
                   <filter string="Subscription" name="type_subscription" domain="[('type','=','subscription')]"/>
                   <filter string="Transfer" name="type_transfer" domain="[('type','=','transfer')]"/>
                   <filter string="Sell back" name="type_sell_back" domain="[('type','=','sell_back')]"/>
                   <filter string="Convert" name="type_convert" domain="[('type','=','convert')]"/>
                   <separator/>
                   <group expand="0" name="group_by" string="Group By">
                       <filter string="Entry type" context="{'group_by' : 'type'}" />
                       <filter string="Date Month" context="{'group_by': 'date'}"/>
                   </group>
               </search>
            </field>
        </record>

        <record id="subscription_register_action" model="ir.actions.act_window">
            <field name="name">Subscription Register</field>
            <field name="res_model">subscription.register</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="subscription_register_tree"/>
            <field name="search_view_id" ref="view_subscription_register_filter"/>
        </record>

		<menuitem action="subscription_register_action" name="Subscription Register" id="menu_easy_my_coop_subscription_register"  parent="menu_easy_my_coop_main_subscription" sequence="20"/>
{'fraction_non_alphanumeric': 0.14704429441791536, 'fraction_numerical': 0.0008233163181294253, 'mean_word_length': 2.050728277247614, 'pattern_counts': {'":': 0, '<': 138, '<?xml version=': 0, '>': 138, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '1879188', 'n_tokens_mistral': 1744, 'n_tokens_neox': 1629, 'n_words': 273}