Field Service - Sale Stock Route
fieldservice_sale_stock_route · OCA/field-service
-
Security25/25No findings
-
Activity25/25Last human commit 6 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Description
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
fsm_order_form_inherit_product_move_ids |
fsm.order.form.inherit.test.move.ids | fsm.order | form | Inherits fieldservice.fsm_order_form |
view_fsm_route_form_inherit |
fsm.route.form.inherit.force_schedule | fsm.route | form | Inherits fieldservice_route.fsm_route_form |
view_order_form |
sale.order.form | sale.order | form | Inherits sale.view_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
-
show_postpone_buttonBooleancompute='_compute_postpone_button_visibility'store=False
-
action_postpone_delivery(self) -
write(self, vals)
-
force_scheduleBooleanhelp='Enable this to allow scheduling on non-route days.'
No public methods.
No new fields.
Public methods (1)-
check_day(self)@api.constrains('date', 'route_id')
-
commitment_date_endDatetimecompute='_compute_commitment_date_end'copy=Falsehelp='This is the delivery deadline date promised to the customer. If set, the delivery order will be scheduled based on this date rather than product lead times.'inverse='_inverse_set_commitment_date_end'store=Truestring='Delivery End Date'
-
write(self, values)
Loading…