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

		<record id="product_variant" model="ir.actions.act_window">
			<field name="name">Product Variants</field>
			<field name="type">ir.actions.act_window</field>
			<field name="res_model">product.product</field>
			<field name="view_type">form</field>
			<field name="view_mode">tree,form</field>
		</record>

		<record id="action_variant_1" model="ir.actions.act_window.view">
			<field eval="1" name="sequence" />
			<field name="view_mode">tree</field>
			<field name="act_window_id" ref="product_variant" />
			<field name="view_id" ref="product.product_variant_tree_view" />
		</record>

		<record id="action_variant_2" model="ir.actions.act_window.view">
			<field eval="2" name="sequence" />
			<field name="view_mode">form</field>
			<field name="act_window_id" ref="product_variant" />
			<field name="view_id" ref="product.product_variant_form_view" />
		</record>

		<record id="product_template" model="ir.actions.act_window">
			<field name="name">Product Templates</field>
			<field name="type">ir.actions.act_window</field>
			<field name="res_model">product.template</field>
			<field name="view_type">form</field>
			<field name="view_mode">tree,form</field>
		</record>

		<menuitem action="product_template" id="menu_template" parent="product.menu_products" />

		<menuitem action="product_variant" id="menu_variant" parent="product.menu_products" />


		<record model="ir.actions.act_window" id="action_dimension_type_form">
			<field name="name">Types</field>
			<field name="res_model">product.variant.dimension.type</field>
			<field name="view_mode">tree,form</field>
		</record>

		<record model="ir.actions.act_window" id="action_dimension_value_form">
			<field name="name">Values</field>
			<field name="res_model">product.variant.dimension.value</field>
			<field name="view_mode">tree,form</field>
		</record>

		<menuitem name="Variant Dimensions" id="menu_variant_dimension" parent="product.menu_config_product" />
		<menuitem name="Dimension Types" icon="STOCK_JUSTIFY_FILL" id="menu_variant_dimension_types" parent="menu_variant_dimension" action="action_dimension_type_form" />
		<menuitem name="Dimension Values" icon="STOCK_JUSTIFY_FILL" id="menu_variant_dimension_values" parent="menu_variant_dimension" action="action_dimension_value_form" />


		<record id="product_variant_multi.variant_value_tree_view" model="ir.ui.view">
			<field name="name">product_variant_multi.variant_value.tree</field>
			<field name="model">product.variant.dimension.value</field>
			<field name="type">tree</field>
			<field name="arch" type="xml">
				<tree string="Variant Value">
					<field name="dimension_id" />
					<field name="name" />
				</tree>
			</field>
		</record>

		<record id="product_variant_multi.variant_value_form_view" model="ir.ui.view">
			<field name="name">product_variant_multi.variant_value.form</field>
			<field name="model">product.variant.dimension.value</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form string="Variant Value">
					<field name="dimension_id" domain="[('product_tmpl_id','=',context.get('product_tmpl_id',False))]"/>
					<field name="name" />
					<field name="sequence" />
					<field name="price_extra" />
					<field name="price_margin" />
				</form>
			</field>
		</record>

		<record id="product_variant_multi.variant_type_tree_view" model="ir.ui.view">
			<field name="name">product_variant_multi.variant_type.tree</field>
			<field name="model">product.variant.dimension.type</field>
			<field name="type">tree</field>
			<field name="arch" type="xml">
				<tree string="Variant Type">
					<field name="product_tmpl_id" />
					<field name="name" />
					<field name="value_ids" />
				</tree>
			</field>
		</record>

		<record id="product_variant_multi.variant_type_form_view" model="ir.ui.view">
			<field name="name">product_variant_multi.variant_type.form</field>
			<field name="model">product.variant.dimension.type</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form string="Variant Type">
					<field name="product_tmpl_id" />
					<field name="name" />
					<field name="sequence" />
					<field name="allow_custom_value" />
					<field name="value_ids">
						<tree string="Variant Value" editable="bottom">
							<field name="name" />
							<field name="sequence" />
							<field name="price_extra" />
							<field name="price_margin" />
						</tree>
						<form string="Variant Value">
							<field name="name" />
							<field name="sequence" />
							<field name="price_extra" />
							<field name="price_margin" />
						</form>
					</field>
				</form>
			</field>
		</record>

		<record id="product_variant_multi.product_template_form_view" model="ir.ui.view">
			<field name="name">product_variant_multi.product.template.form</field>
			<field name="model">product.template</field>
			<field name="type">form</field>
			<field name="inherit_id" ref="product.product_template_form_view" />
			<field name="arch" type="xml">
				<xpath expr="/form/notebook" position="inside">
					<page string="Variants">
						<field name="dimension_type_ids" widget="one2many_list" nolabel="1">
							<tree string="Dimension types" editable="bottom">
								<field name="name" />
								<field name="allow_custom_value" />
							</tree>
							<form string="Variant Type">
								<field name="name" />
								<field name="sequence" />
								<field name="allow_custom_value" />
								<field name="value_ids">
									<tree string="Variant Value" editable="bottom">
										<field name="name" />
										<field name="sequence" />
										<field name="price_extra" />
										<field name="price_margin" />
									</tree>
									<form string="Variant Value">
										<field name="name" />
										<field name="sequence" />
										<field name="price_extra" />
										<field name="price_margin" />
									</form>
								</field>
							</form>
						</field>
						<field name="variant_ids" string="Variants" nolabel="1">
							<tree string="Variants">
								<field name="code" />
								<field name="name" />
								<field name="variants" string="Dimension Values" />
							</tree>
						</field>
						<button name="button_generate_variants" string="Generate" type="object" />
					</page>
				</xpath>
			</field>
		</record>

		<record id="product_variant_multi.product_product_form_view" model="ir.ui.view">
			<field name="name">product_variant_multi.product.product.form</field>
			<field name="model">product.product</field>
			<field name="type">form</field>
			<field name="inherit_id" ref="product.product_variant_form_view" />
			<field name="arch" type="xml">
				<field name="price_extra" position="after">
					<field name="dimension_value_ids" context="{'product_tmpl_id':product_tmpl_id}"/>
				</field>
			</field>
		</record>
	</data>
