Mass Scrap

stock_mass_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/14.0/stock_mass_scrap
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYInventory
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSjcoux, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:04
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product_expiry
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
mass_scrap_view_form mass.scrap.form mass.scrap form New
Models touched (2)

New fields (4)
  • date_expiration_to_scrap Datetime
    default=<expr> help='All the serial numbers/lots with an expiration date inferior to this date will be scrapped' required=True string='Expiration date to scrap'
  • scrap_location_id Many2one → stock.location
    comodel_name='stock.location' default=<expr> domain="[('scrap_location', '=', True)]" required=True
  • specific_warehouse_id Many2one → stock.warehouse
    comodel_name='stock.warehouse' help='If you choose a warehouse here, only the serial numbers/lots currently stored in this warehouse will be scrapped'
  • stock_quant_ids Many2many → stock.quant
    comodel_name='stock.quant' readonly=True
Public methods (2)
  • button_confirm(self)
    Create a scrap for each selected quant.
  • onchange_quants_to_scrap(self)
    @api.onchange('date_expiration_to_scrap', 'scrap_location_id', 'specific_warehouse_id')

New fields (0)

No new fields.

Public methods (1)
  • mass_validate(self)