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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_fieldservice_sale_stock_route-15.0.1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 65cee6ffe55ce36e480af42d2e0a1a318bfc6fd7952e06210a6b0eadf37c2118
MD5 98460afe99e2817f17c2d677ce44e9c1
BLAKE2b-256 66a862a0ff6d0a68c5ad39e485be372d2110af1d606f88731728956a695f036d

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