-
Notifications
You must be signed in to change notification settings - Fork 229
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
field service team #26
Conversation
changes by the OCA team
…for team and person, customer -person reverse relation,etc
Hi Robert, I just saw your question in the mailing list.
For commits:
For squashing all your commits automatically:
|
thanks a lot, |
Oh, sure! I told you about the wrong button to edit. There's a button "Edit" at the right of the PR title :) |
How do these Teams relate to "Stage Workflows? |
_inherit = 'res.partner' | ||
|
||
@api.multi | ||
def write(self, vals): |
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.
I think we don't need this method at all.
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.
What about the case where we need to create a 'person' for an existing 'customer'. Currently, when we create a 'person', a 'customer' will be created and linked with that 'person'. I think the above method will be useful in the reverse process, i.e, creating a 'person' for an existing 'customer'.
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.
That's already described in the specs and implemented:
there is a Wizard to convert a Parnter into a Person: https://github.com/OCA/field-service/blob/11.0/fieldservice/wizard/fsm_wizard.py
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.
_inherit = 'res.config.settings' | ||
|
||
group_red_fsm_team = fields.Boolean( | ||
string='Manage RedFSM Teams', |
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.
Red?
('ordinary', 'Ordinary'), | ||
('express', 'Express')], | ||
default='ordinary', | ||
string="Team Availability" |
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.
Deserves a help
tooltip explaining the concept.
Why not a Many2one?
fsm_team_handler/__init__.py
Outdated
@@ -0,0 +1,3 @@ | |||
# -*- coding: utf-8 -*- |
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.
For python3.5 is not needed use coding magic comment.
Remove this line for all python files.
fsm_team_handler/__manifest__.py
Outdated
{ | ||
'name': "Field Service Teams", | ||
'summary': """Teams for handling the jobs.""", | ||
'description': """Jobs can be assigned to a team. |
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.
The README.rst file is used instead of this description, then you should delete this description from manifest.
'summary': """Teams for handling the jobs.""", | ||
'description': """Jobs can be assigned to a team. | ||
Members of the team will be handling the work.""", | ||
'author': "redO2oo.ch2", |
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.
Add to redO2oo.ch2,Odoo Community Association (OCA)
@@ -0,0 +1,24 @@ | |||
# -*- coding: utf-8 -*- | |||
{ | |||
'name': "Field Service Teams", |
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.
license
is missing
_inherit = 'fsm.person' | ||
|
||
available = fields.Boolean( | ||
string="Availability", |
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.
Use just 4 spaces here instead of 8
# case: team leader(dispatcher) | ||
# selecting the teams where | ||
# this employee is the leader or member | ||
teams = user.fsm_team_ids and\ |
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 can use
teams = (user.fsm_team_ids and
user.fsm_team_ids.ids or []) # same spaces previous line
or
teams = user.fsm_team_ids and \
user.fsm_team_ids.ids or [] # 4 spaces
I see a support ticket module being bundled here. Also, I would like to discuss the design decisions regarding support tickets, but that's off topic here. |
Field Service Teams
Teams for managing the field service jobs.
Specifications
and can be select from that list to create a crew.
at the same time.