<commit_before><?xml version="1.0"?>
<openerp>
    <data>



        <!-- MEMBERSHIP -->

        <!-- MEMBERSHIP/MEMBERSHIP PRODUCTS -->

        <record model="ir.ui.view" id="membership_product_search_form_view">
            <field name="name">membership.product.search.form</field>
            <field name="model">product.product</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Membership Products">
                   <filter string="Inactive" icon="terp-gdu-smart-failing" domain="[('active','=',0)]"/>
                   <separator orientation="vertical"/>
                   <field name="code"/>
                   <field name="name"/>
                   <field name="categ_id" widget="selection" operator="child_of"/>
                   <newline/>
                   <group  expand='0' string='Group by...' groups="base.group_extended">
                       <filter string='Category' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'categ_id'}" />
                       <separator orientation="vertical"/>
                       <filter string='Date From' icon="terp-go-month" domain="[]" context="{'group_by' : 'membership_date_from'}" />
                   </group>
                </search>
            </field>
        </record>

        <record model="ir.ui.view" id="membership_products_tree">
            <field name="name">Membership products</field>
            <field name="model">product.product</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Membership products">
                    <field name="code"/>
                    <field name="name"/>
                    <field name="membership_date_from"/>
                    <field name="membership_date_to"/>
                    <field name="list_price" string="Membership Fee"/>
                    <field name="categ_id" invisible="1"/>
                    <field name="uom_id" invisible="1"/>
                    <field name="type" invisible="1"/>
                </tree>
            </field>
        </record>

        <record model="ir.ui.view" id="membership_products_form">
            <field name="name">Membership Products</field>
            <field name="model">product.product</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Membership products">
                  <group col="6">
                      <field name="name"/>
                      <field name="default_code"/>
                      <field name="active"/>
                      <field name="membership" invisible="1"/>
                      <field name="membership_date_from" required="1"/>
                      <field name="membership_date_to" required="1"/>
                      <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                    </group>
                    <notebook colspan="4">
                      <page string="General">
                        <separator string="Accounting Info" colspan="2"/>
                        <separator string="Categorization" colspan="2"/>
                        <field name="list_price" string="Membership Fee"/>
                        <field name="type" />
                        <field name="property_account_income" domain="[('type', '!=', 'view')]"/>
                        <field name="categ_id"/>
                        <separator string="Sale Taxes" colspan="2"/>
                        <newline/>
                        <field name="taxes_id" nolabel="1" colspan="4"/>
                      </page>
                      <page string="Description">
                            <separator string="Description"/>
                            <field colspan="4" name="description" nolabel="1"/>
                            <separator string="Sale Description"/>
                            <field colspan="4" name="description_sale" nolabel="1"/>
                            <separator string="Purchase Description"/>
                            <field colspan="4" name="description_purchase" nolabel="1"/>
                      </page>
                    </notebook>
                </form>
            </field>
        </record>

        <record model="ir.ui.view" id="product_normal_form_view">
            <field name="name">Membership Products</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_normal_form_view"/>
            <field name="arch" type="xml">
                <page string="Information" position="after">
                    <page string="Membership">
                        <field name="membership" readonly="0"/>
                        <newline/>
                        <field name="membership_date_from" readonly="0" attrs="{'required':[('membership','=',True)]}"/>
                        <field name="membership_date_to" readonly="0" attrs="{'required':[('membership','=',True)]}"/>
                    </page>
                </page>
            </field>
        </record>

        <record model="ir.actions.act_window" id="action_membership_products">
            <field name="name">Membership Products</field>
            <field name="res_model">product.product</field>
            <field name="domain">[('membership','=',True), ('type', '=', 'service')]</field>
            <field name="context">{'membership':True, 'type':'service'}</field>
            <field name="search_view_id" ref="membership_product_search_form_view"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_membership_product_view_tree">
            <field name="sequence" eval="1"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="membership_products_tree"/>
            <field name="act_window_id" ref="action_membership_products"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_membership_product_view_form">
            <field name="sequence" eval="2"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="membership_products_form"/>
            <field name="act_window_id" ref="action_membership_products"/>
        </record>

        <menuitem name="Association" id="base.menu_association" icon="terp-calendar" sequence="9"/>
        <menuitem name="Membership" id="menu_membership" sequence="0" parent="base.menu_association"/>
        <menuitem name="Configuration" id="base.menu_marketing_config_association"
            parent="base.menu_association" sequence="30" groups="base.group_extended"/>


        <menuitem name="Membership Products"
                  parent="base.menu_marketing_config_association"
                  id="menu_membership_products"
                  action="action_membership_products"
                  sequence="1"
                  groups="base.group_partner_manager"/><commit_msg>[FIX] default values for membership products<commit_after><?xml version="1.0"?>
