Stock Request Employee

stock_request_employee
REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/11.0/stock_request_employee
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Creu Blanca
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Creu Blanca
COMMITTERS
COMMITTERSoca-travis, OCA-git-bot, Jaime Arroyo
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/stock-logistics-warehouse:
    - stock_request
odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - barcodes
    - web_planner
    - hr
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
stock_request_form_view stock.request.form (in stock_request_employee) stock.request field Inherits stock_request.view_stock_request_form
stock_request_order_form stock.request.order.form (in stock_request_employee) stock.request.order field Inherits stock_request.stock_request_order_form
stock_request_order_search stock.request.order.search (in stock_request_employee) stock.request.order field Inherits stock_request.stock_request_order_search
stock_request_search_view stock.request.search (in stock_request_employee) stock.request field Inherits stock_request.stock_request_search
view_employee_form hr.employee.form (in stock_request_employee) hr.employee div Inherits hr.view_employee_form
Models touched (4)

New fields (4)
  • stock_order_count Integer
    compute='_compute_stock_order_count'
  • stock_order_ids One2many → stock.request.order
    inverse_name='employee_id' readonly=True args: 'stock.request.order'
  • stock_request_count Integer
    compute='_compute_stock_request_count'
  • stock_request_ids One2many → stock.request
    inverse_name='employee_id' readonly=True args: 'stock.request'
Public methods (1)
  • action_view_stock_requests(self)
    @api.multi

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • employee_id Many2one → hr.employee
    args: 'hr.employee'
  • to_employee Boolean
    help='Set this field to select an employee as Stock Location'
Public methods (0)

No public methods.

New fields (2)
  • employee_id Many2one → hr.employee
    args: 'hr.employee'
  • to_employee Boolean
    help='Set this field to select an employee as Stock Location'
Public methods (2)
  • change_childs(self)
  • fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False)
    @api.model
    Add to the existing context of the field `stock_request_ids` "employee_id" key for avoiding to be replaced by other view inheritance. We have to do this processing in text mode without evaluating context, as it can contain JS stuff.