<commit_before><?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>

        <record id="product_config_category" model="ir.module.category">
            <field name="name">Product Configurator</field>
        </record>

        <record id="group_product_configurator" model="res.groups">
            <field name="name">User</field>
            <field name="category_id" ref="product_config_category"/>
            <field name="implied_ids" eval="[(4, ref('product.group_product_variant'))]"/>
            <field name="users" eval="[(4, ref('base.user_root'))]"/>
        </record>

        <record id="group_product_configurator_manager" model="res.groups">
            <field name="name">Manager</field>
            <field name="category_id" ref="product_configurator.product_config_category"/>
            <field name="implied_ids" eval="[(4, ref('product_configurator.group_product_configurator'))]"/>
            <field name="users" eval="[(4, ref('base.user_root'))]"/>
        </record>

        <!-- Set default to all employees -->
        <record model="res.groups" id="base.group_user">
            <field name="implied_ids" eval="[(4, ref('product_configurator.group_product_configurator'))]"/>
        </record>

    </data>
    <data noupdate="1">
        <record id="configure_product_template_rule_manager" model="ir.rule">
            <field name="name">Configure Product Template Manager</field>
            <field ref="product.model_product_template" name="model_id"/>
            <field name="groups" eval="[(4, ref('group_product_configurator_manager'))]"/>
            <field eval="1" name="perm_read"></field>
            <field eval="1" name="perm_write"></field>
            <field eval="1" name="perm_unlink"></field>
            <field eval="1" name="perm_create"></field>
        </record>

        <record id="configure_product_template_rule_user" model="ir.rule">
            <field name="name">Configure Product Template User (Config Product)</field>
            <field ref="product.model_product_template" name="model_id"/>
            <field name="domain_force">[('config_ok', '=', True)]</field>
            <field name="groups" eval="[(4, ref('product_configurator.group_product_configurator'))]"/>
            <field eval="1" name="perm_read"></field>
            <field eval="0" name="perm_write"></field>
            <field eval="0" name="perm_unlink"></field>
            <field eval="0" name="perm_create"></field>
        </record>

         <record id="configure_product_template_rule_user_standard_product" model="ir.rule">
            <field name="name">Configure Product Template User (Standard Product)</field>
            <field ref="product.model_product_template" name="model_id"/>
            <field name="domain_force">[('config_ok', '=', False)]</field>
            <field name="groups" eval="[(4, ref('product_configurator.group_product_configurator'))]"/>
            <field eval="1" name="perm_read"></field>
            <field eval="1" name="perm_write"></field>
            <field eval="1" name="perm_unlink"></field>
            <field eval="1" name="perm_create"></field>
        </record>

        <record id="configure_product_product_rule_manager" model="ir.rule">
            <field name="name">Configure Product Template Manager</field>
            <field ref="product.model_product_product" name="model_id"/>
            <field name="groups" eval="[(4, ref('group_product_configurator_manager'))]"/>
            <field eval="1" name="perm_read"></field>
            <field eval="1" name="perm_write"></field>
            <field eval="1" name="perm_unlink"></field>
            <field eval="1" name="perm_create"></field>
        </record>

        <record id="configure_product_product_rule_user" model="ir.rule">
            <field name="name">Configure Product Template User</field>
            <field ref="product.model_product_product" name="model_id"/>
            <field name="groups" eval="[(4, ref('product_configurator.group_product_configurator'))]"/>
            <field eval="1" name="perm_read"></field>
            <field eval="1" name="perm_write"></field>
            <field eval="1" name="perm_unlink"></field>
            <field eval="1" name="perm_create"></field>
        </record><commit_msg>[FIX]add domain in record rules<commit_after><?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>

        <record id="product_config_category" model="ir.module.category">
            <field name="name">Product Configurator</field>
        </record>

        <record id="group_product_configurator" model="res.groups">
            <field name="name">User</field>
            <field name="category_id" ref="product_config_category"/>
            <field name="implied_ids" eval="[(4, ref('product.group_product_variant'))]"/>
            <field name="users" eval="[(4, ref('base.user_root'))]"/>
        </record>

        <record id="group_product_configurator_manager" model="res.groups">
            <field name="name">Manager</field>
            <field name="category_id" ref="product_configurator.product_config_category"/>
            <field name="implied_ids" eval="[(4, ref('product_configurator.group_product_configurator'))]"/>
            <field name="users" eval="[(4, ref('base.user_root'))]"/>
        </record>

        <!-- Set default to all employees -->
        <record model="res.groups" id="base.group_user">
            <field name="implied_ids" eval="[(4, ref('product_configurator.group_product_configurator'))]"/>
        </record>

    </data>
    <data noupdate="1">
        <record id="configure_product_template_rule_manager" model="ir.rule">
            <field name="name">Configure Product Template Manager</field>
            <field ref="product.model_product_template" name="model_id"/>
            <field name="domain_force">[('config_ok', '=', True), ("sale_ok", "=", True)]</field>
            <field name="groups" eval="[(4, ref('group_product_configurator_manager'))]"/>
            <field eval="1" name="perm_read"></field>
            <field eval="1" name="perm_write"></field>
            <field eval="1" name="perm_unlink"></field>
            <field eval="1" name="perm_create"></field>
        </record>

        <record id="configure_product_template_rule_user" model="ir.rule">
            <field name="name">Configure Product Template User (Config Product)</field>
            <field ref="product.model_product_template" name="model_id"/>
            <field name="domain_force">[('config_ok', '=', True), ('website_published', '=', True), ("sale_ok", "=", True)]</field>
            <field name="groups" eval="[(4, ref('product_configurator.group_product_configurator'))]"/>
            <field eval="1" name="perm_read"></field>
            <field eval="0" name="perm_write"></field>
            <field eval="0" name="perm_unlink"></field>
            <field eval="0" name="perm_create"></field>
        </record>

         <record id="configure_product_template_rule_user_standard_product" model="ir.rule">
            <field name="name">Configure Product Template User (Standard Product)</field>
            <field ref="product.model_product_template" name="model_id"/>
            <field name="domain_force">[('config_ok', '=', False), ('website_published', '=', True), ("sale_ok", "=", True)]</field>
            <field name="groups" eval="[(4, ref('product_configurator.group_product_configurator'))]"/>
            <field eval="1" name="perm_read"></field>
            <field eval="1" name="perm_write"></field>
            <field eval="1" name="perm_unlink"></field>
            <field eval="1" name="perm_create"></field>
        </record>

        <record id="configure_product_product_rule_manager" model="ir.rule">
            <field name="name">Configure Product Product Manager</field>
            <field ref="product.model_product_product" name="model_id"/>
            <field name="domain_force">[('config_ok', '=', True)]</field>
            <field name="groups" eval="[(4, ref('group_product_configurator_manager'))]"/>
            <field eval="1" name="perm_read"></field>
            <field eval="1" name="perm_write"></field>
            <field eval="1" name="perm_unlink"></field>
            <field eval="1" name="perm_create"></field>
        </record>

        <record id="configure_product_product_rule_user" model="ir.rule">
            <field name="name">Configure Product Product User</field>
            <field ref="product.model_product_product" name="model_id"/>
            <field name="domain_force">[('config_ok', '=', True)]</field>
            <field name="groups" eval="[(4, ref('product_configurator.group_product_configurator'))]"/>
            <field eval="1" name="perm_read"></field>
            <field eval="1" name="perm_write"></field>
            <field eval="1" name="perm_unlink"></field>
            <field eval="1" name="perm_create"></field>
        </record>
{'fraction_non_alphanumeric': 0.17483221476510066, 'fraction_numerical': 0.007606263982102908, 'mean_word_length': 3.152810032512773, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 2, '>': 211, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5523369', 'n_tokens_mistral': 2600, 'n_tokens_neox': 2575, 'n_words': 446}