-
-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][ADD] helpdesk_product #520
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ad10a10
[ADD] helpdesk_product
MariaBForgeFlow 56ca0d1
[ADD] helpdesk_product
MariaBForgeFlow 381a8c5
[ADD] helpdesk_product
MariaBForgeFlow 499d732
Merge branch '16.0-add-helpdesk_product' of github.com:ForgeFlow/help…
MariaBForgeFlow c28769d
Merge branch '16.0-add-helpdesk_product' of github.com:ForgeFlow/help…
MariaBForgeFlow 0981ed8
Merge branch '16.0-add-helpdesk_product' of github.com:ForgeFlow/help…
MariaBForgeFlow ae6abaf
[ADD] helpdesk_product: small fixes
MariaBForgeFlow 860f77c
[ADD] helpdesk_product: add demo data
MariaBForgeFlow 357bfa3
[ADD] helpdesk_product: add products menu to Helpdesk app
MariaBForgeFlow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
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 @@ | ||
from . import models |
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,14 @@ | ||
{ | ||
"name": "Helpdesk Product", | ||
"summary": "Add the option to select product in the tickets.", | ||
"author": "ForgeFlow, " "Odoo Community Association (OCA)", | ||
"version": "16.0.1.0.0", | ||
"license": "AGPL-3", | ||
"category": "After-Sales", | ||
"website": "https://github.com/OCA/helpdesk", | ||
"depends": ["helpdesk_mgmt", "product"], | ||
"data": ["views/product_view.xml", "views/helpdesk_ticket_view.xml"], | ||
"demo": ["demo/helpdesk_product_demo.xml"], | ||
"development_status": "Beta", | ||
"auto_install": True, | ||
} |
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,24 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<!-- Tickets --> | ||
<record id="helpdesk_ticket_8" model="helpdesk.ticket"> | ||
<field eval=""Poor quality product"" name="name" /> | ||
<field eval=""Poor quality product"" name="description" /> | ||
<field eval=""2"" 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=""Product needs maintenance"" name="name" /> | ||
<field eval=""Product needs maintenance"" name="description" /> | ||
<field eval=""1"" 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> |
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 @@ | ||
from . import helpdesk_ticket, product |
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 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class HelpdeskTicket(models.Model): | ||
_inherit = "helpdesk.ticket" | ||
|
||
product_id = fields.Many2one(string="Product", comodel_name="product.product") |
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 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class Product(models.Model): | ||
_inherit = "product.template" | ||
|
||
ticket_active = fields.Boolean( | ||
"Available for Helpdesk Tickets", default=True, required=True | ||
) |
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,3 @@ | ||
* `ForgeFlow <https://www.forgeflow.com>`_: | ||
|
||
* Maria Buscallà <[email protected]> |
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 @@ | ||
This module adds the option to select product in the helpdesk tickets. |
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,67 @@ | ||
<?xml version='1.0' encoding='utf-8' ?> | ||
<odoo> | ||
|
||
<!-- VIEW FORM TICKET --> | ||
<record id="ticket_view_form" model="ir.ui.view"> | ||
<field name="name">helpdesk.ticket.form</field> | ||
<field name="model">helpdesk.ticket</field> | ||
<field name="inherit_id" ref="helpdesk_mgmt.ticket_view_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='channel_id']" position="after"> | ||
<field name="product_id" domain="[('ticket_active', '=', True)]" /> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<!-- TREE TICKET HELPDESK --> | ||
<record id="ticket_view_tree" model="ir.ui.view"> | ||
<field name="name">helpdesk.ticket.tree</field> | ||
<field name="model">helpdesk.ticket</field> | ||
<field name="inherit_id" ref="helpdesk_mgmt.ticket_view_tree" /> | ||
<field name="arch" type="xml"> | ||
<field name="user_id" position="after"> | ||
<field name="product_id" optional="show" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
<!-- SEARCH TICKET HELPDESK --> | ||
<record id="helpdesk_ticket_view_search" model="ir.ui.view"> | ||
<field name="name">helpdesk.ticket.search</field> | ||
<field name="model">helpdesk.ticket</field> | ||
<field name="inherit_id" ref="helpdesk_mgmt.helpdesk_ticket_view_search" /> | ||
<field name="arch" type="xml"> | ||
<field name="user_id" position="after"> | ||
<field name="product_id" /> | ||
</field> | ||
|
||
<search> | ||
<filter | ||
string="Product Related" | ||
name="product_filter" | ||
domain="[('product_id', '!=', False )]" | ||
/> | ||
|
||
<filter | ||
string="Product" | ||
name="by_product" | ||
domain="[]" | ||
context="{'group_by':'product_id'}" | ||
/> | ||
</search> | ||
</field> | ||
</record> | ||
|
||
<!-- PRODUCT MENU --> | ||
<menuitem | ||
action="product_template_action_helpdesk" | ||
id="action_menu_view_products" | ||
parent="helpdesk_mgmt.helpdesk_ticket_main_menu" | ||
name="Products" | ||
sequence="12" | ||
/> | ||
|
||
|
||
|
||
|
||
</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,57 @@ | ||
<?xml version='1.0' encoding='utf-8' ?> | ||
<odoo> | ||
|
||
<!-- VIEW PRODUCT TEMPLATE--> | ||
<record id="product_view_template" model="ir.ui.view"> | ||
<field name="name">product.template.common.form</field> | ||
<field name="model">product.template</field> | ||
<field name="inherit_id" ref="product.product_template_form_view" /> | ||
<field name="arch" type="xml"> | ||
<field name="product_tooltip" position="before"> | ||
<field name="ticket_active" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
<record id="product_template_search_view_helpdesk" model="ir.ui.view"> | ||
<field name="name">product.template.search</field> | ||
<field name="model">product.template</field> | ||
<field name="inherit_id" ref="product.product_template_search_view" /> | ||
<field name="arch" type="xml"> | ||
<search> | ||
<filter | ||
string="Available for Helpdesk" | ||
name="helpdesk_active" | ||
domain="[('ticket_active', '=', True )]" | ||
/> | ||
|
||
</search> | ||
</field> | ||
</record> | ||
|
||
|
||
|
||
|
||
<!-- ACTION WINDOW FOR PRODUCT IN HELPDESK --> | ||
<record id="product_template_action_helpdesk" model="ir.actions.act_window"> | ||
<field name="name">Products</field> | ||
<field name="res_model">product.template</field> | ||
<field name="type">ir.actions.act_window</field> | ||
<field name="view_mode">kanban,tree,form,activity</field> | ||
<field name="search_view_id" ref="product_template_search_view_helpdesk" /> | ||
<field name="context">{'search_default_helpdesk_active': 1}</field> | ||
<field name="help" type="html"> | ||
<p class="o_view_nocontent_smiling_face"> | ||
Create a new product | ||
</p><p> | ||
You currently have no products available for Helpdesk Tickets. | ||
<br /> | ||
A product can be either a physical product or a service that you sell to your customers. | ||
</p> | ||
</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 @@ | ||
../../../../helpdesk_product |
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,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could add some shortcuts: