Skip to content

Commit

Permalink
[IMP] product_configurator: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bizzappdev committed Feb 3, 2025
1 parent c6c0fbd commit f74a867
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 85 deletions.
5 changes: 2 additions & 3 deletions product_configurator/data/menu_configurable_product.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<menuitem
id="menu_product_configurable"
name="Configurator"
Expand Down Expand Up @@ -45,7 +44,8 @@
<field name="res_model">product.product</field>
<field name="view_mode">kanban,form,tree</field>
<field name="search_view_id" ref="product.product_search_form_view" />
<field name="view_id" eval="False" /> <!-- Force empty -->
<field name="view_id" eval="False" />
<!-- Force empty -->
<field
name="context"
>{'default_config_ok': True, 'custom_create_variant': True, 'search_default_filter_config_ok': 1}</field>
Expand Down Expand Up @@ -128,5 +128,4 @@
parent="menu_product_configurable_settings"
sequence="50"
/>

</odoo>
2 changes: 0 additions & 2 deletions product_configurator/data/product_attribute.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<record id="custom_attribute" model="product.attribute">
<field name="name">Custom</field>
<field name="active" eval="False" />
Expand All @@ -11,5 +10,4 @@
<field name="attribute_id" ref="custom_attribute" />
<field name="active" eval="True" />
</record>

</odoo>
2 changes: 0 additions & 2 deletions product_configurator/demo/config_image_ids.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<!-- Image Lines -->

<record id="config_image_1" model="product.config.image">
Expand Down Expand Up @@ -152,5 +151,4 @@
])]"
/>
</record>

</odoo>
3 changes: 0 additions & 3 deletions product_configurator/demo/product_attribute.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<!-- == FUEL == -->

<record id="product_attribute_fuel" model="product.attribute">
Expand Down Expand Up @@ -253,7 +252,6 @@
<field name="product_id" ref="product_2_series_towhook" />
</record>


<!-- == Attribute Lines == -->

<record
Expand Down Expand Up @@ -404,5 +402,4 @@
<field name="required" eval="True" />
<field name="multi" eval="True" />
</record>

</odoo>
6 changes: 0 additions & 6 deletions product_configurator/demo/product_config_domain.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<!-- Configuration Domain and domain Lines -->

<!-- Gasoline Engines -->
Expand Down Expand Up @@ -39,7 +38,6 @@
/>
</record>


<!-- Model Lines -->

<record id="product_config_domain_218_engine" model="product.config.domain">
Expand All @@ -58,9 +56,6 @@
/>
</record>




<record id="product_config_domain_luxury_lines" model="product.config.domain">
<field name="name">Luxury Lines</field>
</record>
Expand All @@ -80,5 +75,4 @@
ref('product_attribute_value_220d_xdrive')])]"
/>
</record>

</odoo>
2 changes: 0 additions & 2 deletions product_configurator/demo/product_config_lines.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<!-- Configuration Restriction Lines -->

<record id="product_config_line_gasoline_engines" model="product.config.line">
Expand Down Expand Up @@ -63,5 +62,4 @@
/>
<field name="domain_id" ref="product_config_domain_luxury_lines" />
</record>

</odoo>
6 changes: 2 additions & 4 deletions product_configurator/demo/product_config_step.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<!-- Configuration Steps -->

<record id="config_step_engine" model="product.config.step">
Expand Down Expand Up @@ -56,7 +55,7 @@
/>
</record>

<record id="2_series_config_step_engine" model="product.config.step.line">
<record id="2_series_config_step_engine" model="product.config.step.line">
<field name="product_tmpl_id" ref="bmw_2_series" />
<field name="config_step_id" ref="config_step_engine" />
<field
Expand All @@ -67,7 +66,7 @@
/>
</record>

<record id="2_series_config_step_extras" model="product.config.step.line">
<record id="2_series_config_step_extras" model="product.config.step.line">
<field name="product_tmpl_id" ref="bmw_2_series" />
<field name="config_step_id" ref="config_step_extras" />
<field
Expand All @@ -77,5 +76,4 @@
ref('product_attribute_line_2_series_options')])]"
/>
</record>

</odoo>
2 changes: 0 additions & 2 deletions product_configurator/demo/product_template.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<!-- Product Category -->

<record id="product_category_bmw" model="product.category">
Expand Down Expand Up @@ -266,5 +265,4 @@
file="product_configurator/static/img/product-paint-silver.jpg"
/>
</record>

</odoo>
2 changes: 0 additions & 2 deletions product_configurator/security/configurator_security.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="product_config_category" model="ir.module.category">
<field name="name">Product Configurator</field>
</record>
Expand Down Expand Up @@ -34,5 +33,4 @@
name="groups_id"
/>
</record>

</odoo>
10 changes: 5 additions & 5 deletions product_configurator/views/product_attribute_view.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<!-- Product Attributes -->

<record id="product_attribute_tree_view" model="ir.ui.view">
Expand Down Expand Up @@ -59,7 +58,6 @@
invisible="not context.get('flag_config_ok') or not val_custom"
groups="product_configurator.group_product_configurator_manager"
>

<group>
<group>
<field name="custom_type" />
Expand Down Expand Up @@ -168,8 +166,11 @@
<div class="oe_left" style="width: 500px;">
<div class="oe_title" style="width: 390px;">
<label class="oe_edit_only" for="name" string="Value" />
<h1><field name="name" class="oe_inline" /></h1>
<label for="active" /><field name="active" />
<h1>
<field name="name" class="oe_inline" />
</h1>
<label for="active" />
<field name="active" />
</div>
</div>
<group>
Expand Down Expand Up @@ -213,5 +214,4 @@
</xpath>
</field>
</record>

</odoo>
6 changes: 3 additions & 3 deletions product_configurator/views/product_config_view.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<!-- Configuration Steps -->

<record id="config_step_form_view" model="ir.ui.view">
Expand Down Expand Up @@ -155,7 +154,9 @@
</header>
<sheet>
<group>
<h1><field name="name" nolabel="1" /></h1>
<h1>
<field name="name" nolabel="1" />
</h1>
</group>
<group>
<field name="product_tmpl_id" />
Expand Down Expand Up @@ -188,5 +189,4 @@
</form>
</field>
</record>

</odoo>
Loading

0 comments on commit f74a867

Please sign in to comment.