-
-
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
Conversation
d3b280a
to
ad10a10
Compare
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.
Hello @mariadforgeflow thanks for the contribution!
See comments, and also and not blocking, I'd suggest adding a product flag (in template) and/or category that indicates whether a product is available for tickets, so some product could be excluded for this functionality if needed.
helpdesk_product/__manifest__.py
Outdated
"license": "AGPL-3", | ||
"category": "After-Sales", | ||
"website": "https://github.com/OCA/helpdesk", | ||
"depends": ["helpdesk_mgmt", "sale_management"], |
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.
Is needed such dependency, shoudn't be product
addon instead enough?
<field name="user_id" position="after"> | ||
<field name="product_id" /> | ||
</field> | ||
</field> |
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:
- Filter for tickets with product.
- Group by product
820a8c3
to
ad10a10
Compare
…desk into 16.0-add-helpdesk_product
…desk into 16.0-add-helpdesk_product
…desk into 16.0-add-helpdesk_product
Hello @dalonsod I have modified the module to include the following :
I have also changed the module's dependencies so that it depends on |
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.
Tested on runboat 👍
See minor comments anyway. And I only miss row things: a "Products enabled for helpdesk" menu for Helpdesk Managers, like e.g. e-commerce enabled products, and some demo data, but they're not blocking IMO.
<filter | ||
string="Product Related" | ||
name="product_filter" | ||
domain="['!', ('product_id', '!=', '' )]" |
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.
Simpler domain IMO:
domain="['!', ('product_id', '!=', '' )]" | |
domain="[('product_id', '!=', False)]" |
<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" /> |
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.
Make it optional?
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Hello David, I don't quite understand what you mean by having a "Products enabled for helpdesk" menu. Do you mean adding a filter on the product search view to search by products that are enabled for helpdesk? |
I will look into it, thank you. |
ef9d07e
to
357bfa3
Compare
Hello @dalonsod I added a menu to the products that are available for helpdesk tickets on the Helpdesk application so that they can be accessed from Helpdesk. Please let me know if there's any other functionality you find missing. |
👍 |
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.
LGTM!
This PR has the |
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.
Thanks for the contributoin.
Regarding the technical everything looks fine but I didn't understood the use case behing this module.
Any chance to have an explanation of the business you're expecting with this module ?
Regards
Hello Florent, This module will allow helpdesk users to link a product on a helpdesk ticket to the product's record. One example of how this can be useful is for retail companies, as they might receive complaints from customers regarding specific products, and linking the product on the helpdesk ticket will provide more information to the helpdesk user. |
@dalonsod Can you merge this one? |
I'm afraid I can't. I have not such access level in this repo 😅 |
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at aae9b8a. Thanks a lot for contributing to OCA. ❤️ |
This module adds the option to select product in the helpdesk tickets.
@ForgeFlow