HR Expense Product Policy

hr_expense_product_policy
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/8.0/hr_expense_product_policy
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYHuman Resource
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), OpenSynergy Indonesia
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), OpenSynergy Indonesia
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, Andhitia Rama
WEBSITE
WEBSITEhttps://opensynergy-indonesia.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_expense
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - resource
    - board
    - account_accountant
    - account_voucher
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
hr_department_view_form hr.department form hr.department data Inherits hr.view_department_form
hr_employee_view_form_requiredProduct hr.employee.view.form hr.employee data Inherits hr.view_employee_form
hr_job_view_form hr.job form hr.job data Inherits hr.view_hr_job_form
view_expenses_form hr.expense.form hr.expense.expense data Inherits hr_expense.view_expenses_form
Models touched (5)

New fields (3)
  • all_allowed_expense_product_ids Many2many → product.product
    comodel_name='product.product' compute='_compute_all_allowed_product_ids' store=True string='All Allowed Expense Product'
  • allowed_expense_product_categ_ids Many2many → product.category
    comodel_name='product.category' string='Allowed Expense Product Categories'
  • allowed_expense_product_ids Many2many → product.product
    comodel_name='product.product' domain=[('hr_expense_ok', '=', True)] string='Allowed Expense Product'
Public methods (0)

No public methods.

New fields (5)
  • all_allowed_expense_product_ids Many2many → product.product
    comodel_name='product.product' compute='_compute_all_allowed_product_ids' store=True string='All Allowed Expense Product'
  • allowed_expense_product_categ_ids Many2many → product.category
    comodel_name='product.category' string='Allowed Expense Product Categories'
  • allowed_expense_product_ids Many2many → product.product
    comodel_name='product.product' domain=[('hr_expense_ok', '=', True)] string='Allowed Expense Product'
  • limit_product_selection Boolean
    string='Limit Product Selection'
  • required_expense_product Boolean
    help='Turn on this options if this employee\n has to choose product when creating expenses' string='Required Expense Product'
Public methods (0)

No public methods.

New fields (3)
  • all_allowed_expense_product_ids Many2many → product.product
    comodel_name='product.product' compute='_compute_all_allowed_product_ids' store=False string='All Allowed Expense Product'
  • limit_product_selection Boolean
    string='Limit Product Selection'
  • required_expense_product Boolean
    string='Required Expense Product'
Public methods (1)
  • onchange_employee(self)
    @api.onchange('employee_id')

New fields (1)
  • required_expense_product Boolean
    related='expense_id.required_expense_product' store=True string='Required Expense Product'
Public methods (0)

No public methods.

New fields (3)
  • all_allowed_expense_product_ids Many2many → product.product
    comodel_name='product.product' compute='_compute_all_allowed_product_ids' store=True string='All Allowed Expense Product'
  • allowed_expense_product_categ_ids Many2many → product.category
    comodel_name='product.category' string='Allowed Expense Product Categories'
  • allowed_expense_product_ids Many2many → product.product
    comodel_name='product.product' domain=[('hr_expense_ok', '=', True)] string='Allowed Expense Product'
Public methods (0)

No public methods.