Skip to content

Commit

Permalink
[ADD] helpdesk_product: add demo data
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaBForgeFlow committed Mar 11, 2024
1 parent ae6abaf commit 860f77c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions helpdesk_product/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"website": "https://github.com/OCA/helpdesk",
"depends": ["helpdesk_mgmt", "product"],
"data": ["views/helpdesk_ticket_view.xml", "views/product_view.xml"],
"demo": ["demo/helpdesk_product_demo.xml"],
"development_status": "Beta",
"auto_install": True,
}
24 changes: 24 additions & 0 deletions helpdesk_product/demo/helpdesk_product_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Tickets -->
<record id="helpdesk_ticket_8" model="helpdesk.ticket">
<field eval="&quot;Poor quality product&quot;" name="name" />
<field eval="&quot;Poor quality product&quot;" name="description" />
<field eval="&quot;2&quot;" name="priority" />
<field name="user_id" ref="base.user_root" />
<field name="partner_id" ref="base.res_partner_10" />
<field name="team_id" ref="helpdesk_mgmt.helpdesk_team_2" />
<field name="stage_id" ref="helpdesk_mgmt.helpdesk_ticket_stage_in_progress" />
<field name="product_id" ref="product.product_product_10" />
</record>
<record id="helpdesk_ticket_9" model="helpdesk.ticket">
<field eval="&quot;Product needs maintenance&quot;" name="name" />
<field eval="&quot;Product needs maintenance&quot;" name="description" />
<field eval="&quot;1&quot;" name="priority" />
<field name="channel_id" ref="helpdesk_mgmt.helpdesk_ticket_channel_other" />
<field name="user_id" ref="base.user_root" />
<field name="team_id" ref="helpdesk_mgmt.helpdesk_team_2" />
<field name="stage_id" ref="helpdesk_mgmt.helpdesk_ticket_stage_awaiting" />
<field name="product_id" ref="product.product_product_9" />
</record>
</odoo>

0 comments on commit 860f77c

Please sign in to comment.