Repository
OCA/manufacture · module folder · Try on Runboat
Module version
1.2.0
Category
Quality control
Folder size
0.29 MB
License
AGPL-3
Application
No
Auto-installable
Yes
Website
https://github.com/OCA/manufacture
Last tracking update
2026-08-07 08:42:53
Authors
Odoo Community Association (OCA), Agile Business Group, AvanzOSC, Tecnativa
Maintainers
Odoo Community Association (OCA), Agile Business Group, AvanzOSC, Tecnativa
Committers
AaronHForgeFlow, Weblate, OCA-git-bot, oca-ci, Dante Pereyra // Solvos
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
quality_control_mrp_oca, repair_quality_control
Description
This module defines triggers that creates inspections when stock moves
are done.

It also adds some shortcuts on picking and lots to these inspections.

Code Analysis

Views touched (9)
XML IDNameModelTypeStatus
qc_inspection_form_view_picking qc.inspection.form.view.picking qc.inspection form Inherits quality_control_oca.qc_inspection_form_view
qc_inspection_line_search_stock_view qc.inspection.line.search.stock qc.inspection.line search Inherits quality_control_oca.qc_inspection_line_search_view
qc_inspection_line_tree_stock_view qc.inspection.line.tree.stock qc.inspection.line tree Inherits quality_control_oca.qc_inspection_line_tree_view
qc_inspection_search_view_picking qc.inspection.search.view.picking qc.inspection search Inherits quality_control_oca.qc_inspection_search_view
qc_inspection_tree_view_picking qc.inspection.tree.view.picking qc.inspection tree Inherits quality_control_oca.qc_inspection_tree_view
qc_trigger_form_view qc.trigger.form qc.trigger form Inherits quality_control_oca.qc_trigger_form_view
qc_trigger_tree_view qc.trigger.form qc.trigger form Inherits quality_control_oca.qc_trigger_tree_view
stock_lot_qc_view stock.lot.qc.view stock.lot form Inherits stock.view_production_lot_form
stock_picking_qc_view stock.picking.qc.view stock.picking form Inherits stock.view_picking_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (7)

New fields (3)
  • lot_id Many2one → stock.lot
    comodel_name='stock.lot' compute='_compute_lot' store=True
  • picking_id Many2one → stock.picking
    comodel_name='stock.picking' compute='_compute_picking' store=True
  • picking_origin Char
    related='picking_id.origin' string='Picking Source Document'
Public methods (2)
  • object_selection_values(self)
  • onchange_object_id(self)
    @api.onchange('object_id')

New fields (2)
  • lot_id Many2one → stock.lot
    comodel_name='stock.lot' related='inspection_id.lot_id' store=True
  • picking_id Many2one → stock.picking
    comodel_name='stock.picking' related='inspection_id.picking_id' store=True
Public methods (0)

No public methods.

New fields (2)
  • inspection_per_lot Boolean
    help='If checked, an inspection per used lot/serial number will be created in stock pickings.'
  • picking_type_id Many2one → stock.picking.type
    comodel_name='stock.picking.type' ondelete='cascade'
Public methods (0)

No public methods.

New fields (5)
  • created_inspections Integer
    compute='_compute_count_inspections' string='Created inspections'
  • done_inspections Integer
    compute='_compute_count_inspections' string='Done inspections'
  • failed_inspections Integer
    compute='_compute_count_inspections' string='Inspections failed'
  • passed_inspections Integer
    compute='_compute_count_inspections' string='Inspections OK'
  • qc_inspections_ids One2many → qc.inspection
    comodel_name='qc.inspection' copy=False help='Inspections related to this lot.' inverse_name='lot_id' string='Inspections'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • trigger_inspection(self, timings, partner=False)
  • write(self, vals)

New fields (5)
  • created_inspections Integer
    compute='_compute_count_inspections' string='Created inspections'
  • done_inspections Integer
    compute='_compute_count_inspections' string='Done inspections'
  • failed_inspections Integer
    compute='_compute_count_inspections' string='Inspections failed'
  • passed_inspections Integer
    compute='_compute_count_inspections' string='Inspections OK'
  • qc_inspections_ids One2many → qc.inspection
    comodel_name='qc.inspection' copy=False help='Inspections related to this picking.' inverse_name='picking_id' string='Inspections'
Public methods (2)
  • action_cancel(self)
  • trigger_inspections(self, timings)
    Triggers the creation of or an update on inspections for attached stock moves :param: timings: list of timings among 'before', 'after' and 'plan_ahead'

New fields (0)

No new fields.

Public methods (2)
  • create(self, val_list)
    @api.model_create_multi
  • write(self, vals)

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
98 days ago
Last activity
72 days ago
Repository
OCA/manufacture
Pull request
[19.0][MIG] quality_control_stock_oca: Migration to 19.0 (#1785)