Skip to content

Commit

Permalink
[ADD] car_rental: added the products and other updated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrs-odoo committed Jul 16, 2024
1 parent f552f02 commit 48908da
Show file tree
Hide file tree
Showing 22 changed files with 446 additions and 364 deletions.
11 changes: 7 additions & 4 deletions car_rental/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
'base_automation',
'knowledge',
'payment_demo',
'project_timesheet',
'project',
'timesheet_grid',
'purchase_stock',
'sale_management',
'web_studio',
Expand All @@ -24,19 +25,21 @@
'data/ir_actions_server.xml',
'data/ir_ui_view.xml',
'data/ir_attachment_pre.xml',
'data/product_category.xml',
'data/project_project.xml',
'data/product_template.xml',
'data/product_attribute.xml',
'data/product_attribute_value.xml',
'data/product_template_attribute_line.xml',
'data/product_template_attribute_value.xml',
'data/product_category.xml',
'data/product_product.xml',
'data/res_config_settings.xml',
'data/knowledge_cover.xml',
'data/knowledge_article.xml',
'data/payment_provider_demo.xml',
'data/ir_attachment_post.xml',
'data/website_view.xml',
'data/website_theme_apply.xml',
'data/ir_model_data.xml',
'data/mail_message.xml',
],
'demo': [
Expand All @@ -59,7 +62,7 @@
'demo/sale_order_post.xml',
'demo/purchase_order_line_post.xml',
'demo/website_ir_attachment.xml',
'demo/payment_provider_demo.xml',
'demo/payment_provider_demo_post.xml',
'demo/website_view.xml',
'demo/website_theme_apply.xml',
],
Expand Down
9 changes: 9 additions & 0 deletions car_rental/data/ir_model_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="cloc_exclude_website_view" model="ir.model.data">
<field name="name">cloc_exclude_website_view</field>
<field name="model">ir.ui.view</field>
<field name="module">__cloc_exclude__</field>
<field name="res_id" eval="ref('contactus')"/>
</record>
</odoo>
7 changes: 0 additions & 7 deletions car_rental/data/payment_provider_demo.xml

This file was deleted.

15 changes: 15 additions & 0 deletions car_rental/data/product_category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="product_category_1" model="product.category">
<field name="name">Sedan</field>
<field name="parent_id" ref="product.product_category_all"/>
</record>
<record id="product_category_2" model="product.category">
<field name="name">SUV</field>
<field name="parent_id" ref="product.product_category_all"/>
</record>
<record id="product_category_3" model="product.category">
<field name="name">hatchback</field>
<field name="parent_id" ref="product.product_category_all"/>
</record>
</odoo>
60 changes: 60 additions & 0 deletions car_rental/data/product_product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,64 @@
<field name="purchase_method">purchase</field>
<field name="default_code">RENTAL</field>
</record>
<record id="product_product_17" model="product.product">
<field name="name">Audi/A5/HJU47634</field>
<field name="detailed_type">product</field>
<field name="categ_id" ref="product_category_1"/>
<field name="image_1920" type="base64" file="car_rental/static/src/binary/product_template/10-image_1920.png"/>
</record>
<record id="product_product_18" model="product.product">
<field name="name">Opel/Agila/KL6464t6</field>
<field name="detailed_type">product</field>
<field name="categ_id" ref="product_category_3"/>
<field name="image_1920" type="base64" file="car_rental/static/src/binary/product_template/11-image_1920.png"/>
</record>
<record id="product_product_19" model="product.product">
<field name="name">Audi/A1/GJ/987656</field>
<field name="detailed_type">product</field>
<field name="categ_id" ref="product_category_3"/>
<field name="image_1920" type="base64" file="car_rental/static/src/binary/product_template/14-image_1920.png"/>
</record>
<record id="product_product_20" model="product.product">
<field name="name">Audi/A5/GJ657863</field>
<field name="detailed_type">product</field>
<field name="categ_id" ref="product_category_1"/>
<field name="image_1920" type="base64" file="car_rental/static/src/binary/product_template/4-image_1920"/>
</record>
<record id="product_product_21" model="product.product">
<field name="name">Audi/A5/KGF62652</field>
<field name="detailed_type">product</field>
<field name="categ_id" ref="product_category_1"/>
<field name="image_1920" type="base64" file="car_rental/static/src/binary/product_template/5-image_1920"/>
</record>
<record id="product_product_22" model="product.product">
<field name="name">Mercedes/Class M/JK46556</field>
<field name="detailed_type">product</field>
<field name="categ_id" ref="product_category_2"/>
<field name="image_1920" type="base64" file="car_rental/static/src/binary/product_template/6-image_1920.png"/>
</record>
<record id="product_product_23" model="product.product">
<field name="name">Audi/A3/Mh47535H</field>
<field name="detailed_type">product</field>
<field name="categ_id" ref="product_category_1"/>
<field name="image_1920" type="base64" file="car_rental/static/src/binary/product_template/7-image_1920.jpg"/>
</record>
<record id="product_product_24" model="product.product">
<field name="name">Hyundai/i20/DG6864464</field>
<field name="detailed_type">product</field>
<field name="categ_id" ref="product_category_3"/>
<field name="image_1920" type="base64" file="car_rental/static/src/binary/product_template/12-image_1920.png"/>
</record>
<record id="product_product_25" model="product.product">
<field name="name">Toyota/Fortuner/GJU685657</field>
<field name="detailed_type">product</field>
<field name="categ_id" ref="product_category_2"/>
<field name="image_1920" type="base64" file="car_rental/static/src/binary/product_template/9-image_1920.png"/>
</record>
<record id="product_product_26" model="product.product">
<field name="name">Hyundai/Creta/GJ567655</field>
<field name="detailed_type">product</field>
<field name="categ_id" ref="product_category_2"/>
<field name="image_1920" type="base64" file="car_rental/static/src/binary/product_template/8-image_1920.png"/>
</record>
</odoo>
7 changes: 7 additions & 0 deletions car_rental/data/website_theme_apply.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<function name="write" model="ir.ui.view">
<value model="ir.ui.view" eval="obj().env['website'].with_context(website_id=obj().env.ref('website.default_website').id).viewref('website.contactus').id"/>
<value model="ir.ui.view" eval="{'arch': obj().env.ref('car_rental.contactus').arch}"/>
</function>
</odoo>
Loading

0 comments on commit 48908da

Please sign in to comment.