Skip to content

Commit

Permalink
fixup! [ADD] Window Isntaller: Adding the refered module
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeschwa committed Aug 6, 2024
1 parent e0ba97f commit ff50fef
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 80 deletions.
3 changes: 1 addition & 2 deletions window_installer/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
'documents',
'helpdesk',
'hr_fleet',
'industry_fsm',
'knowledge',
'maintenance',
'purchase_stock',
Expand All @@ -26,9 +25,9 @@
'data/knowledge_cover.xml',
'data/knowledge_article.xml',
'data/knowledge_article_favorite.xml',
'data/project_task_type.xml',
'data/product_category.xml',
'data/project_project.xml',
'data/project_task_type.xml',
'data/product_template.xml',
'data/mail_message.xml',
'data/product_attribute.xml',
Expand Down
12 changes: 2 additions & 10 deletions window_installer/data/documents_folder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,8 @@
<field name="name">Internal</field>
<field name="parent_folder_id" ref="documents_project.documents_project_folder"/>
</record>
<record id="documents_folder_11" model="documents.folder" forcecreate="1">
<field name="name">Project Template</field>
<field name="parent_folder_id" ref="documents_project.documents_project_folder"/>
</record>
<record id="documents_folder_12" model="documents.folder" forcecreate="1">
<field name="name">S00001 - VDK Project</field>
<field name="parent_folder_id" ref="documents_project.documents_project_folder"/>
</record>
<record id="documents_folder_17" model="documents.folder">
<field name="name">S00004 - Project Template</field>
<record id="documents_folder_11" model="documents.folder" >
<field name="name">Window Installation</field>
<field name="parent_folder_id" ref="documents_project.documents_project_folder"/>
</record>
</odoo>
2 changes: 1 addition & 1 deletion window_installer/data/knowledge_cover.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="knowledge_cover_12" model="knowledge.cover" forcecreate="1">
<record id="knowledge_cover_12" model="knowledge.cover" >
<field name="attachment_id" ref="ir_attachment_872"/>
</record>
</odoo>
6 changes: 3 additions & 3 deletions window_installer/data/product_category.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="product_category_5" model="product.category" forcecreate="1">
<record id="product_category_5" model="product.category" >
<field name="name">Building Materials</field>
</record>
<record id="product_category_6" model="product.category" forcecreate="1">
<record id="product_category_6" model="product.category" >
<field name="name">Workforce</field>
</record>
<record id="product_category_7" model="product.category" forcecreate="1">
<record id="product_category_7" model="product.category" >
<field name="name">Others</field>
</record>
</odoo>
8 changes: 2 additions & 6 deletions window_installer/data/project_project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,21 @@
<field name="name">Internal</field>
<field name="stage_id" ref="project.project_project_stage_0"/>
<field name="type_ids" eval="[(6, 0, [ref('hr_timesheet.internal_project_default_stage')])]"/>
<field name="timesheet_product_id" eval="False"/>
<field name="documents_folder_id" ref="documents_folder_9"/>
</record>
<record id="project_project_3" model="project.project" forcecreate="1">
<record id="project_project_3" model="project.project">
<field name="name">Project Template</field>
<field name="allow_billable" eval="True"/>
<field name="stage_id" ref="project.project_project_stage_2"/>
<field name="type_ids" eval="[(6, 0, [ref('industry_fsm.planning_project_stage_0'), ref('industry_fsm.planning_project_stage_1'), ref('industry_fsm.planning_project_stage_2'), ref('industry_fsm.planning_project_stage_3'), ref('industry_fsm.planning_project_stage_4')])]"/>
<field name="timesheet_product_id" ref="sale_timesheet.time_product"/>
<field name="documents_folder_id" ref="documents_folder_11"/>
</record>
<record id="project_project_4" model="project.project" forcecreate="1">
<record id="project_project_4" model="project.project">
<field name="name">S00001 - VDK Project</field>
<field name="allow_billable" eval="True"/>
<field name="stage_id" ref="project.project_project_stage_1"/>
<field name="type_ids" eval="[(6, 0, [ref('industry_fsm.planning_project_stage_0'), ref('industry_fsm.planning_project_stage_1'), ref('industry_fsm.planning_project_stage_2'), ref('industry_fsm.planning_project_stage_3'), ref('industry_fsm.planning_project_stage_4')])]"/>
<field name="last_update_status">on_track</field>
<field name="timesheet_product_id" ref="sale_timesheet.time_product"/>
<field name="documents_folder_id" ref="documents_folder_12"/>
<field name="allocated_hours">32.0</field>
</record>
Expand All @@ -30,7 +27,6 @@
<field name="allow_billable" eval="True"/>
<field name="stage_id" ref="project.project_project_stage_0"/>
<field name="type_ids" eval="[(6, 0, [ref('industry_fsm.planning_project_stage_0'), ref('industry_fsm.planning_project_stage_1'), ref('industry_fsm.planning_project_stage_2'), ref('industry_fsm.planning_project_stage_3'), ref('industry_fsm.planning_project_stage_4')])]"/>
<field name="timesheet_product_id" ref="sale_timesheet.time_product"/>
<field name="documents_folder_id" ref="documents_folder_17"/>
<field name="allocated_hours">20.0</field>
</record>
Expand Down
14 changes: 0 additions & 14 deletions window_installer/data/project_task_type.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,6 @@
<field name="name">Cancelled</field>
<field name="fold" eval="True"/>
</record>
<record id="industry_fsm.planning_project_stage_1" model="project.task.type" forcecreate="1">
<field name="name">Planned</field>
</record>
<record id="industry_fsm.planning_project_stage_2" model="project.task.type" forcecreate="1">
<field name="name">In Progress</field>
</record>
<record id="industry_fsm.planning_project_stage_3" model="project.task.type" forcecreate="1">
<field name="name">Done</field>
<field name="fold" eval="True"/>
</record>
<record id="industry_fsm.planning_project_stage_4" model="project.task.type" forcecreate="1">
<field name="name">Cancelled</field>
<field name="fold" eval="True"/>
</record>
<record id="project_task_type_21" model="project.task.type">
<field name="name">Inbox</field>
</record>
Expand Down
2 changes: 1 addition & 1 deletion window_installer/data/stock_location.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<field name="location_id" ref="stock.stock_location_locations"/>
<field name="warehouse_id" ref="stock.warehouse0"/>
</record>
<record id="stock.stock_location_stock" model="stock.location" forcecreate="1">
<record id="stock.stock_location_stock" model="stock.location" >
<field name="name">Stock</field>
<field name="replenish_location" eval="True"/>
<field name="last_inventory_date">2024-07-18</field>
Expand Down
6 changes: 3 additions & 3 deletions window_installer/demo/account_analytic_account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<field name="name">Internal</field>
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
</record>
<record id="account_analytic_account_2" model="account.analytic.account" forcecreate="1">
<record id="account_analytic_account_2" model="account.analytic.account" >
<field name="name">Field Service</field>
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
</record>
<record id="account_analytic_account_3" model="account.analytic.account" forcecreate="1">
<record id="account_analytic_account_3" model="account.analytic.account" >
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="name">Project Template</field>
</record>
<record id="account_analytic_account_4" model="account.analytic.account" forcecreate="1">
<record id="account_analytic_account_4" model="account.analytic.account" >
<field name="name">S00001 - VDK Project</field>
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="partner_id" ref="res_partner_20"/>
Expand Down
6 changes: 3 additions & 3 deletions window_installer/demo/crm_lead.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="crm_lead_1" model="crm.lead" forcecreate="1">
<record id="crm_lead_1" model="crm.lead" >
<field name="name">Installation of chassis in a proch </field>
<field name="user_id" ref="base.user_admin"/>
<field name="partner_id" ref="res_partner_7"/>
Expand All @@ -11,7 +11,7 @@
]]></field>
<field name="expected_revenue">15000.0</field>
</record>
<record id="crm_lead_2" model="crm.lead" forcecreate="1">
<record id="crm_lead_2" model="crm.lead" >
<field name="name">Installation of 6 chassis for a room</field>
<field name="user_id" ref="base.user_admin"/>
<field name="partner_id" ref="res_partner_20"/>
Expand All @@ -23,7 +23,7 @@
]]></field>
<field name="expected_revenue">5000.0</field>
</record>
<record id="crm_lead_3" model="crm.lead" forcecreate="1">
<record id="crm_lead_3" model="crm.lead" >
<field name="name">Information for installation</field>
<field name="user_id" ref="base.user_admin"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
Expand Down
6 changes: 3 additions & 3 deletions window_installer/demo/hr_employee.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="hr_employee_1" model="hr.employee" forcecreate="1">
<record id="hr_employee_1" model="hr.employee" >
<field name="name">Alain Stallateur</field>
<field name="work_contact_id" ref="res_partner_16"/>
<field name="image_1920" type="base64" file="window_installer/static/src/binary/hr_employee/5-image_1920"/>
<field name="job_id" ref="hr_job_1"/>
<field name="job_title">Qualified Worker</field>
<field name="address_id" ref="base.main_partner"/>
</record>
<record id="hr_employee_2" model="hr.employee" forcecreate="1">
<record id="hr_employee_2" model="hr.employee" >
<field name="name">Alex Posant</field>
<field name="work_contact_id" ref="res_partner_17"/>
<field name="image_1920" type="base64" file="window_installer/static/src/binary/hr_employee/6-image_1920"/>
<field name="job_id" ref="hr_job_1"/>
<field name="job_title">Qualified Worker</field>
<field name="address_id" ref="base.main_partner"/>
</record>
<record id="hr_employee_3" model="hr.employee" forcecreate="1">
<record id="hr_employee_3" model="hr.employee" >
<field name="name">Sacha Touille</field>
<field name="work_contact_id" ref="res_partner_19"/>
<field name="image_1920" type="base64" file="window_installer/static/src/binary/hr_employee/7-image_1920"/>
Expand Down
4 changes: 2 additions & 2 deletions window_installer/demo/planning_recurrency.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="planning_recurrency_1" model="planning.recurrency" forcecreate="1">
<record id="planning_recurrency_1" model="planning.recurrency" >
<field name="repeat_type">x_times</field>
<field name="repeat_unit">day</field>
<field name="repeat_number">4</field>
</record>
<record id="planning_recurrency_2" model="planning.recurrency" forcecreate="1">
<record id="planning_recurrency_2" model="planning.recurrency" >
<field name="repeat_type">x_times</field>
<field name="repeat_unit">day</field>
<field name="repeat_number">30</field>
Expand Down
2 changes: 1 addition & 1 deletion window_installer/demo/planning_slot.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="planning_slot_188" model="planning.slot" forcecreate="1">
<record id="planning_slot_188" model="planning.slot" >
<field name="start_datetime">2024-07-18 04:00:00</field>
<field name="end_datetime">2024-07-18 12:00:00</field>
<field name="employee_id" ref="hr_employee_3"/>
Expand Down
38 changes: 19 additions & 19 deletions window_installer/demo/project_task.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,100 +20,100 @@
<field name="partner_id" ref="res_partner_20"/>
<field name="partner_phone">+32 479 65 43 21</field>
<field name="analytic_account_id" ref="account_analytic_account_4"/>
<field name="stage_id" ref="industry_fsm.planning_project_stage_2"/>
<field name="stage_id" ref="project.project_project_stage_0"/>
<field name="effective_hours">7.6</field>
<field name="total_hours_spent">7.6</field>
<field name="allocated_hours">8.0</field>
<field name="remaining_hours">0.40000000000000036</field>
<field name="progress">0.95</field>
<field name="display_in_project" eval="True"/>
</record>
<record id="project_task_5" model="project.task" forcecreate="1">
<record id="project_task_5" model="project.task" >
<field name="name">Work</field>
<field name="project_id" ref="project_project_3"/>
<field name="analytic_account_id" ref="account_analytic_account_3"/>
<field name="stage_id" ref="industry_fsm.planning_project_stage_0"/>
<field name="stage_id" ref="project.project_project_stage_0"/>
<field name="display_in_project" eval="True"/>
<field name="sequence">12</field>
</record>
<record id="project_task_6" model="project.task" forcecreate="1">
<record id="project_task_6" model="project.task" >
<field name="name">Architect</field>
<field name="project_id" ref="project_project_3"/>
<field name="analytic_account_id" ref="account_analytic_account_3"/>
<field name="stage_id" ref="industry_fsm.planning_project_stage_0"/>
<field name="stage_id" ref="project.project_project_stage_0"/>
<field name="allocated_hours">8.0</field>
<field name="remaining_hours">8.0</field>
<field name="display_in_project" eval="True"/>
</record>
<record id="project_task_7" model="project.task" forcecreate="1">
<record id="project_task_7" model="project.task" >
<field name="name">Receipt</field>
<field name="project_id" ref="project_project_3"/>
<field name="analytic_account_id" ref="account_analytic_account_3"/>
<field name="stage_id" ref="industry_fsm.planning_project_stage_0"/>
<field name="stage_id" ref="project.project_project_stage_0"/>
<field name="allocated_hours">4.0</field>
<field name="remaining_hours">4.0</field>
<field name="display_in_project" eval="True"/>
<field name="sequence">14</field>
</record>
<record id="project_task_8" model="project.task" forcecreate="1">
<record id="project_task_8" model="project.task" >
<field name="name">Planification</field>
<field name="date_assign">2024-07-18 06:15:44</field>
<field name="project_id" ref="project_project_3"/>
<field name="analytic_account_id" ref="account_analytic_account_3"/>
<field name="stage_id" ref="industry_fsm.planning_project_stage_0"/>
<field name="stage_id" ref="project.project_project_stage_0"/>
<field name="allocated_hours">7.0</field>
<field name="remaining_hours">7.0</field>
<field name="display_in_project" eval="True"/>
<field name="sequence">12</field>
</record>
<record id="project_task_9" model="project.task" forcecreate="1">
<record id="project_task_9" model="project.task" >
<field name="name">Architect</field>
<field name="project_id" ref="project_project_4"/>
<field name="partner_id" ref="res_partner_20"/>
<field name="partner_phone">+32 479 65 43 21</field>
<field name="analytic_account_id" ref="account_analytic_account_4"/>
<field name="stage_id" ref="industry_fsm.planning_project_stage_3"/>
<field name="stage_id" ref="project.project_project_stage_3"/>
<field name="allocated_hours">8.0</field>
<field name="remaining_hours">8.0</field>
<field name="display_in_project" eval="True"/>
</record>
<record id="project_task_10" model="project.task" forcecreate="1">
<record id="project_task_10" model="project.task" >
<field name="name">Down Payment</field>
<field name="project_id" ref="project_project_4"/>
<field name="partner_id" ref="res_partner_20"/>
<field name="partner_phone">+32 479 65 43 21</field>
<field name="analytic_account_id" ref="account_analytic_account_4"/>
<field name="stage_id" ref="industry_fsm.planning_project_stage_3"/>
<field name="stage_id" ref="project.project_project_stage_3"/>
<field name="allocated_hours">1.0</field>
<field name="remaining_hours">1.0</field>
</record>
<record id="project_task_11" model="project.task" forcecreate="1">
<record id="project_task_11" model="project.task" >
<field name="name">Planification</field>
<field name="project_id" ref="project_project_4"/>
<field name="partner_id" ref="res_partner_20"/>
<field name="partner_phone">+32 479 65 43 21</field>
<field name="analytic_account_id" ref="account_analytic_account_4"/>
<field name="stage_id" ref="industry_fsm.planning_project_stage_3"/>
<field name="stage_id" ref="project.project_project_stage_3"/>
<field name="allocated_hours">7.0</field>
<field name="remaining_hours">7.0</field>
</record>
<record id="project_task_12" model="project.task" forcecreate="1">
<record id="project_task_12" model="project.task" >
<field name="name">Work</field>
<field name="date_assign">2024-07-18 06:15:44</field>
<field name="project_id" ref="project_project_4"/>
<field name="partner_id" ref="res_partner_20"/>
<field name="partner_phone">+32 479 65 43 21</field>
<field name="analytic_account_id" ref="account_analytic_account_4"/>
<field name="stage_id" ref="industry_fsm.planning_project_stage_2"/>
<field name="stage_id" ref="project.project_project_stage_2"/>
</record>
<record id="project_task_13" model="project.task" forcecreate="1">
<record id="project_task_13" model="project.task" >
<field name="name">Receipt</field>
<field name="date_assign">2024-07-18 06:15:44</field>
<field name="project_id" ref="project_project_4"/>
<field name="partner_id" ref="res_partner_20"/>
<field name="partner_phone">+32 479 65 43 21</field>
<field name="analytic_account_id" ref="account_analytic_account_4"/>
<field name="stage_id" ref="industry_fsm.planning_project_stage_0"/>
<field name="stage_id" ref="project.project_project_stage_3"/>
<field name="allocated_hours">4.0</field>
<field name="remaining_hours">4.0</field>
</record>
Expand Down
Loading

0 comments on commit ff50fef

Please sign in to comment.