Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
072c2af
[ADD] hr_expense_invoice
pedrobaeza Mar 9, 2015
679ac67
[IMP] hr_expense_invoice: Allow to create supplier invoice from expen…
pedrobaeza Nov 6, 2015
9027bc2
[FIX] Fix issue with 2 invoices on the same partner and the same tota…
kryskool Oct 17, 2016
1c4c2be
[MIG] hr_expense_invoice: Migration to 10.0
cubells Sep 27, 2017
4171f33
[MIG] hr_expense_invoice: Migration to 11.0
cubells Dec 11, 2018
65d9d38
Added translation using Weblate (German)
marylla Dec 18, 2018
89d2a2f
Translated using Weblate (German)
marylla Dec 18, 2018
7cf6d2b
[12.0][MIG] hr_expense_invoice
kittiu Apr 23, 2019
5a5730e
[12.0][IMP] hr_expense_invoice
kittiu Jun 11, 2019
76d2cb7
[12.0][IMP] hr_expense_invoice
kittiu Jun 13, 2019
27d2447
Translated using Weblate (German)
marylla Jul 12, 2019
7dafdc4
Translated using Weblate (Spanish)
Jul 23, 2019
54ee5c0
[FIX] Avoid not intended warnings
MiquelRForgeFlow Nov 14, 2019
163baca
[IMP] hr_expense_invoice : black, isort
Saran440 Dec 5, 2019
2b6a303
[13.0][MIG] : hr_expense_invoice
Saran440 Dec 5, 2019
bf2beb2
[IMP] hr_expense_invoice: onchange invoice
chienandalu Sep 14, 2020
b94f137
[FIX] hr_expense_invoice: Reset taxes on invoice change
pedrobaeza Jan 21, 2021
143297c
[FIX] hr_expense_invoice: Proper analytic account field name
pedrobaeza Jan 23, 2021
d872795
[FIX] hr_expense_invoice: Set groups to invoice_id field in expense view
victoralmau Feb 3, 2021
f019bd6
[OU-ADD] hr_expense_invoice: Migration scripts
pedrobaeza Feb 21, 2021
1afe67b
[OU-FIX] hr_expense_invoice: Proper syntax
pedrobaeza Feb 22, 2021
40c6454
[IMP] hr_expense_invoice: Docstring + convention on not overwriting self
pedrobaeza Mar 22, 2021
443eef7
- Do reconciliations per line, so don't group invoices from different…
victoralmau Mar 26, 2021
00ce211
[FIX] hr_expense_invoice: Set empty tax_ids when create_invoice wizard
victoralmau Mar 26, 2021
8b8f783
[IMP] hr_expense_invoice: Remove expense_create_invoice wizard accord…
victoralmau Mar 29, 2021
d092177
[IMP] : Add migration to prevent error related to many2many in Transi…
victoralmau Mar 30, 2021
3de6007
[IMP] hr_expense_invoice: Add button to create invoice from expenses
victoralmau Apr 7, 2021
6f4fc18
[FIX] hr_expense_invoice: Allow create invoice from invoice_id field
victoralmau Apr 7, 2021
f9f7a45
[IMP] hr_expense_invoice: Prevent change invoice total when it's rela…
victoralmau Apr 8, 2021
22c0ba3
[FIX] hr_expense_invoice: Force save unit_amount expense (when invoic…
victoralmau Apr 8, 2021
e8278ee
[14.0][MIG] hr_expense_invoice
Saran440 Jul 21, 2021
9931c08
[FIX] hr_expense_invoice: Assign the partner_id and account_id correc…
victoralmau Sep 30, 2021
f5ac89e
[FIX] hr_expense_invoice: Changes in the test to avoid errors in the …
victoralmau Sep 30, 2021
5228f45
[MIG] hr_expense_invoice: Migration to 15.0
nicomacr Jan 21, 2022
302ab0f
[FIX] hr_expense_invoice: Resilient tests on multi-company
pedrobaeza Mar 16, 2022
67c0f78
setting the name of a new invoice to / in order to maintain proper se…
MosabWadea Apr 2, 2022
f0947e2
[FIX] hr_expense_invoice: do not display UoM and quantity label
LoisRForgeFlow May 25, 2022
bac00c8
[IMP] hr_expense_invoice: Change _validate_expense_invoice() function…
victoralmau Oct 26, 2022
daacee1
[FIX] hr_expense_invoice: Change SavepointCase to TransactionCase
victoralmau Nov 15, 2022
7b14173
[IMP] hr_expense_invoice: Copy attachments from expense to invoice
victoralmau Mar 3, 2023
45b515d
Added translation using Weblate (Italian)
mymage Jun 30, 2023
eda276b
Translated using Weblate (Italian)
francesco-ooops Oct 13, 2023
4501f16
Translated using Weblate (Spanish)
Ivorra78 Oct 29, 2023
6eb54f9
[MIG] hr_expense_invoice: Migration to 16.0
victoralmau Nov 22, 2023
67baa07
Translated using Weblate (Italian)
mymage Feb 23, 2024
f713761
[FIX+IMP] hr_expense_invoice: Proper accounting + UX
pedrobaeza May 15, 2024
613ffdd
Translated using Weblate (Italian)
mymage May 30, 2024
a52b26e
[IMP] hr_expense_invoice: pre-commit auto fixes
desdelinux Jul 15, 2024
b28cb4d
[MIG] hr_expense_invoice: Migration to 17.0
Jul 15, 2024
a5d8c72
[FIX] hr_expense_invoice: Proper partner
TheCloneMaster Oct 21, 2024
3d1c801
[FIX] hr_expense_invoice: Fix tests
victoralmau Nov 27, 2024
0c7f51e
[MIG] hr_expense_invoice: Migration to 18.0
cav-adhoc Dec 12, 2024
67b2365
[MIG] hr_expense_invoice: Continue migration to 18.0
david-banon-tecnativa Aug 13, 2025
3165e49
[FIX] hr_expense_invoice: Fix expense sheets with some invoices but n…
david-banon-tecnativa Aug 26, 2025
afc54e2
[UPD] Update hr_expense_invoice.pot
Sep 4, 2025
dfb4a74
[BOT] post-merge updates
OCA-git-bot Sep 4, 2025
f5a05cf
[FIX] hr_expense_invoice: Use base amount
pedrobaeza Jun 9, 2025
6787c46
[BOT] post-merge updates
OCA-git-bot Oct 14, 2025
28a9505
[FIX] hr_expense_invoice: Handle mixed lines
christian-ramos-tecnativa Nov 17, 2025
b555386
[BOT] post-merge updates
OCA-git-bot Nov 17, 2025
f0a090f
Added translation using Weblate (Turkish)
bo-eska Nov 20, 2025
8b7b2b2
[18.0][FIX] hr_expense_invoice: Allow mixed expense reports (with and…
dtec-landoo Mar 9, 2026
72754bd
[BOT] post-merge updates
OCA-git-bot Apr 6, 2026
666b7e3
Added translation using Weblate (Slovenian)
sysadminmatmoz Jun 2, 2026
92e5d4a
Translated using Weblate (Slovenian)
sysadminmatmoz Jun 2, 2026
e97ac81
Translated using Weblate (Slovenian)
sysadminmatmoz Jun 2, 2026
8618aca
Translated using Weblate (Turkish)
bo-eska Jun 3, 2026
9e18015
Translated using Weblate (Slovenian)
sysadminmatmoz Jun 8, 2026
9009056
[MIG] hr_expense_invoice: Migration to 19.0
Shide Jun 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 122 additions & 0 deletions hr_expense_invoice/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

================================
Supplier invoices on HR expenses
================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:85b7c666fd5804c4bc60c81b824e7fd5b22a60e9b7be702b07a7fb2deea2edfe
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr--expense-lightgray.png?logo=github
:target: https://github.com/OCA/hr-expense/tree/19.0/hr_expense_invoice
:alt: OCA/hr-expense
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-expense-19-0/hr-expense-19-0-hr_expense_invoice
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr-expense&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module should be used when a vendor bill is paid by an employee. It
allows to register a vendor bill, adding the corresponding journal items
to transfer the debt to the employee.

You can set the vendor bill in the Expense or create a new one.

**Table of contents**

.. contents::
:local:

Usage
=====

- Create an expense paid by an employee.
- Select a Vendor Bill or create a new one with "Create Vendor Bill"
button.
- Clic on Post Journal Entries button.
- At this point:

- A new Transfer Entry has been created to transfer the debt from the
Vendor to the Employee.
- Vendor Bill has been reconciled with the Transfer Entry.

- Go to the Transfer move by clicking on the "Transfer Moves" button.
- Pay this Entry clicking on the Gears > Pay.
- You will see:

- Vendor Bill has been reconciled with the Transfer Entry Vendor line.
- Transfer Entry Employee line has been paid.

Known issues / Roadmap
======================

- Multiple payment terms for a vendor bills are not handled correctly.
- Partial reconcile vendor bill are also not correctly handled.
- Since Odoo 19 only supports isolated expenses and clear vendor
bill/receipt creation, invoice_id field on expense should be migrated
to account_move_id field and deeply refactor the module.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr-expense/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/hr-expense/issues/new?body=module:%20hr_expense_invoice%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Vicent Cubells
- Víctor Martínez

- Kitti Upariphutthiphong <kittiu@ecosoft.co.th>
- Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
- Saran Lim. <saranl@ecosoft.co.th>
- Eduardo de Miguel (``Moduon <https://www.moduon.team/>``\ \_\_)

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/hr-expense <https://github.com/OCA/hr-expense/tree/19.0/hr_expense_invoice>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions hr_expense_invoice/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
17 changes: 17 additions & 0 deletions hr_expense_invoice/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2015-2021 Tecnativa - Pedro M. Baeza
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Supplier invoices on HR expenses",
"version": "19.0.1.0.0",
"category": "Human Resources",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/hr-expense",
"depends": ["hr_expense"],
"data": [
"views/hr_expense_views.xml",
],
"installable": True,
}
129 changes: 129 additions & 0 deletions hr_expense_invoice/i18n/cs_CZ.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_invoice
#
# Translators:
# Lukáš Spurný <lukasspurny8@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-23 03:45+0000\n"
"PO-Revision-Date: 2018-02-23 03:45+0000\n"
"Last-Translator: Lukáš Spurný <lukasspurny8@gmail.com>, 2018\n"
"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/"
"teams/23907/cs_CZ/)\n"
"Language: cs_CZ\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

#. module: hr_expense_invoice
#: model_terms:ir.ui.view,arch_db:hr_expense_invoice.view_move_form
msgid "<span>Expense</span>"
msgstr ""

#. module: hr_expense_invoice
#: model_terms:ir.ui.view,arch_db:hr_expense_invoice.hr_expense_sheet_form_view_inherit_sale_expense
msgid "Create Vendor Bill"
msgstr ""

#. module: hr_expense_invoice
#: model:ir.model,name:hr_expense_invoice.model_hr_expense
msgid "Expense"
msgstr "Výdaje"

#. module: hr_expense_invoice
#: model:ir.model,name:hr_expense_invoice.model_hr_expense_sheet
msgid "Expense Report"
msgstr "Zpráva o výdajích"

#. module: hr_expense_invoice
#: model:ir.model.fields,field_description:hr_expense_invoice.field_account_bank_statement_line__expense_ids
#: model:ir.model.fields,field_description:hr_expense_invoice.field_account_move__expense_ids
#: model:ir.model.fields,field_description:hr_expense_invoice.field_account_payment__expense_ids
#, fuzzy
msgid "Expenses"
msgstr "Výdaje"

#. module: hr_expense_invoice
#: model:ir.model.fields,field_description:hr_expense_invoice.field_hr_expense_sheet__invoice_count
#, fuzzy
msgid "Invoice Count"
msgstr "Faktura"

#. module: hr_expense_invoice
#. odoo-python
#: code:addons/hr_expense_invoice/models/hr_expense_sheet.py:0
#: model_terms:ir.ui.view,arch_db:hr_expense_invoice.hr_expense_sheet_form_view_inherit_sale_expense
#, fuzzy, python-format
msgid "Invoices"
msgstr "Faktura"

#. module: hr_expense_invoice
#: model:ir.model,name:hr_expense_invoice.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: hr_expense_invoice
#: model:ir.model,name:hr_expense_invoice.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: hr_expense_invoice
#: model:ir.model.fields,help:hr_expense_invoice.field_account_bank_statement_line__source_invoice_expense_id
#: model:ir.model.fields,help:hr_expense_invoice.field_account_move__source_invoice_expense_id
#: model:ir.model.fields,help:hr_expense_invoice.field_account_payment__source_invoice_expense_id
msgid ""
"Reference to the expense with a linked invoice that generated thistransfer "
"journal entry"
msgstr ""

#. module: hr_expense_invoice
#: model:ir.model.fields,field_description:hr_expense_invoice.field_hr_expense__sheet_id_state
msgid "Sheet state"
msgstr ""

#. module: hr_expense_invoice
#: model:ir.model.fields,field_description:hr_expense_invoice.field_account_bank_statement_line__source_invoice_expense_id
#: model:ir.model.fields,field_description:hr_expense_invoice.field_account_move__source_invoice_expense_id
#: model:ir.model.fields,field_description:hr_expense_invoice.field_account_payment__source_invoice_expense_id
msgid "Source Invoice Expense"
msgstr ""

#. module: hr_expense_invoice
#: model:ir.model.fields,field_description:hr_expense_invoice.field_hr_expense__transfer_move_ids
msgid "Transfer Move"
msgstr ""

#. module: hr_expense_invoice
#: model:ir.model.fields,field_description:hr_expense_invoice.field_hr_expense__invoice_id
msgid "Vendor Bill"
msgstr ""

#. module: hr_expense_invoice
#. odoo-python
#: code:addons/hr_expense_invoice/models/hr_expense_sheet.py:0
#, python-format
msgid ""
"Vendor bill amount mismatch!\n"
"Please make sure amount in vendor bills equal to amount of its expense lines"
msgstr ""

#. module: hr_expense_invoice
#. odoo-python
#: code:addons/hr_expense_invoice/models/hr_expense.py:0
#: code:addons/hr_expense_invoice/models/hr_expense_sheet.py:0
#, python-format
msgid "Vendor bill state must be Posted"
msgstr ""

#. module: hr_expense_invoice
#. odoo-python
#: code:addons/hr_expense_invoice/models/account_move.py:0
#, python-format
msgid ""
"You can't change the total amount, as there's an expense linked to this "
"invoice."
msgstr ""
Loading
Loading