</openerp><commit_msg>added_file (../trunk-extra-addons rev 3364)<commit_after><?xml version="1.0" ?>
<openerp>
    <data>

        <record id="product_variant" model="ir.actions.act_window">
            <field name="name">Product Variants</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.product</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
        <record id="action_variant_1" model="ir.actions.act_window.view">
            <field eval="1" name="sequence"/>
            <field name="view_mode">tree</field>
            <field name="act_window_id" ref="product_variant"/>
            <field name="view_id" ref="product.product_variant_tree_view"/>
        </record>
        <record id="action_variant_2" model="ir.actions.act_window.view">
            <field eval="2" name="sequence"/>
            <field name="view_mode">form</field>
            <field name="act_window_id" ref="product_variant"/>
            <field name="view_id" ref="product.product_variant_form_view"/>
        </record>

        <record id="product_template" model="ir.actions.act_window">
            <field name="name">Product Templates</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.template</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>

        <menuitem
            action="product_template"
            id="menu_template"
            parent="product.menu_products"/>

        <menuitem
            action="product_variant"
            id="menu_variant"
            parent="product.menu_products"/>


    </data>
</openerp>

{'fraction_non_alphanumeric': 0.16659017898118403, 'fraction_numerical': 0.002179899036255163, 'mean_word_length': 3.656517094017094, 'pattern_counts': {'":': 0, '<': 250, '<?xml version=': 2, '>': 250, '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': '2759486', 'n_tokens_mistral': 3330, 'n_tokens_neox': 2737, 'n_words': 438}