Repository
OCA/manufacture · module folder · Try on Runboat
Module version
1.0.0
Category
Manufacturing
Folder size
0.05 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/manufacture
Last tracking update
2026-08-07 09:06:24
Authors
Odoo Community Association (OCA), Quartile Limited, ForgeFlow
Maintainers
Odoo Community Association (OCA), Quartile Limited, ForgeFlow
Committers
OCA-git-bot, oca-ci, JasminSForgeFlow
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module does the following:

- Extends \_prepare_subcontract_mo_vals() and adds the purchase order
  line reference to the subcontracted manufacturing orders.
- Adds an action button in the purchase order form view to open related
  subcontracted manufacturing orders.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
mrp_production_form_view mrp.production.form mrp.production form Inherits mrp.mrp_production_form_view
purchase_order_form purchase.order.form purchase.order form Inherits purchase.purchase_order_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (2)
  • purchase_line_id Many2one → purchase.order.line
    readonly=True args: 'purchase.order.line', 'Subcontract Purchase Order Line'
  • purchase_order_id Many2one → purchase.order
    readonly=True related='purchase_line_id.order_id' store=True args: 'purchase.order', 'Subcontract Purchase Order'
Public methods (0)

No public methods.

New fields (2)
  • subcontract_production_count Integer
    compute='_compute_subcontract_production_count'
  • subcontract_production_ids One2many → mrp.production
    readonly=True args: 'mrp.production', 'purchase_order_id', 'Subcontract Production Orders'
Public methods (1)
  • action_view_mrp(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…