-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] electronic_store: Electronic Store
This module provides essential features to manage an electronic store. It includes product categories, products, sales orders, and more for electronic products. Task - 3460473
- Loading branch information
Showing
99 changed files
with
3,149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
'name': 'Electronic Store', | ||
'version': '1.0', | ||
'category': 'Retail', | ||
'description': """ | ||
This module provides essential features to manage an electronic store. | ||
It includes product categories, products, sales orders, and more for electronic products. | ||
""", | ||
'depends': [ | ||
'crm', | ||
'documents_fsm', | ||
'documents_project_sale', | ||
'helpdesk_account', | ||
'helpdesk_repair', | ||
'industry_fsm_sale_report', | ||
'industry_fsm_stock', | ||
'knowledge', | ||
'payment_demo', | ||
'product_expiry', | ||
'purchase_stock', | ||
'stock_barcode', | ||
'sale_management', | ||
'sale_purchase', | ||
'web_studio', | ||
'website_sale', | ||
'theme_buzzy', | ||
], | ||
'data': [ | ||
'data/helpdesk_config.xml', | ||
'data/res_config_settings.xml', | ||
'data/ir_attachment_pre.xml', | ||
'data/ir_model.xml', | ||
'data/ir_model_fields.xml', | ||
'data/ir_ui_view.xml', | ||
'data/ir_actions_act_window.xml', | ||
'data/ir_model_access.xml', | ||
'data/ir_rule.xml', | ||
'data/product_public_category.xml', | ||
'data/documents_folder.xml', | ||
'data/product_category.xml', | ||
'data/worksheet_template.xml', | ||
'data/project_project.xml', | ||
'data/product_product.xml', | ||
'data/payment_provider_demo.xml', | ||
'data/sale_order_template.xml', | ||
'data/sale_order_template_line.xml', | ||
'data/knowledge_cover.xml', | ||
'data/knowledge_article.xml', | ||
'data/knowledge_article_favorite.xml', | ||
'data/mail_message.xml', | ||
'data/ir_model_data.xml', | ||
], | ||
'demo': [ | ||
'demo/res_partner.xml', | ||
'demo/account_analytic_plan.xml', | ||
'demo/account_analytic_account.xml', | ||
'demo/helpdesk_ticket.xml', | ||
'demo/repair_order.xml', | ||
'demo/website_ir_attachment.xml', | ||
'demo/website.xml', | ||
'demo/crm_lead.xml', | ||
'demo/product_supplierinfo.xml', | ||
'demo/purchase_order.xml', | ||
'demo/purchase_order_line.xml', | ||
'demo/sale_order.xml', | ||
'demo/sale_order_line.xml', | ||
'demo/website_view.xml', | ||
'demo/website_page.xml', | ||
'demo/website_menu.xml', | ||
'demo/stock_lot.xml', | ||
'demo/stock_warehouse.xml', | ||
'demo/purchase_order_post.xml', | ||
'demo/sale_order_post.xml', | ||
'demo/crm_lead_post.xml', | ||
'demo/website_theme_apply.xml', | ||
'demo/x_worksheet_template.xml', | ||
'demo/payment_provider_demo.xml' | ||
], | ||
'license': 'OPL-1', | ||
'images': ['images/main.png'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<odoo noupdate="1"> | ||
<record id="documents_folder_7" model="documents.folder"> | ||
<field name="name">Air Conditioner Installation</field> | ||
<field name="parent_folder_id" ref="documents_project.documents_project_folder"/> | ||
</record> | ||
<record id="documents_folder_10" model="documents.folder"> | ||
<field name="name">Refrigerator Installation</field> | ||
<field name="parent_folder_id" ref="documents_project.documents_project_folder"/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<odoo noupdate="1"> | ||
<record id="helpdesk.helpdesk_team1" model="helpdesk.team"> | ||
<field name="use_credit_notes" eval="True"/> | ||
<field name="use_product_returns" eval="True"/> | ||
<field name="use_product_repairs" eval="True"/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<odoo> | ||
<record id="x_project_task_worksheet_template_1_ir_actions_act_window_1" model="ir.actions.act_window"> | ||
<field name="name">Worksheets</field> | ||
<field name="res_model">x_project_task_worksheet_template_1_studio</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<odoo noupdate="1"> | ||
<record id="ir_attachment_749" model="ir.attachment"> | ||
<field name="name">Cover page.jpg</field> | ||
<field name="datas" type="base64" file="electronic_store/static/src/binary/ir_attachment/749-Coverpage.jpg"/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<odoo> | ||
<record id="x_project_task_worksheet_template_1_ir_model_1" model="ir.model"> | ||
<field name="name">Default Worksheet</field> | ||
<field name="model">x_project_task_worksheet_template_1_studio</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<odoo> | ||
<record id="ir_model_access_1320" model="ir.model.access"> | ||
<field name="name">x_project_task_worksheet_template_1_user_access</field> | ||
<field name="model_id" ref="x_project_task_worksheet_template_1_ir_model_1"/> | ||
<field name="group_id" ref="project.group_project_user"/> | ||
<field name="perm_create" eval="True"/> | ||
<field name="perm_read" eval="True"/> | ||
<field name="perm_unlink" eval="True"/> | ||
<field name="perm_write" eval="True"/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_worksheet_template_1" model="ir.model.data"> | ||
<field name="name">cloc_exclude_worksheet_template_1</field> | ||
<field name="model">ir.ui.view</field> | ||
<field name="module">__cloc_exclude__</field> | ||
<field name="res_id" eval="ref('report_custom_x_project_task_worksheet_template_1')"/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<odoo> | ||
<record id="field_installation_date" model="ir.model.fields"> | ||
<field name="name">x_installation_date</field> | ||
<field name="field_description">Installation Date</field> | ||
<field name="model_id" ref="x_project_task_worksheet_template_1_ir_model_1"/> | ||
<field name="ttype">datetime</field> | ||
</record> | ||
<record id="field_service_engineeres" model="ir.model.fields"> | ||
<field name="name">x_service_engineers</field> | ||
<field name="field_description">Service Engineers</field> | ||
<field name="model_id" ref="x_project_task_worksheet_template_1_ir_model_1"/> | ||
<field name="ttype">char</field> | ||
<field name="readonly" eval="True"/> | ||
</record> | ||
<record id="x_comments_remarks_record" model="ir.model.fields"> | ||
<field name="name">x_comments</field> | ||
<field name="field_description">Remarks</field> | ||
<field name="model_id" ref="x_project_task_worksheet_template_1_ir_model_1"/> | ||
<field name="ttype">html</field> | ||
</record> | ||
<record id="x_project_task_record" model="ir.model.fields"> | ||
<field name="name">x_project_task_id</field> | ||
<field name="field_description">Task</field> | ||
<field name="model_id" ref="x_project_task_worksheet_template_1_ir_model_1"/> | ||
<field name="on_delete">cascade</field> | ||
<field name="relation">project.task</field> | ||
<field name="required" eval="True"/> | ||
<field name="ttype">many2one</field> | ||
</record> | ||
<record id="x_name_record" model="ir.model.fields"> | ||
<field name="name">x_name</field> | ||
<field name="field_description">Name</field> | ||
<field name="model_id" ref="x_project_task_worksheet_template_1_ir_model_1"/> | ||
<field name="related">x_project_task_id.name</field> | ||
<field name="ttype">char</field> | ||
</record> | ||
<record id="field_products_id_worksheet_template" model="ir.model.fields"> | ||
<field name="name">x_products</field> | ||
<field name="field_description">Products on Tasks</field> | ||
<field name="model_id" ref="x_project_task_worksheet_template_1_ir_model_1"/> | ||
<field name="ttype">boolean</field> | ||
<field name="related">x_project_task_id.allow_material</field> | ||
</record> | ||
<record id="field_related_field_warranty_date" model="ir.model.fields"> | ||
<field name="name">x_warranty_date</field> | ||
<field name="field_description">Warranty Date </field> | ||
<field name="model_id" ref="helpdesk.model_helpdesk_ticket"/> | ||
<field name="ttype">datetime</field> | ||
<field name="related">lot_id.expiration_date</field> | ||
</record> | ||
<record id="field_type_of_installation" model="ir.model.fields"> | ||
<field name="name">x_type_of_installation</field> | ||
<field name="field_description">Type of Installation</field> | ||
<field name="model_id" ref="x_project_task_worksheet_template_1_ir_model_1"/> | ||
<field name="ttype">selection</field> | ||
<field name="selection">[('air_conditioner', 'Air Conditioner'), ('refrigerator', 'Refrigerator')]</field> | ||
</record> | ||
<record id="field_makemodel" model="ir.model.fields"> | ||
<field name="name">x_makemodel</field> | ||
<field name="field_description">Model Number</field> | ||
<field name="model_id" ref="x_project_task_worksheet_template_1_ir_model_1"/> | ||
<field name="ttype">char</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="ir_rule_350" model="ir.rule"> | ||
<field name="name">x_project_task_worksheet_template_1_own</field> | ||
<field name="model_id" ref="x_project_task_worksheet_template_1_ir_model_1"/> | ||
<field name="domain_force">[('create_uid', '=', user.id)]</field> | ||
<field name="groups" eval="[(6, 0, [ref('project.group_project_user')])]"/> | ||
</record> | ||
<record id="ir_rule_351" model="ir.rule"> | ||
<field name="name">x_project_task_worksheet_template_1_all</field> | ||
<field name="model_id" ref="x_project_task_worksheet_template_1_ir_model_1"/> | ||
<field name="domain_force">[(1, '=', 1)]</field> | ||
<field name="groups" eval="[(6, 0, [ref('project.group_project_manager'), ref('industry_fsm.group_fsm_user')])]"/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<odoo> | ||
<record id="report_custom_x_project_task_worksheet_template_1" model="ir.ui.view"> | ||
<field name="name">x_project_task_worksheet_template_1_studio</field> | ||
<field name="type">qweb</field> | ||
<field name="arch" type="xml"> | ||
<t t-name="x_project_task_worksheet_template_1"> | ||
<div> | ||
<div class="row mb-3" style="page-break-inside: avoid"> | ||
<div t-att-class="('col-5' if report_type == 'pdf' else 'col-lg-5 col-12') + ' font-weight-bold'">Type of Installation</div> | ||
<div string="Type of Installation" t-att-class="'col-7' if report_type == 'pdf' else 'col-lg-7 col-12'" t-field="worksheet.x_type_of_installation"/> | ||
</div> | ||
<div class="row mb-3" style="page-break-inside: avoid"> | ||
<div t-att-class="('col-5' if report_type == 'pdf' else 'col-lg-5 col-12') + ' font-weight-bold'">Model Number</div> | ||
<div string="Model Number" t-att-class="'col-7' if report_type == 'pdf' else 'col-lg-7 col-12'" t-field="worksheet.x_makemodel"/> | ||
</div> | ||
<div class="row mb-3" style="page-break-inside: avoid"> | ||
<div t-att-class="('col-5' if report_type == 'pdf' else 'col-lg-5 col-12') + ' font-weight-bold'">Products</div> | ||
<i string="Products" modifiers="{'readonly': true}" t-att-class="'col-lg-7 col-12 fa ' + ('fa-check-square' if worksheet.x_products else 'fa-square-o')"/> | ||
</div> | ||
<div class="row mb-3" style="page-break-inside: avoid"> | ||
<div t-att-class="('col-5' if report_type == 'pdf' else 'col-lg-5 col-12') + ' font-weight-bold'">Installation Date</div> | ||
<div string="Installation Date" t-att-class="'col-7' if report_type == 'pdf' else 'col-lg-7 col-12'" t-field="worksheet.x_installation_date"/> | ||
</div> | ||
<div class="row mb-3" style="page-break-inside: avoid"> | ||
<div t-att-class="('col-5' if report_type == 'pdf' else 'col-lg-5 col-12') + ' font-weight-bold'">Service Engineer</div> | ||
<div string="Service Engineers" modifiers="{'readonly': true}" t-att-class="'col-7' if report_type == 'pdf' else 'col-lg-7 col-12'" t-field="worksheet.x_service_engineers"/> | ||
</div> | ||
<div class="row mb-3" style="page-break-inside: avoid"> | ||
<div t-att-class="('col-5' if report_type == 'pdf' else 'col-lg-5 col-12') + ' font-weight-bold'">Comments</div> | ||
<div placeholder="Add details about your intervention..." t-att-class="'col-7' if report_type == 'pdf' else 'col-lg-7 col-12'" t-field="worksheet.x_comments"/> | ||
</div> | ||
</div> | ||
</t> | ||
</field> | ||
</record> | ||
<record id="helpdesk_ticket_form_view" model="ir.ui.view"> | ||
<field name="name">helpdesk.ticket.form.customization</field> | ||
<field name="type">form</field> | ||
<field name="model">helpdesk.ticket</field> | ||
<field name="mode">extension</field> | ||
<field name="priority">800</field> | ||
<field name="inherit_id" ref="helpdesk.helpdesk_ticket_view_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='suitable_product_ids']" position="after"> | ||
<field name="x_warranty_date"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
<record id="product_template_form_view" model="ir.ui.view"> | ||
<field name="name">product.template.product.form.customization</field> | ||
<field name="type">form</field> | ||
<field name="model">product.template</field> | ||
<field name="mode">extension</field> | ||
<field name="priority">160</field> | ||
<field name="inherit_id" ref="product.product_template_only_form_view"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='default_code']" position="attributes"> | ||
<attribute name="string">Model Number</attribute> | ||
</xpath> | ||
<xpath expr="//field[@name='expiration_time']" position="attributes"> | ||
<attribute name="string">Warranty Date</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
<record id="x_project_task_worksheet_template_1_ir_ui_view_1" model="ir.ui.view"> | ||
<field name="name">template_view_Default_Worksheet</field> | ||
<field name="type">form</field> | ||
<field name="model">x_project_task_worksheet_template_1_studio</field> | ||
<field name="arch" type="xml"> | ||
<form create="false" duplicate="false"> | ||
<sheet> | ||
<h1 invisible="context.get('default_x_project_task_id')"> | ||
<field name="x_project_task_id"/> | ||
</h1> | ||
<group> | ||
<field name="x_type_of_installation"/> | ||
<field name="x_makemodel"/> | ||
<field name="x_products"/> | ||
<field name="x_installation_date"/> | ||
<field name="x_service_engineers"/> | ||
<field name="x_comments" placeholder="Add details about your intervention..."/> | ||
</group> | ||
</sheet> | ||
</form> | ||
</field> | ||
</record> | ||
</odoo> |
Oops, something went wrong.