<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="group_document_editor" model="res.groups">
        <field name="name">Editor</field>
        <field name="category_id" ref="document_knowledge.module_category_knowledge" />
        <field
            name="implied_ids"
            eval="[(4, ref('document_knowledge.group_document_user'))]"
        />
    </record>
    <record id="group_document_manager" model="res.groups">
        <field name="name">Manager</field>
        <field name="category_id" ref="document_knowledge.module_category_knowledge" />
        <field name="implied_ids" eval="[(4, ref('group_document_editor'))]" />
        <field name="users" eval="[(4, ref('base.user_admin'))]" />
    </record>
    <record model="ir.rule" id="document_page_rule">
        <field name="name">document_page multi-company</field>
        <field name="model_id" ref="model_document_page" />
        <field name="global" eval="True" />
        <field
            name="domain_force"
        >['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
    </record>
    <record model="ir.rule" id="document_page_history_rule">
        <field name="name">document_page_history multi-company</field>
        <field name="model_id" ref="model_document_page_history" />
        <field name="global" eval="True" />
        <field
            name="domain_force"
        >['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
    </record>
</odoo>
