Repair Scrap

repair_scrap
REPOSITORY
REPOSITORYOCA/repair
GIT
GIThttps://github.com/OCA/repair.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/repair/tree/15.0/repair_scrap
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYRepair
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSAaronHForgeFlow, OCA-git-bot, oca-ci, ThiagoMForgeFlow
WEBSITE
WEBSITEhttps://github.com/OCA/repair
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:36
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/repair:
    - repair_type
odoo/odoo:
    - repair
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - sale_management
    - sale
    - sales_team
    - payment
    - account
    - analytic
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
repair_type_view_form_scrap Repair Types Form - Scrap repair.type field Inherits repair_type.repair_type_view_form
repair_type_view_tree_scrap Repair Types List - Scrap repair.type field Inherits repair_type.repair_type_view_tree
stock_scrap_form_view_repair stock.scrap.form - Repair stock.scrap button Inherits stock.stock_scrap_form_view
view_repair_order_form_scrap repair.form - Scrap repair.order div Inherits repair.view_repair_order_form
view_repair_order_form_scrap_button repair.form - Scrap Button repair.order header Inherits repair.view_repair_order_form
view_repair_scrap Create Scrap repair_make_scrap.wizard form New
Models touched (7)

New fields (2)
  • scrap_count Integer
    compute='_compute_scrap_count' compute_sudo=True string='# Scrap'
  • scrap_ids One2many → stock.scrap
    args: 'stock.scrap', 'repair_id'
Public methods (1)
  • action_view_scrap_transfers(self)

New fields (1)
  • scrap_location_id Many2one → stock.location
    comodel_name='stock.location' string='Scrap Destination Location'
Public methods (0)

No public methods.

New fields (1)
  • item_ids One2many → repair_make_scrap_item.wizard
    comodel_name='repair_make_scrap_item.wizard' inverse_name='wiz_id' string='Items'
Public methods (2)
  • action_create_scrap(self)
  • default_get(self, fields_list)
    @api.model

New fields (9)
  • company_id Many2one → res.company
    related='repair_id.company_id' args: 'res.company'
  • location_id Many2one → stock.location
    default=<expr> domain="[('usage', '=', 'internal'), ('company_id', 'in', [company_id, False])]" required=True string='Source Location' args: 'stock.location'
  • lot_id Many2one → stock.production.lot
    string='Lot/Serial' args: 'stock.production.lot'
  • product_id Many2one → product.product
    required=True string='Product' args: 'product.product'
  • product_qty Float
    copy=False digits='Product Unit of Measure' string='Quantity Ordered'
  • repair_id Many2one → repair.order
    default=<expr> ondelete='cascade' required=True string='repair Order' args: 'repair.order'
  • scrap_location_id Many2one → stock.location
    default=<expr> domain="[('scrap_location', '=', True)]" required=True string='Scrap Location' args: 'stock.location'
  • uom_id Many2one → uom.uom
    string='Unit of Measure' args: 'uom.uom'
  • wiz_id Many2one → repair_make_scrap.wizard
    required=True string='Wizard' args: 'repair_make_scrap.wizard'
Public methods (1)
  • get_repair(self)

New fields (1)
  • is_repair_scrap Boolean
    copy=False help='This Stock Move has been created from a Scrap operation in the Repair.' string='Is repair Scrap'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • is_repair_scrap Boolean
    copy=False default=False help='This Stock Move has been created from a Scrap operation in Repair.'
  • repair_id Many2one → repair.order
    string='Repair order' args: 'repair.order'
Public methods (2)
  • action_view_repair_order(self)
  • do_scrap(self)