Field Service - Subcontracting
fieldservice_subcontracting · OCA/field-service
Health
60/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
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.75 MB
Module directory on disk
Code analysis
0 migration notes
6 models
6 views
0 HTTP endpoints
Description
This module integrates Field Service with Purchasing to automate the subcontracting workflow.
It allows users to:
- Mark subcontractor vendors on partners.
- Configure a service product on Field Service order templates.
- Resolve the Purchase Order vendor from the assigned worker or its parent company.
- Create draft Purchase Orders for subcontracted orders.
- Set the Purchase Order Expected Arrival from the Field Service Order Scheduled End.
- Keep the Purchase Order Expected Arrival synchronized when the Field Service Order planned dates change.
- Update delivered quantities from Field Service timesheets.
- Reassign workers on orders with linked subcontract Purchase Orders.
The module uses fieldservice_stage_server_action to trigger automation on
stage transitions.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
fsm_order_cancel_confirm_form_view |
fsm.order.cancel.confirm.form | fsm.order.cancel.confirm | form | New |
fsm_order_form_view_subcontracting |
fsm.order.form.subcontracting | fsm.order | form | Inherits fieldservice.fsm_order_form |
fsm_order_reassign_confirm_form_view |
fsm.order.reassign.confirm.form | fsm.order.reassign.confirm | form | New |
fsm_partner_form_view_subcontracting |
res.partner.form.subcontracting | res.partner | form | Inherits fieldservice.fsm_partner_fields |
fsm_template_form_view_subcontracting |
fsm.template.form.subcontracting | fsm.template | form | Inherits fieldservice.fsm_template_form_view |
purchase_order_form_view_subcontracting |
purchase.order.form.subcontracting | purchase.order | form | Inherits purchase.purchase_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
New fields (3)
-
purchase_order_countIntegercompute='_compute_purchase_order_count' -
purchase_order_idsOne2many → purchase.ordercomodel_name='purchase.order'help='Purchase Order auto-created when this FSO was assigned to a subcontractor worker.'inverse_name='fsm_order_id'string='Subcontract POs' -
reassign_workerBooleancompute='_compute_reassign_worker'help='Determine if a worker reassignment can be performed.'
-
action_cancel(self)Ask how to handle active subcontract POs before cancelling the FSO. -
action_open_reassign_confirm(self)Open the reassignment confirmation wizard. -
action_view_purchase_order(self)Smart button action to open linked Purchase Orders. -
write(self, vals)
New fields (3)
-
fsm_order_idMany2one → fsm.ordercomodel_name='fsm.order'readonly=Truerequired=Truestring='Field Service Order' -
purchase_order_idsMany2many → purchase.ordercomodel_name='purchase.order'compute='_compute_purchase_order_ids'readonly=Truestring='Purchase Orders' -
warning_messageTextcompute='_compute_warning_message'
-
action_cancel_fsm_and_purchase_orders(self)Cancel related Purchase Orders and then cancel the FSO. -
action_cancel_fsm_only(self)Cancel the FSO and keep related Purchase Orders open.
New fields (4)
-
fsm_order_idMany2one → fsm.ordercomodel_name='fsm.order'readonly=Truerequired=Truestring='Field Service Order' -
new_person_idMany2one → fsm.personcomodel_name='fsm.person'required=Truestring='New Worker' -
purchase_order_idsMany2many → purchase.ordercomodel_name='purchase.order'compute='_compute_purchase_order_ids'readonly=Truestring='Purchase Orders' -
warning_messageTextcompute='_compute_warning_message'
-
action_confirm(self)Cancel the POs and proceed with worker reassignment.
New fields (1)
-
subcontract_product_idMany2one → product.productcomodel_name='product.product'domain=[('type', '=', 'service'), ('purchase_method', '=', 'receive')]help="Service product used on the Purchase Order line when an FSO of this type is subcontracted to an external worker. The product should have invoicing policy 'Based on Received Quantities' and supplierinfo configured for each vendor."string='Subcontracting Service Product'
No public methods.
New fields (2)
-
fsm_order_countIntegercompute='_compute_fsm_order_count'string='FSO Count' -
fsm_order_idMany2one → fsm.ordercomodel_name='fsm.order'copy=Falsehelp='The Field Service Order that generated this Purchase Order.'index=Trueondelete='set null'string='Field Service Order'
-
action_view_fsm_order(self)Smart button action to open the linked FSO.
New fields (1)
-
is_fsm_subcontractorBooleanstring='Is Subcontractor?'
No public methods.