Skip to content
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

Closed
wants to merge 10 commits into from
Closed

field service team #26

wants to merge 10 commits into from

Conversation

robertrottermann
Copy link

Field Service Teams

Teams for managing the field service jobs.

Specifications

  • A team is a group of field workers
  • it can have:
    • A team leader, and a number of team members.
    • Some basic skills a each team member needs
    • A minimum size
    • A maximum size
  • Jobs will be assigned to teams.
  • When we select a team for a job, the available employees will be listed
    and can be select from that list to create a crew.
  • Once an field worker is engaged in a job (crew ?), he cannot be engaged in another job(ongoing)
    at the same time.
  • When he is finished with the current job, he will be available for next job.

@aitorbouzas
Copy link

aitorbouzas commented Oct 16, 2018

Hi Robert, I just saw your question in the mailing list.

  1. You can edit the name of your PR right here. Click in the three dots at the top right corner of the first commentary in this PR and then click Edit.
  2. To check the runbot error/warning go to the runbot page into your build, then click the gear and read the different logs (note that a warning in the logs also marks the check as failed)
    Logs now show:
2018-10-16 13:34:18,128 165 WARNING openerp_test odoo.models: ir.actions.server.create() includes unknown fields: condition

2018-10-16 13:34:18,170 165 WARNING openerp_test odoo.models: ir.ui.menu.write() with unknown fields: load_xmlid

2018-10-16 13:34:18,713 165 WARNING openerp_test odoo.modules.loading: The model fsm.skills has no access rules, consider adding one. E.g. access_fsm_skills,access_fsm_skills,model_fsm_skills,base.group_user,1,0,0,0
  1. To make different commits and then squash them make sure you use this git commands:

For commits:

git commit --all --fixup HEAD

For squashing all your commits automatically:

git rebase -i origin/12.0 --autosquash

@robertrottermann
Copy link
Author

thanks a lot,
editing of the commit message works fine, but I can not change the title of the PR.
Or can I?
robert

@aitorbouzas
Copy link

Oh, sure! I told you about the wrong button to edit. There's a button "Edit" at the right of the PR title :)

@dreispt
Copy link
Sponsor Member

dreispt commented Oct 16, 2018

How do these Teams relate to "Stage Workflows?
Is it expected that different Teams follow different workflow steps?
Can the same Team use different Workflows in two different Jobs?

_inherit = 'res.partner'

@api.multi
def write(self, vals):
Copy link
Sponsor Member

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.

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'.

Copy link
Sponsor Member

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

Copy link
Sponsor Member

@dreispt dreispt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say this intends to implement #5 and #9.

_inherit = 'res.config.settings'

group_red_fsm_team = fields.Boolean(
string='Manage RedFSM Teams',
Copy link
Sponsor Member

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"
Copy link
Sponsor Member

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?

@dreispt dreispt mentioned this pull request Oct 17, 2018
15 tasks
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-

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.

{
'name': "Field Service Teams",
'summary': """Teams for handling the jobs.""",
'description': """Jobs can be assigned to a team.

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",

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",

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",

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\

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

@dreispt
Copy link
Sponsor Member

dreispt commented Oct 21, 2018

I see a support ticket module being bundled here.
It should be proposed in a separate PR, to have a smaller changesets (PR with big changesets are difficult to review, and so have a hard time to get reviewed; the best approach is an iterative one, "feeding" features for review one at a time).

Also, I would like to discuss the design decisions regarding support tickets, but that's off topic here.

@max3903 max3903 added this to the 11.0 milestone Dec 5, 2018
@brian10048 brian10048 mentioned this pull request Jan 18, 2019
@max3903 max3903 closed this Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants