TIP: You can type at any time to perform a new search.
Stock Scrap
stock_scrap · OCA/stock-logistics-workflow
Security findings
Migration considerations
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.exceptions` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
stock_scrap_form_view— For a target of Odoo 17.0+: view 'stock_scrap_form_view' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · sourcestock_scrap_form_view2— For a target of Odoo 17.0+: view 'stock_scrap_form_view2' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · sourcestock_scrap_tree_view— View 'stock_scrap_tree_view' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/stock-logistics-workflow · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Warehouse Management
- Folder size
- 0.06 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://odoo-community.org/
- Last tracking update
- 2026-10-03 22:16:53
- Authors
- Odoo, Odoo Community Association (OCA), Eficent
- Maintainers
- Odoo, Odoo Community Association (OCA), Eficent
- Committers
- Weblate, OCA Transbot, oca-travis, lreficent
Code Analysis
Views touched (4)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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 |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (1)
New fields (15)
-
date_expectedDatetimedefault=fields.Datetime.now args: 'Expected Date' -
location_idMany2one → stock.locationdefault=_get_default_location_iddomain="[('usage', '=', 'internal')]"required=Truestates={'done': [('readonly', True)]} args: 'stock.location', 'Location' -
lot_idMany2one → stock.production.lotdomain="[('product_id', '=', product_id)]"states={'done': [('readonly', True)]} args: 'stock.production.lot', 'Lot' -
move_idMany2one → stock.movereadonly=True args: 'stock.move', 'Scrap Move' -
nameCharcopy=Falsedefault=<expr>readonly=Truerequired=Truestates={'done': [('readonly', True)]} args: 'Reference' -
originCharstring='Source Document' -
owner_idMany2one → res.partnerstates={'done': [('readonly', True)]} args: 'res.partner', 'Owner' -
package_idMany2one → stock.quant.packagestates={'done': [('readonly', True)]} args: 'stock.quant.package', 'Package' -
picking_idMany2one → stock.pickingstates={'done': [('readonly', True)]} args: 'stock.picking', 'Picking' -
product_idMany2one → product.productrequired=Truestates={'done': [('readonly', True)]} args: 'product.product', 'Product' -
product_uom_idMany2one → product.uomrequired=Truestates={'done': [('readonly', True)]} args: 'product.uom', 'Unit of Measure' -
scrap_location_idMany2one → stock.locationdefault=_get_default_scrap_location_iddomain="[('scrap_location', '=', True)]"required=Truestates={'done': [('readonly', True)]} args: 'stock.location', 'Scrap Location' -
scrap_qtyFloatdefault=1.0required=Truestates={'done': [('readonly', True)]} args: 'Quantity' -
stateSelectiondefault='draft'string='Status' args: [('draft', 'Draft'), ('done', 'Done')] -
trackingSelectionreadonly=Truerelated='product_id.tracking' args: 'Product Tracking'
-
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