Skip to content
Health
45/100
poor
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 107 months ago
  • Required by15/25
    1 module depends on it
  • Maturity5/25
    In 1 Odoo series since 9.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis 5 migration notes 1 model 4 views 0 HTTP endpoints

Description

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
quality_control_issue

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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

HTTP endpoints 0

No HTTP endpoints found for this module.

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