Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 6 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 9 Odoo series since 11.0

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

Security findings
Grave / minor (static analysis)
Required by
0
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.07 MB
Module directory on disk
Code analysis 0 migration notes 3 models 6 views 0 HTTP endpoints

Description

Adds a reason code for scrapping operations and an interface for the user to create scrap codes

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

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

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 list 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="[('usage', '=', 'inventory')]" 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 categories 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…

Loading…

Loading…