Skip to main content

Link between Field Service Sale Stock and Route

Project description

Beta License: AGPL-3 OCA/field-service Translate me on Weblate Try me on Runboat

This module integrates the fieldservice_sale_stock and fieldservice_route modules, enabling automatic generation of FSM order day routes from sales orders.

Requirements for Confirming a Sales Order

If a sales order contains a product that generates an FSM order, the following conditions must be met before confirmation:

  • An FSM location must be set.

  • The FSM location must have an assigned route.

  • The FSM route must have a designated FSM person.

  • The FSM route must have assigned working days.

Automatic Scheduling of FSM Orders

  • If the commitment_date and commitment_date_end fields are not set on the sale order upon confirmation, they will be automatically assigned to the next available route day based on the FSM location’s schedule.

  • If these fields are set, the FSM order will be scheduled accordingly, with validation ensuring that the commitment_date falls on a valid route day. This validation can be overridden by enabling the “Force Schedule” option on the FSM route to allow scheduling on any day.

This module also introduces a “Postpone Delivery” button in the FSM order form view, allowing users to reschedule the order to the next available route day based on the FSM location’s schedule.

Table of contents

Usage

To use this module, you need to:

  1. Navigate to Sales > Orders.

  2. Create a new sales order.

  3. Add a product that generates an FSM order (Field Service Tracking set to “Create one FSM order per sale order” on the product form).

  4. Set the Customer and FSM Location.

  5. Make sure the FSM Location has a route set and this route has a person assigned and route days set.

  6. In the sale order, navigate to the ‘Other Info’ tab and set the ‘Delivery Date’ and ‘Delivery End Date’ fields. You can also leave them empty to have the system automatically assign the next available route day.

  7. Confirm the sale order.

  8. If the ‘Delivery Date’ and ‘Delivery End Date’ fields were empty, the system will automatically assign the next available route day based on the FSM location’s schedule. If they were set, the FSM order will be scheduled accordingly. In case the ‘Delivery Date’ falls on a day that is not part of the route, the system will show an error message.

If you navigate to the FSM order, you will see that the Schedule Details are based on the ‘Delivery Date’ and ‘Delivery End Date’ fields from the sale order.

Additionally, you will find a ‘Postpone Delivery’ button in the FSM order form view, allowing you to reschedule the order to the next available route day based on the FSM location’s schedule. You can also manually reschedule the order by changing the ‘Delivery Date’ and ‘Delivery End Date’ fields in the sale order.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • APSL-Nagarro

Contributors

APSL-Nagarro:

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

ppyczko

This module is part of the OCA/field-service project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_fieldservice_sale_stock_route-15.0.1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_fieldservice_sale_stock_route-15.0.1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8bea2d942cc9f78a2e1ca7d8878349130132ac41830946fd4dcf1c2b149902fb
MD5 d03b1a6cdf7676cc50c8e671cf8a6551
BLAKE2b-256 5013b9c087b6f49a892fa49783a8d484cf077d81ff31857d268b5a41be3cc3ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page