TIP: You can type at any time to perform a new search.

Security findings

Repository
odoo/odoo · module folder
Module version
0.1.0
Category
Sales/Sales
Folder size
0.53 MB
License
LGPL-3
Application
No
Auto-installable
Yes
Website
None
Last tracking update
2026-10-05 00:19:52
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Thibault Delavallée, Odoo Translation Bot, Christophe Matthieu, Victor Feyens, Andrea Grazioso (agr-odoo), Tiffany Chang (tic), Dylan Kiss (dyki), Julien Alardot (jual), Léo Gizard, Saif (segn), Logan Staelens, roto-odoo, Harrison Hutton, Julien Launois (jula), Nisarg (nipl), Abo Taha
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
project_sale_expense, sale_expense_margin, spreadsheet_dashboard_hr_expense
Description
Reinvoice Employee Expense
==========================

Create some products for which you can re-invoice the costs.
This module allow to reinvoice employee expense, by setting the SO directly on the expense.

Code Analysis info_outline

Views touched (8)
XML IDNameModelTypeStatus
expense_attachment_selection_wizard_view Attachments Selection expense.attachment.selection.wizard form New
hr_expense_form_view_inherit_sale_expense hr.expense.form.inherit.sale.expense hr.expense form Inherits hr_expense.hr_expense_view_form
hr_expense_split_view_inherit_sale_expense hr.expense.split.view.inherit.sale.expense hr.expense.split.wizard Inherits hr_expense.hr_expense_split
hr_expense_tree_view_inherit_sale_expense hr.expense.list.inherit.sale.expense hr.expense list Inherits hr_expense.view_expenses_tree
product_product_view_form_inherit_sale_expense product.template.expense product.product form Inherits hr_expense.product_product_expense_form_view
product_product_view_list_inherit_sale_expense product.product.view.list.inherit.sale.expense product.product list Inherits hr_expense.product_product_expense_categories_tree_view
sale_order_form_view_inherit sale.order.form.inherit.sale.expense sale.order form Inherits sale.view_order_form
sale_order_reinvoice_tree_view sale.order.list.reinvoice.expense sale.order list Inherits sale.sale_order_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (8)

New fields (0)

No new fields.

Public methods (2)
  • button_draft(self)
  • unlink(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • sale_order_id Many2one → sale.order
    args: 'sale.order'
  • selected_attachments Json
    compute='_compute_selected_attachments' readonly=False store=True
Public methods (1)
  • action_import_attachments(self)

New fields (4)
  • attach_receipts_to_invoice Boolean
    copy=False help='Attach the expense receipts to customer invoices generated later from the related sales order' string='Attach receipts to future customer invoices'
  • can_be_reinvoiced Boolean
    compute='_compute_can_be_reinvoiced' args: 'Can be reinvoiced'
  • sale_order_id Many2one → sale.order
    check_company=True compute='_compute_sale_order_id' domain="[('state', '=', 'sale')]" help='If the category has an expense policy, it will be reinvoiced on this sales order' index='btree_not_null' readonly=False store=True string='Reinvoice to' tracking=True args: 'sale.order'
  • sale_order_line_id Many2one → sale.order.line
    comodel_name='sale.order.line' compute='_compute_sale_order_id' index='btree_not_null' readonly=True store=True
Public methods (1)
  • action_open_sale_order(self)

New fields (2)
  • can_be_reinvoiced Boolean
    compute='_compute_can_be_reinvoiced' args: 'Can be reinvoiced'
  • sale_order_id Many2one → sale.order
    compute='_compute_sale_order_id' domain="[('state', '=', 'sale'), ('company_id', '=', company_id)]" readonly=False store=True string='Reinvoice to' args: 'sale.order'
Public methods (0)

No public methods.

New fields (1)
  • expense_policy_tooltip Char
    compute='_compute_expense_policy_tooltip'
Public methods (0)

No public methods.

New fields (3)
  • expense_count Integer
    compute='_compute_expense_count' compute_sudo=True args: '# of Expenses'
  • expense_ids One2many → hr.expense
    comodel_name='hr.expense' inverse_name='sale_order_id' readonly=True string='Expenses'
  • is_linked_to_expense_with_attachment Boolean
    compute='_compute_is_linked_to_expense_with_attachment' compute_sudo=True
Public methods (1)
  • action_copy_reinvoiced_expense_receipts(self)

New fields (1)
  • expense_ids One2many → hr.expense
    comodel_name='hr.expense' inverse_name='sale_order_line_id' readonly=True string='Expenses'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…