Repository
OCA/stock-logistics-warehouse · module folder · Try on Runboat
Module version
1.0.1
Category
Warehouse Management
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/stock-logistics-warehouse
Last tracking update
2026-08-07 08:22:57
Authors
Odoo Community Association (OCA), Open Source Integrators
Maintainers
Odoo Community Association (OCA), Open Source Integrators
Committers
Denis Roussel, Weblate, OCA-git-bot, oca-ci, John Herholz, Chris Mann
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
mrp_component_operation_scrap_reason
Description
Adds a reason code for scrapping operations and an interface for the
user to create scrap codes

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
stock_reason_code_form stock.reason.code.form stock.move form Inherits stock.view_move_form
stock_scrap_form2_reason_code stock.scrap.form2.reason.code stock.scrap form Inherits stock.stock_scrap_form_view2
stock_scrap_form_reason_code stock.scrap.form.reason.code stock.scrap form Inherits stock.stock_scrap_form_view
stock_scrap_tree_reason_code stock.scrap.tree.reason.code stock.scrap tree Inherits stock.stock_scrap_tree_view
view_scrap_reason_code_form scrap.reason.code.form scrap.reason.code form New
view_scrap_reason_code_list scrap.reason.code.list scrap.reason.code tree New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (4)
  • description Text
  • location_id Many2one → stock.location
    domain="[('scrap_location', '=', True)]" string='Scrap Location' args: 'stock.location'
  • name Char
    required=True args: 'Code'
  • product_category_ids Many2many → product.category
    comodel_name='product.category' help='Indicate the cateogories of products that can use this reason code when doing a scrap. If left empy, this reason code can be used with any product.' string='Allowed Product Categories'
Public methods (0)

No public methods.

New fields (1)
  • reason_code_id Many2one → scrap.reason.code
    args: 'scrap.reason.code'
Public methods (0)

No public methods.

New fields (3)
  • allowed_reason_code_ids Many2many → scrap.reason.code
    comodel_name='scrap.reason.code' compute='_compute_allowed_reason_code_ids'
  • reason_code_id Many2one → scrap.reason.code
    comodel_name='scrap.reason.code' domain="[('id', 'in', allowed_reason_code_ids)]"
  • scrap_location_id Many2one
    readonly=True
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
157 days ago
Last activity
104 days ago
Repository
OCA/stock-logistics-warehouse
Pull request
[19.0][MIG] scrap_reason_code: Migration to 19.0 (#2542)