<openerp>
    <data>



        <!-- MEMBERSHIP -->

        <!-- MEMBERSHIP/MEMBERSHIP PRODUCTS -->

        <record model="ir.ui.view" id="membership_product_search_form_view">
            <field name="name">membership.product.search.form</field>
            <field name="model">product.product</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Membership Products">
                   <filter string="Inactive" icon="terp-gdu-smart-failing" domain="[('active','=',0)]"/>
                   <separator orientation="vertical"/>
                   <field name="code"/>
                   <field name="name"/>
                   <field name="categ_id" widget="selection" operator="child_of"/>
                   <newline/>
                   <group  expand='0' string='Group by...' groups="base.group_extended">
                       <filter string='Category' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'categ_id'}" />
                       <separator orientation="vertical"/>
                       <filter string='Date From' icon="terp-go-month" domain="[]" context="{'group_by' : 'membership_date_from'}" />
                   </group>
                </search>
            </field>
        </record>

        <record model="ir.ui.view" id="membership_products_tree">
            <field name="name">Membership products</field>
            <field name="model">product.product</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Membership products">
                    <field name="code"/>
                    <field name="name"/>
                    <field name="membership_date_from"/>
                    <field name="membership_date_to"/>
                    <field name="list_price" string="Membership Fee"/>
                    <field name="categ_id" invisible="1"/>
                    <field name="uom_id" invisible="1"/>
                    <field name="type" invisible="1"/>
                </tree>
            </field>
        </record>

        <record model="ir.ui.view" id="membership_products_form">
            <field name="name">Membership Products</field>
            <field name="model">product.product</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Membership products">
                  <group col="6">
                      <field name="name"/>
                      <field name="default_code"/>
                      <field name="active"/>
                      <field name="membership" invisible="1"/>
                      <field name="membership_date_from" required="1"/>
                      <field name="membership_date_to" required="1"/>
                      <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                    </group>
                    <notebook colspan="4">
                      <page string="General">
                        <separator string="Accounting Info" colspan="2"/>
                        <separator string="Categorization" colspan="2"/>
                        <field name="list_price" string="Membership Fee"/>
                        <field name="type" />
                        <field name="property_account_income" domain="[('type', '!=', 'view')]"/>
                        <field name="categ_id"/>
                        <separator string="Sale Taxes" colspan="2"/>
                        <newline/>
                        <field name="taxes_id" nolabel="1" colspan="4"/>
                      </page>
                      <page string="Description">
                            <separator string="Description"/>
                            <field colspan="4" name="description" nolabel="1"/>
                            <separator string="Sale Description"/>
                            <field colspan="4" name="description_sale" nolabel="1"/>
                            <separator string="Purchase Description"/>
                            <field colspan="4" name="description_purchase" nolabel="1"/>
                      </page>
                    </notebook>
                </form>
            </field>
        </record>

        <record model="ir.ui.view" id="product_normal_form_view">
            <field name="name">Membership Products</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_normal_form_view"/>
            <field name="arch" type="xml">
                <page string="Information" position="after">
                    <page string="Membership">
                        <field name="membership" readonly="0"/>
                        <newline/>
                        <field name="membership_date_from" readonly="0" attrs="{'required':[('membership','=',True)]}"/>
                        <field name="membership_date_to" readonly="0" attrs="{'required':[('membership','=',True)]}"/>
                    </page>
                </page>
            </field>
        </record>

        <record model="ir.actions.act_window" id="action_membership_products">
            <field name="name">Membership Products</field>
            <field name="res_model">product.product</field>
            <field name="domain">[('membership','=',True), ('type', '=', 'service')]</field>
            <field name="context">{'membership':True, 'type':'service', 'default_membership': True, 'default_type': 'service'}</field>
            <field name="search_view_id" ref="membership_product_search_form_view"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_membership_product_view_tree">
            <field name="sequence" eval="1"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="membership_products_tree"/>
            <field name="act_window_id" ref="action_membership_products"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_membership_product_view_form">
            <field name="sequence" eval="2"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="membership_products_form"/>
            <field name="act_window_id" ref="action_membership_products"/>
        </record>

        <menuitem name="Association" id="base.menu_association" icon="terp-calendar" sequence="9"/>
        <menuitem name="Membership" id="menu_membership" sequence="0" parent="base.menu_association"/>
        <menuitem name="Configuration" id="base.menu_marketing_config_association"
            parent="base.menu_association" sequence="30" groups="base.group_extended"/>


        <menuitem name="Membership Products"
                  parent="base.menu_marketing_config_association"
                  id="menu_membership_products"
                  action="action_membership_products"
                  sequence="1"
                  groups="base.group_partner_manager"/>
{'fraction_non_alphanumeric': 0.1464068897359876, 'fraction_numerical': 0.004659042778483694, 'mean_word_length': 1.837940705128205, 'pattern_counts': {'":': 0, '<': 275, '<?xml version=': 2, '>': 275, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '2121668', 'n_tokens_mistral': 3718, 'n_tokens_neox': 3532, 'n_words': 622}