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

[RFC] How to use Contact on FSM Order #1230

Open
tafaRU opened this issue Oct 16, 2024 · 4 comments
Open

[RFC] How to use Contact on FSM Order #1230

tafaRU opened this issue Oct 16, 2024 · 4 comments
Assignees
Labels
Milestone

Comments

@tafaRU
Copy link
Member

tafaRU commented Oct 16, 2024

Hello,

I'm writing to ask for clarification regarding the field Contact (contact_id) on FSM Order and how to use it.

Testing and diving into the code I checked these followings behaviours:

In the face of this what should be the best approach to cover the following scenario?

  • create a FSM Order, choose a Location and Bill it to a Contact different to the one specified in Location Billed Customer

Thank you in advance.

@tafaRU
Copy link
Member Author

tafaRU commented Oct 16, 2024

The only solution that I found is the following:

  1. create a Location
  2. create a partner in which set the previous location as Primary Service Location
  3. create a FSM ORDER and set Contact to the previuos one
  4. Bill To Bill Contact

But it seems to me a bit counterintuitive. So the question is: why Contact field cannot be freely valued?

@max3903 max3903 self-assigned this Oct 19, 2024
@max3903
Copy link
Member

max3903 commented Oct 19, 2024

@tafaRU I will need to check further next week but the idea is you may have a lot of people involved in a location/order: the contact to call before and open the location, the owner, the one who will pay for the service, etc.. I will try to provide more details next week.

Thanks for your patience.

@tafaRU
Copy link
Member Author

tafaRU commented Nov 7, 2024

@max3903 you got a way to provide more details?
Thank you in advance.

@max3903 max3903 changed the title [RFC] Ask for clarification on how to use Contact on FSM Order [RFC] How to use Contact on FSM Order Nov 7, 2024
@max3903 max3903 added this to the 16.0 milestone Nov 7, 2024
@max3903
Copy link
Member

max3903 commented Nov 7, 2024

@tafaRU It sounds like the issue you are having is with this onchange:

https://github.com/OCA/field-service/blob/16.0/fieldservice_account_analytic/models/fsm_order.py#L30

I understand you expect to select the location and any contact as the customer, correct?

What would be the intuitive steps?

  • Create the location and select the customer to bill
  • Create an order, select the location --> the customer gets set automatically based on the location

Would that work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants