Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 6 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 15.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.08 MB
Module directory on disk
Code analysis 0 migration notes 4 models 3 views 0 HTTP endpoints

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 IDNameModelTypeStatus
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

New fields (1)
  • show_postpone_button Boolean
    compute='_compute_postpone_button_visibility' store=False
Public methods (2)
  • action_postpone_delivery(self)
  • write(self, vals)

New fields (1)
  • force_schedule Boolean
    help='Enable this to allow scheduling on non-route days.'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • check_day(self)
    @api.constrains('date', 'route_id')

New fields (1)
  • commitment_date_end Datetime
    compute='_compute_commitment_date_end' copy=False help='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=True string='Delivery End Date'
Public methods (1)
  • write(self, values)

Loading…