Stock Scrap

stock_scrap
REPOSITORY
REPOSITORYOCA/stock-logistics-workflow
GIT
GIThttps://github.com/OCA/stock-logistics-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-workflow/tree/9.0/stock_scrap
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWarehouse Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Eficent, Odoo
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Eficent, Odoo
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, Weblate, lreficent
WEBSITE
WEBSITEhttps://odoo-community.org/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - report
    - procurement
    - barcodes
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
stock_scrap_form_view stock.scrap.form stock.scrap form New
stock_scrap_form_view2 stock.scrap.form2 stock.scrap form New
stock_scrap_search_view stock.scrap.search stock.scrap search New
stock_scrap_tree_view stock.scrap.tree stock.scrap tree New
Models touched (1)

New fields (15)
  • date_expected Datetime
    default=fields.Datetime.now args: 'Expected Date'
  • location_id Many2one → stock.location
    default=_get_default_location_id domain="[('usage', '=', 'internal')]" required=True states={'done': [('readonly', True)]} args: 'stock.location', 'Location'
  • lot_id Many2one → stock.production.lot
    domain="[('product_id', '=', product_id)]" states={'done': [('readonly', True)]} args: 'stock.production.lot', 'Lot'
  • move_id Many2one → stock.move
    readonly=True args: 'stock.move', 'Scrap Move'
  • name Char
    copy=False default=<expr> readonly=True required=True states={'done': [('readonly', True)]} args: 'Reference'
  • origin Char
    string='Source Document'
  • owner_id Many2one → res.partner
    states={'done': [('readonly', True)]} args: 'res.partner', 'Owner'
  • package_id Many2one → stock.quant.package
    states={'done': [('readonly', True)]} args: 'stock.quant.package', 'Package'
  • picking_id Many2one → stock.picking
    states={'done': [('readonly', True)]} args: 'stock.picking', 'Picking'
  • product_id Many2one → product.product
    required=True states={'done': [('readonly', True)]} args: 'product.product', 'Product'
  • product_uom_id Many2one → product.uom
    required=True states={'done': [('readonly', True)]} args: 'product.uom', 'Unit of Measure'
  • scrap_location_id Many2one → stock.location
    default=_get_default_scrap_location_id domain="[('scrap_location', '=', True)]" required=True states={'done': [('readonly', True)]} args: 'stock.location', 'Scrap Location'
  • scrap_qty Float
    default=1.0 required=True states={'done': [('readonly', True)]} args: 'Quantity'
  • state Selection
    default='draft' string='Status' args: [('draft', 'Draft'), ('done', 'Done')]
  • tracking Selection
    readonly=True related='product_id.tracking' args: 'Product Tracking'
Public methods (7)
  • action_done(self)
    @api.multi
  • action_get_stock_move(self)
    @api.multi
  • action_get_stock_picking(self)
    @api.multi
  • create(self, vals)
    @api.model
  • do_scrap(self)
    @api.multi
  • onchange_product_id(self)
    @api.onchange('product_id')
  • unlink(self)
    @api.multi