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 Jul 18, 2024
1 parent 1f2e142 commit 916f9e1
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 88 deletions.
2 changes: 1 addition & 1 deletion window_installer/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
'data/product_product.xml',
],
'demo': [
'demo/account_analytic_account.xml',
'demo/res_partner.xml',
'demo/hr_employee.xml',
'demo/account_analytic_account.xml',
'demo/crm_lead.xml',
'demo/project_task_stage_personal.xml',
'demo/planning_recurrency.xml',
Expand Down
8 changes: 4 additions & 4 deletions window_installer/data/documents_folder.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="documents_folder_9" model="documents.folder">
<field name="parent_folder_id" ref="documents_project.documents_project_folder"/>
<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="parent_folder_id" ref="documents_project.documents_project_folder"/>
<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="parent_folder_id" ref="documents_project.documents_project_folder"/>
<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="parent_folder_id" ref="documents_project.documents_project_folder"/>
<field name="name">S00004 - Project Template</field>
<field name="parent_folder_id" ref="documents_project.documents_project_folder"/>
</record>
</odoo>
13 changes: 0 additions & 13 deletions window_installer/data/product_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,14 @@
<record id="product_template_15" model="product.template" context="{'create_product_product': False}">
<field name="name">Wood Window Frame</field>
<field name="categ_id" ref="product.product_category_all"/>
<field name="uom_id" ref="uom.product_uom_unit"/>
<field name="purchase_method">receive</field>
<field name="uom_po_id" ref="uom.product_uom_unit"/>
<field name="invoice_policy">delivery</field>
<field name="has_configurable_attributes" eval="True"/>
<field name="property_stock_inventory" ref="stock_location_14"/>
<field name="is_storable" eval="True"/>
<field name="image_1920" type="base64" file="window_installer/static/src/binary/product_template/15-image_1920"/>
<field name="service_type">manual</field>
<field name="list_price">600.0</field>
<field name="can_image_1024_be_zoomed" eval="True"/>
<field name="purchase_ok" eval="False"/>
<field name="property_stock_production" ref="stock_location_15"/>
<field name="bom_count">3</field>
Expand All @@ -51,9 +48,7 @@
<record id="product_template_16" model="product.template" context="{'create_product_product': False}">
<field name="name">PVC Window</field>
<field name="categ_id" ref="product.product_category_all"/>
<field name="uom_id" ref="uom.product_uom_unit"/>
<field name="purchase_method">receive</field>
<field name="uom_po_id" ref="uom.product_uom_unit"/>
<field name="invoice_policy">delivery</field>
<field name="has_configurable_attributes" eval="True"/>
<field name="property_stock_inventory" ref="stock_location_14"/>
Expand All @@ -69,9 +64,7 @@
<record id="product_template_17" model="product.template" context="{'create_product_product': False}">
<field name="name">Paint</field>
<field name="categ_id" ref="product.product_category_all"/>
<field name="uom_id" ref="uom.product_uom_unit"/>
<field name="purchase_method">receive</field>
<field name="uom_po_id" ref="uom.product_uom_unit"/>
<field name="sale_ok" eval="False"/>
<field name="invoice_policy">order</field>
<field name="has_configurable_attributes" eval="True"/>
Expand All @@ -88,9 +81,7 @@
<record id="product_template_18" model="product.template" context="{'create_product_product': False}">
<field name="name">Glass</field>
<field name="categ_id" ref="product.product_category_all"/>
<field name="uom_id" ref="uom.product_uom_unit"/>
<field name="purchase_method">receive</field>
<field name="uom_po_id" ref="uom.product_uom_unit"/>
<field name="sale_ok" eval="False"/>
<field name="invoice_policy">order</field>
<field name="property_stock_inventory" ref="stock_location_14"/>
Expand All @@ -105,9 +96,7 @@
<record id="product_template_19" model="product.template" context="{'create_product_product': False}">
<field name="name">Wood</field>
<field name="categ_id" ref="product.product_category_all"/>
<field name="uom_id" ref="uom.product_uom_unit"/>
<field name="purchase_method">receive</field>
<field name="uom_po_id" ref="uom.product_uom_unit"/>
<field name="sale_ok" eval="False"/>
<field name="invoice_policy">order</field>
<field name="property_stock_inventory" ref="stock_location_14"/>
Expand All @@ -122,9 +111,7 @@
<record id="product_template_20" model="product.template" context="{'create_product_product': False}">
<field name="name">PVC</field>
<field name="categ_id" ref="product.product_category_all"/>
<field name="uom_id" ref="uom.product_uom_unit"/>
<field name="purchase_method">receive</field>
<field name="uom_po_id" ref="uom.product_uom_unit"/>
<field name="sale_ok" eval="False"/>
<field name="invoice_policy">order</field>
<field name="property_stock_inventory" ref="stock_location_14"/>
Expand Down
6 changes: 3 additions & 3 deletions window_installer/data/project_project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
<field name="documents_folder_id" ref="documents_folder_9"/>
</record>
<record id="project_project_3" model="project.project" forcecreate="1">
<field name="allow_billable" eval="True"/>
<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">
<field name="allow_billable" eval="True"/>
<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>
Expand All @@ -26,8 +26,8 @@
<field name="allocated_hours">32.0</field>
</record>
<record id="project_project_8" model="project.project">
<field name="allow_billable" eval="True"/>
<field name="name">S00004 - Project Template</field>
<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"/>
Expand Down
10 changes: 5 additions & 5 deletions window_installer/data/stock_location.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="stock_location_7" model="stock.location">
<field name="usage">view</field>
<field name="name">WH</field>
<field name="usage">view</field>
<field name="location_id" ref="stock.stock_location_locations"/>
<field name="complete_name">WH</field>
<field name="warehouse_id" ref="stock.warehouse0"/>
<field name="sequence">10</field>
</record>
<record id="stock.stock_location_stock" model="stock.location" forcecreate="1">
<field name="replenish_location" eval="True"/>
<field name="name">Stock</field>
<field name="replenish_location" eval="True"/>
<field name="last_inventory_date">2024-07-18</field>
<field name="location_id" ref="stock_location_7"/>
<field name="complete_name">WH/Stock</field>
Expand All @@ -19,20 +19,20 @@
<field name="barcode">WHSTOCK</field>
</record>
<record id="stock_location_14" model="stock.location">
<field name="usage">inventory</field>
<field name="name">Inventory adjustment</field>
<field name="usage">inventory</field>
<field name="location_id" ref="stock.stock_location_locations_virtual"/>
<field name="complete_name">Virtual Locations/Inventory adjustment</field>
</record>
<record id="stock_location_15" model="stock.location">
<field name="usage">production</field>
<field name="name">Production</field>
<field name="usage">production</field>
<field name="location_id" ref="stock.stock_location_locations_virtual"/>
<field name="complete_name">Virtual Locations/Production</field>
</record>
<record id="stock_location_16" model="stock.location">
<field name="usage">inventory</field>
<field name="name">Scrap</field>
<field name="usage">inventory</field>
<field name="scrap_location" eval="True"/>
<field name="location_id" ref="stock.stock_location_locations_virtual"/>
<field name="complete_name">Virtual Locations/Scrap</field>
Expand Down
8 changes: 4 additions & 4 deletions window_installer/demo/account_analytic_account.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="account_analytic_account_1" model="account.analytic.account">
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<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">
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="name">Field Service</field>
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
</record>
<record id="account_analytic_account_4" model="account.analytic.account" forcecreate="1">
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="name">S00001 - VDK Project</field>
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="partner_id" ref="res_partner_20"/>
</record>
<record id="account_analytic_account_15" model="account.analytic.account">
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="name">S00004</field>
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="partner_id" ref="res_partner_9"/>
</record>
</odoo>
32 changes: 3 additions & 29 deletions window_installer/demo/crm_lead.xml
Original file line number Diff line number Diff line change
@@ -1,45 +1,23 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="crm_lead_1" model="crm.lead" forcecreate="1">
<field name="partner_id" ref="res_partner_7"/>
<field name="name">Installation of chassis in a proch </field>
<field name="partner_id" ref="res_partner_7"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="stage_id" ref="crm.stage_lead2"/>
<field name="zip">5562</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="country_id" ref="base.be"/>
<field name="won_status">pending</field>
<field name="city">Houyet</field>
<field name="mobile">+32 479 12 34 56</field>
<field name="phone_sanitized">+32 479 12 34 56</field>
<field name="date_open">2024-07-18 06:15:43</field>
<field name="email_domain_criterion">[email protected]</field>
<field name="contact_name">Constant Custinne</field>
<field name="street">Rue de Wallons, 1</field>
<field name="description"><![CDATA[<p ></p><p>I wanted to contact you to get a quotation for the construction&nbsp;of a porch with mate chassis.</p><p>Best regards,</p><p>Constant Custinne</p>
]]></field>
<field name="expected_revenue">15000.0</field>
</record>
<record id="crm_lead_2" model="crm.lead" forcecreate="1">
<field name="partner_id" ref="res_partner_20"/>
<field name="name">Installation of 6 chassis for a room</field>
<field name="partner_id" ref="res_partner_20"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="stage_id" ref="crm.stage_lead3"/>
<field name="zip">8400</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="country_id" ref="base.be"/>
<field name="probability">64.71</field>
<field name="won_status">pending</field>
<field name="city">Oostende</field>
<field name="mobile">+32 479 65 43 21</field>
<field name="phone_sanitized">+32 479 65 43 21</field>
<field name="date_open">2024-07-18 06:15:43</field>
<field name="email_domain_criterion">[email protected]</field>
<field name="contact_name">Kamiel Van De Kust</field>
<field name="street">Duinkerkelaan, 1</field>
<field name="description"><![CDATA[<p> Dear Mister Admin,</p><p>I'm reaching to get a quotation for the installation&nbsp;of these chassis:</p><p>2 frames of&nbsp;</p><ul><li>Height: 2 meters</li><li>Length: 1&nbsp;meters</li></ul><p>4 frame of :<br></p><ul><li>Height 1.4m</li><li>Length 60 cm</li></ul><p>Best regards,</p><p>Kamiel Van De Kust</p>
]]></field>
Expand All @@ -57,19 +35,15 @@
]]></field>
</record>
<record id="crm_lead_9" model="crm.lead">
<field name="partner_id" ref="res_partner_9"/>
<field name="name">Jackson Architects's opportunity</field>
<field name="partner_id" ref="res_partner_9"/>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="stage_id" ref="crm.stage_lead4"/>
<field name="date_closed">2024-07-18 07:08:09</field>
<field name="priority">2</field>
<field name="email_from">[email protected]</field>
<field name="email_state">correct</field>
<field name="probability">100.0</field>
<field name="won_status">won</field>
<field name="date_open">2024-07-18 07:07:23</field>
<field name="email_domain_criterion">@test.com</field>
<field name="partner_name">Jackson Architects</field>
<field name="description"><![CDATA[<p>Hello,</p><p><br></p><p>I would like to make an installation of 6 pvc windows.</p><p>The dimension is the same for the 6 :</p><p>&nbsp;- 2m * 1m</p><p><br></p><p>Thank You!!</p>]]></field>
<field name="expected_revenue">5000.0</field>
</record>
Expand Down
Loading

0 comments on commit 916f9e1

Please sign in to comment.