Field Service Stock Scrap

fieldservice_stock_scrap
REPOSITORY
REPOSITORYOCA/field-service
GIT
GIThttps://github.com/OCA/field-service.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/field-service/tree/17.0/fieldservice_stock_scrap
VERSION
VERSION 1.2.0
CATEGORY
CATEGORYField Service
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), APSL-Nagarro, Antoni Marroig
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), APSL-Nagarro, Antoni Marroig
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Antoni Marroig Campomar
WEBSITE
WEBSITEhttps://github.com/OCA/field-service
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/field-service:
    - fieldservice_stock_request
    - fieldservice_stock
    - fieldservice
    - base_territory
OCA/stock-logistics-request:
    - stock_request_direction
    - stock_request
    - stock_request_picking_type
    - stock_request_submit
odoo/odoo:
    - base
    - base_geolocalize
    - base_setup
    - web
    - resource
    - contacts
    - mail
    - bus
    - web_tour
    - stock
    - product
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Scrap stock from Field Service orders of Stock Requests with inbound direction

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
fsm_order_form fsm.order.form fsm.order xpath Inherits fieldservice.fsm_order_form
scrap_stock_wizard_view_form scrap.stock.wizard.form scrap.stock.wizard form New
stock_scrap_form stock.scrap.form stock.scrap xpath Inherits stock.stock_scrap_form_view
stock_scrap_tree stock.scrap.tree stock.scrap xpath Inherits stock.stock_scrap_tree_view
Models touched (4)

New fields (2)
  • scrap_count Integer
    compute='_compute_scrap_ids' string='Scrap Orders'
  • scrap_ids One2many → stock.scrap
    string='Scrap Operations' args: 'stock.scrap', 'fsm_order_id'
Public methods (2)
  • action_scrap_stock(self)
  • action_view_scraps(self)

New fields (6)
  • location_id Many2one → stock.location
    domain="[('usage','=','internal')]" required=True args: 'stock.location', 'Internal Location'
  • product_id Many2one → product.product
    domain="[('type', 'in', ['product', 'consu'])]" required=True args: 'product.product'
  • quantity Float
    default=1 digits='Product Unit of Measure' required=True
  • scrap_qty Float
    default=0 digits='Product Unit of Measure' required=True args: 'Scrap Quantity'
  • scrap_stock_id Many2one → scrap.stock.wizard
    args: 'scrap.stock.wizard', 'Scrap Stock Wizard'
  • stock_request_id Many2one → stock.request
    required=True args: 'stock.request'
Public methods (0)

No public methods.

New fields (3)
  • company_id Many2one → res.company
    default=<expr> required=True args: 'res.company', 'Company'
  • scrap_location_id Many2one → stock.location
    compute='_compute_scrap_location_id' domain="[('scrap_location', '=', True)]" precompute=True readonly=False required=True store=True args: 'stock.location', 'Scrap Location'
  • scrap_stock_entries One2many → scrap.stock.entry.wizard
    default=_default_scrap_stock_entries args: 'scrap.stock.entry.wizard', 'scrap_stock_id', 'Scrap stock entries'
Public methods (2)
  • action_scrap(self)
  • scrap(self, product_id, scrap_qty, scrap_id)

New fields (1)
  • fsm_order_id Many2one → fsm.order
    ondelete='cascade' string='Field Service Order' args: 'fsm.order'
Public methods (0)

No public methods.