Skip to content

[18.0][ADD] fieldservice_subcontracting#1535

Open
edescalona wants to merge 1 commit into
OCA:18.0from
BinhexTeam:18.0-add-fieldservice_subcontracting
Open

[18.0][ADD] fieldservice_subcontracting#1535
edescalona wants to merge 1 commit into
OCA:18.0from
BinhexTeam:18.0-add-fieldservice_subcontracting

Conversation

@edescalona

@edescalona edescalona commented May 13, 2026

Copy link
Copy Markdown

@BinhexTeam

T22502

The module integrates Field Service with Purchase to support subcontracted Field Service Orders.

It allows companies to assign an FSO to a worker, resolve the subcontract vendor from that worker or its parent company, automatically create a draft Purchase Order for the subcontracted service, update received quantities from FSO timesheets, and navigate between the FSO and the related Purchase Order.

Main features:

  • Mark vendor partners as subcontractors.
  • Resolve the subcontract vendor from the assigned worker:
    • use the worker partner's parent company when it is marked as subcontractor;
    • otherwise, use the worker related partner when it is marked as subcontractor;
    • if neither is marked as subcontractor, treat the worker as internal and do not create a Purchase Order.
  • Require subcontractor partners to be configured as vendors.
  • Configure a subcontracting service product on Field Service order templates.
  • Create draft Purchase Orders from configured Field Service stages.
  • Set the Purchase Order Expected Arrival from the FSO Scheduled End.
  • Keep the Purchase Order Expected Arrival synchronized when FSO planned dates change.
  • Update Purchase Order received quantities from FSO timesheets.
  • Add smart buttons to navigate between FSOs and Purchase Orders.
  • Protect reassignment and cancellation flows when active subcontract Purchase Orders exist.
  • Cancel draft vendor bills before cancelling related subcontract Purchase Orders.
  • Prevent automatic PO cancellation when related vendor bills are already posted.

Typical workflow:

  • Configure the subcontractor vendor partner and enable Is Subcontractor.
  • For workers employed by a subcontractor company, set that company as the parent of the worker related partner.
  • Configure the subcontracting service product on the Field Service template.
  • Assign the server action that creates subcontract POs to the desired Field Service stage.
  • Assign the server action that updates received quantities to the closing stage.
  • Assign a worker to an FSO and move it through the configured stages.
  • Review, confirm and bill the generated Purchase Order using the standard Purchase flow.

@OCA-git-bot OCA-git-bot added series:18.0 mod:fieldservice_subcontracting Module fieldservice_subcontracting labels May 13, 2026
@edescalona edescalona force-pushed the 18.0-add-fieldservice_subcontracting branch 7 times, most recently from d2c42b7 to 797fc19 Compare May 15, 2026 22:10
@edescalona edescalona marked this pull request as ready for review May 16, 2026 14:27
@max3903 max3903 added this to the 18.0 milestone Jun 20, 2026
@edescalona edescalona force-pushed the 18.0-add-fieldservice_subcontracting branch 2 times, most recently from eb51976 to ee92f96 Compare June 30, 2026 23:03
…urchasing department to automate the outsourcing workflow
@edescalona edescalona force-pushed the 18.0-add-fieldservice_subcontracting branch from ee92f96 to 5c13e1b Compare July 3, 2026 02:48
@max3903 max3903 self-assigned this Jul 3, 2026
@max3903

max3903 commented Jul 3, 2026

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-1535-by-max3903-bump-nobump, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

@max3903 The merge process could not be finalized, because command twine upload --disable-progress-bar --non-interactive --repository-url https://upload.pypi.org/legacy/ -u __token__ odoo_addon_fieldservice_subcontracting-18.0.1.0.0.2-py3-none-any.whl failed with output:

Uploading distributions to https://upload.pypi.org/legacy/
Uploading odoo_addon_fieldservice_subcontracting-18.0.1.0.0.2-py3-none-any.whl
�[33mWARNING �[0m Error during upload. Retry with the --verbose option for more details. 
�[31mERROR   �[0m HTTPError: 429 Too Many Requests from https://upload.pypi.org/legacy/  
         Too Many Requests                                                      

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants