-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
[15.0][ADD] heldespk_mgmt: Helpdesk stages per teams #522
[15.0][ADD] heldespk_mgmt: Helpdesk stages per teams #522
Conversation
7b48662
to
27536af
Compare
ping @pedrobaeza @victoralmau |
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 should try to have only one method for getting the proper stages, and call it everywhere instead of being doing changes in a lot of places. Remember also to put docstrings where applicable (like _determine_stage
).
Finally, the statusbar should only contain the proper stages for the team.
385a835
to
05c7bc6
Compare
Thanks for the review. could you please check it now? |
892eea7
to
94d875e
Compare
ping @pedrobaeza |
1 similar comment
ping @pedrobaeza |
return self._get_applicable_stages(self.team_id) | ||
|
||
@api.depends("team_id") | ||
def _compute_stage_ids(self): |
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.
_compute_stage_ids
(with s
), but the assigned field is stage_id
. Anyway, is this using the same technique as Odoo with stages in tasks?
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.
Yes, I renamed the method to _compute_stages_ids
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.
But the proper field name should be stage_ids
01a6d9c
to
9bdc1a7
Compare
WIP |
9bdc1a7
to
c42f581
Compare
c42f581
to
58469b6
Compare
281f435
to
6bd5d7b
Compare
6bd5d7b
to
bb7b618
Compare
f466837
to
93b061c
Compare
The inheritance should be over the base test class
686c010
to
ebb40d2
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.
Please check about the mail stuff, and it's good to go.
495bf8a
to
28317d4
Compare
I added this fix https://github.com/OCA/helpdesk/pull/522/files#diff-8e8d21502284f8964232135dd1c317a25eacbc0e9cae741627caf414b751498eR89 in order to receive mails when ticket is created from portal |
28317d4
to
fc9e2d2
Compare
- Remove default - Centralize method for determining applicable stages - Make compatible with multi-company
fc9e2d2
to
a7b0736
Compare
Let's go finally with this: /ocabot merge major |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 92593bb. Thanks a lot for contributing to OCA. ❤️ |
@carolinafernandez-tecnativa please fw-port it to v16/v17 |
@pedrobaeza added on v16. #534 helpdesk_mgmt on V17 is not yet migrated. |
Write on the current opened PR to ask for its inclusion. |
done! |
Include a field in the stages to define the team. If it is empty, the stage will be available to all teams. If you have a team indicated, that stage will only be visible to tickets that belong to that team.
@Tecnativa
TT45710
@pedrobaeza @victoralmau