Skip to content
Health
45/100
poor
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 37 months ago
  • Required by15/25
    1 module depends on it
  • Maturity5/25
    In 1 Odoo series since 14.0

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

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

Description

This bridge module adds some smart buttons between Purchase and Subcontracting

DISCLAIMER: This module is a backport from Odoo SA and as such, it is not included in the OCA CLA.

That means we do not have a copy of the copyright on it like all other OCA modules.

This is a backporting of features from mrp_subcontracting modules from v15 allowing to setup a flow addressing the following use case:

Vendor 1 manufactures and sells “Finished Product”

Vendor 2 manufactures and sells “Component Product” (used to manufacture “Finished Product”)

Vendor 3 sells “Element Product” (used to manufacture “Component Product”)

As an example, in the case where there is no available qty for each of these three products, creating a PO purchasing “Finished product” for Vendor 1 generates:

  • The standard receipt picking from Vendor 1 to our warehouse
  • A PO for Vendor 2 for product “Component Product”
  • A subcontracting order for Vendor 1 for “Finished Product”, with component location: Vendor 1 subcontracting location

Once this PO is confirmed, this generates:

  • A dropship picking for Vendor 1 from Vendor 2 for “Component Product”
  • A subcontracting order for Vendor 2 for “Component Product”, with component location: Vendor 2 subcontracting location
  • A PO for Vendor 3 for product “Element Product”

Once this PO is confirmed, this generates:

  • A dropship picking for Vendor 2 from Vendor 3 for “Element Product”

Dependencies

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
po_form_mrp_subcontracting_purchase purchase.order.inherited.form.mrp.subcontracting.purchase purchase.order form Inherits purchase.purchase_order_form
stock_picking_form_mrp_subcontracting stock.picking.inherited.form.mrp.subcontracting stock.picking form Inherits stock.view_picking_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 9

New fields (1)
  • subcontracting_has_been_recorded Boolean
    copy=False args: 'Has been recorded'
Public methods (1)
  • subcontracting_record_component(self)
    Returns subcontracting issues Since we don't have a subcontracting_has_been_recorded field in version 14.0, we need to add functionality related to this field

New fields (1)
  • subcontracting_resupply_picking_count Integer
    compute='_compute_subcontracting_resupply_picking_count' help='Count of Subcontracting Resupply for component' args: 'Count of Subcontracting Resupply'
Public methods (2)
  • action_view_picking(self)
  • action_view_subcontracting_resupply(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • create_missing_subcontracting_dropshipping_rules(self)
    @api.model
    Adds new stock rules for missing subcontracting dropshipping

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • subcontracting_source_purchase_count Integer
    compute='_compute_subcontracting_source_purchase_count' help='Number of subcontracting Purchase Order Source' args: 'Number of subcontracting PO Source'
Public methods (1)
  • action_view_subcontracting_source_purchase(self)
    Returns action for subcontracting source purchase

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • subcontracting_dropshipping_pull_id Many2one → stock.rule
    args: 'stock.rule', 'Subcontracting-Dropshipping MTS Rule'
  • subcontracting_dropshipping_to_resupply Boolean
    default=True help='Dropship subcontractors with components' args: 'Dropship Subcontractors'
Public methods (0)

No public methods.