<commit_before><openerp>
<data>
    <menuitem name="Document Management" icon="terp-stock" id="menu_document"/>

    <record model="ir.ui.view" id="view_document_directory_form">
        <field name="name">document.directory</field>
        <field name="model">document.directory</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Directories">
                <notebook>
                <page string="Definition">
                    <field name="name" select="1" colspan="4"/>
                    <field name="user_id"/>
                    <field name="parent_id"/>
                    <separator string="Directory Type" colspan="4"/>
                    <field name="type"/>
                    <field name="ressource_type_id"  on_change="onchange_content_id(ressource_type_id)"/>
                    <newline/>
                    <field name="domain"/>
                    <field name="ressource_tree"/>
                    <field name="ressource_id" select="2"/>
                    <field name="ressource_parent_type_id"/>

                    <separator string="Contents" colspan="4"/>
                    <field name="content_ids" nolabel="1" colspan="4">
                        <form string="Contents">
                            <field name="name"/>
                            <field name="sequence"/>
                            <field name="suffix"/>
                            <field name="extension"/>
                            <field name="report_id" domain="[('model_id','=',parent.ressource_type_id)]"/>
                        </form>
                        <tree string="Contents">
                            <field name="sequence"/>
                            <field name="name"/>
                            <field name="suffix"/>
                            <field name="extension"/>
                            <field name="report_id"/>
                        </tree>
                    </field>
                </page><page string="Security">
                    <field name="group_ids" colspan="4" nolabel="1"/>
                </page>
                </notebook>
            </form>
        </field>
    </record>
    <record model="ir.ui.view" id="view_document_directory_tree">
        <field name="name">document.directory</field>
        <field name="model">document.directory</field>
        <field name="type">tree</field>
        <field name="field_parent">child_ids</field>
        <field name="arch" type="xml">
            <tree string="Directories" toolbar="1">
                <field name="name"/>
                <field name="type"/>
                <field name="user_id"/>
                <field name="create_date"/>
                <field name="write_date"/>
            </tree>
        </field>
    </record>

    <record model="ir.actions.act_window" id="action_document_directory_form">
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">document.directory</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
    </record>
    <menuitem
        name="Document Management/Configuration/Directories"
        action="action_document_directory_form"
        id="menu_document_directories"/>

    <record model="ir.actions.act_window" id="action_document_directory_tree">
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">document.directory</field>
        <field name="view_type">tree</field>
        <field name="domain">[('ressource_parent_type_id','=',False),('parent_id','=',False)]</field>
    </record>
    <menuitem
        name="Document Management/Directorie's Structure"
        action="action_document_directory_tree"
        id="menu_document_directories_tree"/>


    <record model="ir.ui.view" id="view_document_file_form">
        <field name="name">ir.attachment</field>
        <field name="model">ir.attachment</field>
        <field name="priority" eval="1"/>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Files">
                <notebook>
                <page string="Definition">
                    <field name="name" select="1" colspan="4"/>
                    <field name="title" select="1"  colspan="4"/>
                    <newline/>
                    <field name="datas"/>
                    <field name="file_size"/>
                    <newline/>
                    <field name="parent_id"/>
                    <newline/>
                    <field name="user_id"/>
                    <field name="partner_id"/>
                    <newline/>
                    <field name="create_date"/>
                    <field name="create_uid"/>
                    <field name="write_date"/>
                    <field name="write_uid"/>
                </page><page string="Indexed Content">
                    <field name="index_content" nolabel="1" colspan="4" select="1"/>
                </page><page string="Security">
                    <field name="group_ids" colspan="4" nolabel="1"/>
                </page>
                </notebook>
            </form>
        </field>
    </record>
    <record model="ir.ui.view" id="view_document_file_tree">
        <field name="name">ir.attachment</field>
        <field name="model">ir.attachment</field>
        <field name="type">tree</field>
        <field name="priority" eval="1"/>
        <field name="arch" type="xml">
            <tree string="Files">
                <field name="name"/>
                <field name="title" />
                <field name="partner_id"/>
                <field name="file_size"/>
                <field name="user_id"/>
                <field name="write_date"/>
            </tree>
        </field>
    </record>

    <record model="ir.actions.act_window" id="action_document_file_form">
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">ir.attachment</field>
        <field name="view_type">form</field>
    </record>
    <menuitem
        name="Document Management/Search a File"
        action="action_document_file_form"
        id="menu_document_files"/>

    <record model="ir.actions.act_window" id="action_document_file_directory_form">
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">ir.attachment</field>
        <field name="view_type">form</field>
        <field name="domain">[('parent_id','=',active_id)]</field>
    </record><commit_msg>make menu in new way<commit_after><openerp>
<data>
    <menuitem name="Document Management" icon="terp-stock" id="menu_document"/>

    <record model="ir.ui.view" id="view_document_directory_form">
        <field name="name">document.directory</field>
        <field name="model">document.directory</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Directories">
                <notebook>
                <page string="Definition">
                    <field name="name" select="1" colspan="4"/>
                    <field name="user_id"/>
                    <field name="parent_id"/>
                    <separator string="Directory Type" colspan="4"/>
                    <field name="type"/>
                    <field name="ressource_type_id"  on_change="onchange_content_id(ressource_type_id)"/>
                    <newline/>
                    <field name="domain"/>
                    <field name="ressource_tree"/>
                    <field name="ressource_id" select="2"/>
                    <field name="ressource_parent_type_id"/>

                    <separator string="Contents" colspan="4"/>
                    <field name="content_ids" nolabel="1" colspan="4">
                        <form string="Contents">
                            <field name="name"/>
                            <field name="sequence"/>
                            <field name="suffix"/>
                            <field name="extension"/>
                            <field name="report_id" domain="[('model_id','=',parent.ressource_type_id)]"/>
                        </form>
                        <tree string="Contents">
                            <field name="sequence"/>
                            <field name="name"/>
                            <field name="suffix"/>
                            <field name="extension"/>
                            <field name="report_id"/>
                        </tree>
                    </field>
                </page><page string="Security">
                    <field name="group_ids" colspan="4" nolabel="1"/>
                </page>
                </notebook>
            </form>
        </field>
    </record>
    <record model="ir.ui.view" id="view_document_directory_tree">
        <field name="name">document.directory</field>
        <field name="model">document.directory</field>
        <field name="type">tree</field>
        <field name="field_parent">child_ids</field>
        <field name="arch" type="xml">
            <tree string="Directories" toolbar="1">
                <field name="name"/>
                <field name="type"/>
                <field name="user_id"/>
                <field name="create_date"/>
                <field name="write_date"/>
            </tree>
        </field>
    </record>

    <record model="ir.actions.act_window" id="action_document_directory_form">
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">document.directory</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Configuration" id="menu_document_configuration" parent="menu_document"/>
    <menuitem
        name="Directories"
        action="action_document_directory_form"
		id="menu_document_directories"
		parent="menu_document_configuration"/>

    <record model="ir.actions.act_window" id="action_document_directory_tree">
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">document.directory</field>
        <field name="view_type">tree</field>
        <field name="domain">[('ressource_parent_type_id','=',False),('parent_id','=',False)]</field>
    </record>
    <menuitem
        name="Directorie's Structure"
        action="action_document_directory_tree"
		id="menu_document_directories_tree"
		parent="menu_document"/>


    <record model="ir.ui.view" id="view_document_file_form">
        <field name="name">ir.attachment</field>
        <field name="model">ir.attachment</field>
        <field name="priority" eval="1"/>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Files">
                <notebook>
                <page string="Definition">
                    <field name="name" select="1" colspan="4"/>
                    <field name="title" select="1"  colspan="4"/>
                    <newline/>
                    <field name="datas"/>
                    <field name="file_size"/>
                    <newline/>
                    <field name="parent_id"/>
                    <newline/>
                    <field name="user_id"/>
                    <field name="partner_id"/>
                    <newline/>
                    <field name="create_date"/>
                    <field name="create_uid"/>
                    <field name="write_date"/>
                    <field name="write_uid"/>
                </page><page string="Indexed Content">
                    <field name="index_content" nolabel="1" colspan="4" select="1"/>
                </page><page string="Security">
                    <field name="group_ids" colspan="4" nolabel="1"/>
                </page>
                </notebook>
            </form>
        </field>
    </record>
    <record model="ir.ui.view" id="view_document_file_tree">
        <field name="name">ir.attachment</field>
        <field name="model">ir.attachment</field>
        <field name="type">tree</field>
        <field name="priority" eval="1"/>
        <field name="arch" type="xml">
            <tree string="Files">
                <field name="name"/>
                <field name="title" />
                <field name="partner_id"/>
                <field name="file_size"/>
                <field name="user_id"/>
                <field name="write_date"/>
            </tree>
        </field>
    </record>

    <record model="ir.actions.act_window" id="action_document_file_form">
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">ir.attachment</field>
        <field name="view_type">form</field>
    </record>
    <menuitem
        name="Search a File"
        action="action_document_file_form"
		id="menu_document_files"
		parent="menu_document"/>

    <record model="ir.actions.act_window" id="action_document_file_directory_form">
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">ir.attachment</field>
        <field name="view_type">form</field>
        <field name="domain">[('parent_id','=',active_id)]</field>
    </record>
{'fraction_non_alphanumeric': 0.14930003783579265, 'fraction_numerical': 0.003178206583427923, 'mean_word_length': 1.787009700548292, 'pattern_counts': {'":': 0, '<': 338, '<?xml version=': 0, '>': 338, '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': '4717975', 'n_tokens_mistral': 3604, 'n_tokens_neox': 3442, 'n_words': 591}