Stock Scrap Tier Validation

stock_scrap_tier_validation
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/17.0/stock_scrap_tier_validation
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYStock
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Jarsa
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Jarsa
COMMITTERS
COMMITTERSStefan Rijnhart, OCA-git-bot, oca-ci, andrea
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:07
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-ux:
    - base_tier_validation
odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module extends the functionality of Stock Scrap to support a tier
validation process.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
stock_scrap_form_view2 stock.scrap xpath Inherits stock.stock_scrap_form_view2
view_stock_scrap_filter stock.scrap.select - sale_tier_validation stock.scrap xpath Inherits stock.stock_scrap_search_view
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • button_scrap(self)
    Fix compatibility with stock_scrap_tier_validation. The way that super opens the scrap form in a popup window prevents the tier validation UI elements from being effective. The record is only saved when closing the popup. Given that it's only possible to check if the record needs validation after saving, the popup will always raise the 'validation required' error which blocks saving it. As a workaround, we open the unsaved scrap record in the main window so that it can be saved first and then be requested validation for in the usual way.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

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/15.0/stock_scrap_tier_validation
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYStock
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Jarsa
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Jarsa
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Jesús Alan Ramos Rodríguez, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:37
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-ux:
    - base_tier_validation
odoo/odoo:
    - 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
view_stock_scrap_filter stock.scrap.select - sale_tier_validation stock.scrap xpath Inherits stock.stock_scrap_search_view
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.