Skip to content

Commit

Permalink
electronic_store: project
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrs-odoo committed Feb 20, 2024
1 parent bafc401 commit b15286a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 19 deletions.
4 changes: 2 additions & 2 deletions electronic_store/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@
'data/knowledge_article.xml',
],
'demo': [
'demo/project_task.xml',
'demo/res_partner.xml',
'demo/x_worksheet_template.xml',
'demo/project_task.xml',
'demo/helpdesk_ticket.xml',
'demo/repair_order.xml',
'demo/website_ir_attachment.xml',
Expand All @@ -74,6 +73,7 @@
'demo/sale_order_post.xml',
'demo/crm_lead_post.xml',
'demo/website_theme_apply.xml',
'demo/x_worksheet_template.xml',
],
'license': 'OPL-1',
'images': ['images/main.png'],
Expand Down
2 changes: 1 addition & 1 deletion electronic_store/data/ir_model.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
<field name="name">Default Worksheet</field>
<field name="model">x_project_task_worksheet_template_1_studio</field>
</record>
</odoo>
</odoo>
15 changes: 5 additions & 10 deletions electronic_store/demo/project_task.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@
<field name="project_id" ref="project_project_1"/>
<field name="analytic_account_id" ref="account_analytic_account_1"/>
</record>
<record id="project_task_3" model="project.task">
<record id="project_task_6" model="project.task">
<field name="name">S00002 - Air Conditioner Installation</field>
<field name="stage_id" ref="hr_timesheet.internal_project_default_stage"/>
<field name="project_id" ref="project_project_3"/>
<field name="analytic_account_id" ref="account_analytic_account_1"/>
</record>
<record id="project_task_7" model="project.task">
<field name="name">S00011 - Air Conditioner Installation</field>
<field name="stage_id" ref="hr_timesheet.internal_project_default_stage"/>
<field name="project_id" ref="project_project_3"/>
<field name="analytic_account_id" ref="account_analytic_account_1"/>
<field name="partner_id" ref="res_partner_7"/>
<field name="worksheet_template_id" ref="fsm_worksheet_template"/>
<field name="project_id" ref="project_project_5"/>
<field name="date_assign" eval="DateTime.today()"/>
</record>
</odoo>
2 changes: 1 addition & 1 deletion electronic_store/demo/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<field name="image_1920" type="base64" file="electronic_store/static/src/binary/res_partner/23-image_1920"/>
</record>
<record id="res_partner_7" model="res.partner">
<field name="name">Phoenix Silverwood</field>
<field name="name">Ruffino's Restaurant</field>
<field name="is_company" eval="True"/>
<field name="street">18811 Highland Rd, Baton Rouge, LA 70809, USA</field>
<field name="city">Baton Rouge</field>
Expand Down
2 changes: 1 addition & 1 deletion electronic_store/demo/sale_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<field name="user_id" ref="base.user_admin"/>
</record>
<record id="sale_order_4" model="sale.order">
<field name="partner_id" ref="res_partner_17"/>
<field name="partner_id" ref="res_partner_16"/>
<field name="warehouse_id" ref="stock.warehouse0"/>
<field name="user_id" ref="base.user_admin"/>
</record>
Expand Down
8 changes: 4 additions & 4 deletions electronic_store/demo/x_worksheet_template.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="x_project_task_worksheet_template_1_1" model="x_project_task_worksheet_template_1_studio">
<field name="x_name">Air Conditioner Installation</field>
<field name="x_project_task_id" ref="project_task_3"/>
<field name="x_name">S00002 - Air Conditioner Installation</field>
<field name="x_project_task_id" model="project.task" eval="obj().search([('sale_order_id', 'in', [ref('sale_order_2')])]).id"/>
</record>
<record id="x_project_task_worksheet_template_1_2" model="x_project_task_worksheet_template_1_studio">
<field name="x_name">Air Conditioner Installation</field>
<field name="x_project_task_id" ref="project_task_7"/>
<field name="x_name">S000011 - Air Conditioner Installation</field>
<field name="x_project_task_id" model="project.task" eval="obj().search([('sale_order_id', 'in', [ref('sale_order_11')])]).id"/>
<field name="x_type_of_installation">air_conditioner</field>
<field name="x_installation_date" eval="DateTime.today()"/>
<field name="x_makemodel">23423</field>
Expand Down

0 comments on commit b15286a

Please sign in to comment.