Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
154 changes: 154 additions & 0 deletions hr_expense_employee_payment/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
=============================
Hr Expense - Employee Payment
=============================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr--expense-lightgray.png?logo=github
:target: https://github.com/OCA/hr-expense/tree/18.0/hr_expense_employee_payment
: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-18-0/hr-expense-18-0-hr_expense_employee_payment
: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=18.0
:alt: Try me on Runboat

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

This module extends the expense functionality so that expenses sheets
paid by employees, which are actual Vendor Bills, can be paid to the
employee.

To do this, an intermediate journal entry is created that transfers the
debt from the supplier to the employee and also modifies the payment
wizard so that the employee receives the payment. Partial payments are
also compatible.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

This module has been created to allow payment to the employee when
supplier invoices are recorded in expenses.

It will be useful for you if the legislation in your country doesn't
allow to create vendor bills to the employees.

Each expense sheet is required to have only one expense because Odoo
does not allow creating more than one invoice for an expense sheet. The
*Split Expenses* action is provided to facilitate this operation.

Configuration
=============

To configure this module, you need to:

1. Go to Expenses > Configuration > Settings
2. On Accounting group, set Employee Expense Journal.

In case you need a different Journal for Intermediate Entries (Ensure
that this journal allows for the creation of 'entry' type moves):

1. On Accounting group, set Employee Expense Intermediate Journal.

Usage
=====

To use this module, you need to:

1. Go to Expenses and create a new one that is paid by Employee
2. Create report and Submit to Manager
3. Change Journal to Vendor Bills
4. Approve this Expense Sheet
5. Go to the Journal Entry clicking on the Smart Button
6. Modify the Vendor Bill like a normal Vendor Bill (partner, bill ref,
journal, etc)
7. Confirm the invoice, or go to the Expense Sheet and Post Journal
Entries
8. Click on Pay and fill the payment for the Employee. Partial payments
are allowed
9. On the Journal Entries Smart Button, you could see a new one
intermediate entry
10. Finish the payment process if you partially pay by clicking again on
Pay

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_employee_payment%0Aversion:%2018.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
-------

* Moduon

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

- Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)
- Rafael Blasco (`Moduon <https://www.moduon.team/>`__)

Other credits
-------------

The development of this module has been financially supported by:

- Cámara de Comercio Alemana para España

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.

.. |maintainer-Shide| image:: https://github.com/Shide.png?size=40px
:target: https://github.com/Shide
:alt: Shide
.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
:target: https://github.com/rafaelbn
:alt: rafaelbn

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-Shide| |maintainer-rafaelbn|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions hr_expense_employee_payment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions hr_expense_employee_payment/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2025 Moduon Team S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)

{
"name": "Hr Expense - Employee Payment",
"summary": "Allow to pay employees for expense Vendor Bills",
"version": "18.0.1.0.0",
"development_status": "Alpha",
"category": "Human Resources/Expenses",
"website": "https://github.com/OCA/hr-expense",
"author": "Moduon, Odoo Community Association (OCA)",
"maintainers": ["Shide", "rafaelbn"],
"license": "LGPL-3",
"application": False,
"installable": True,
"depends": [
"hr_expense",
],
"data": [
"data/ir_actions_server.xml",
"views/res_config_settings_views.xml",
],
}
11 changes: 11 additions & 0 deletions hr_expense_employee_payment/data/ir_actions_server.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="hr_expense_sheet_split_action" model="ir.actions.server">
<field name="name">Split Expenses</field>
<field name="model_id" ref="model_hr_expense_sheet" />
<field name="binding_model_id" ref="model_hr_expense_sheet" />
<field name="binding_view_types">list,form</field>
<field name="state">code</field>
<field name="code">action = records._action_split_expenses()</field>
</record>
</odoo>
88 changes: 88 additions & 0 deletions hr_expense_employee_payment/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_employee_payment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-25 10:31+0000\n"
"PO-Revision-Date: 2025-11-25 11:33+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.5\n"

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid "%(expense_sheet_name)s | Expense conciliation"
msgstr "%(expense_sheet_name)s | Conciliación de gastos"

#. module: hr_expense_employee_payment
#: model:ir.model,name:hr_expense_employee_payment.model_hr_expense_sheet
msgid "Expense Report"
msgstr "Informe de gastos"

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid ""
"Expense conciliation entry for '%(expense_sheet_name)s' expense sheet and "
"taking in consideration '%(vendor_move_names)s' moves."
msgstr ""
"Asiento de conciliación para el informe de gastos '%(expense_sheet_name)s' "
"teniendo en cuenta los movimientos'%(vendor_move_names)s'."

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid ""
"Only expense sheets in 'To Submit' or 'Submitted' state can be splitted. "
"Expense Sheet '%s' is in state '%s'."
msgstr ""
"Solo los informes de gastos con estados 'A enviar' o 'Enviado' pueden ser "
"divididos. El Informe de Gastos '%s' está en estado '%s'."

#. module: hr_expense_employee_payment
#: model:ir.actions.server,name:hr_expense_employee_payment.hr_expense_sheet_split_action
msgid "Split Expenses"
msgstr "Dividir Gastos"

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid "Splitted Expense Sheets"
msgstr "Informes de Gastos divididos"

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid ""
"This expense sheet has been created by splitting the expense sheet '%s'."
msgstr ""
"Este informe de gastos ha sido creado a partir de la división del informe "
"'%s'."

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid ""
"You cannot register a payments for Employees and Vendors at the same time"
msgstr "No puedes registrar pagos a Empleados y a Proveedores al mismo tiempo"

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid ""
"You have multiple expense journals defined, please set a single expense "
"journal in the company settings to proceed with the payment for Employees "
"or pay one by one."
msgstr ""
"Tiene definidos varios diarios de gastos, por favor, establezca un único "
"diario de gastos en la configuración de la compañía para proceder al "
"pago de los empleados o pague uno por uno."
77 changes: 77 additions & 0 deletions hr_expense_employee_payment/i18n/hr_expense_employee_payment.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_employee_payment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-25 10:30+0000\n"
"PO-Revision-Date: 2025-11-25 10:30+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid "%(expense_sheet_name)s | Expense conciliation"
msgstr ""

#. module: hr_expense_employee_payment
#: model:ir.model,name:hr_expense_employee_payment.model_hr_expense_sheet
msgid "Expense Report"
msgstr ""

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid ""
"Expense conciliation entry for '%(expense_sheet_name)s' expense sheet and "
"taking in consideration '%(vendor_move_names)s' moves."
msgstr ""

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid ""
"Only expense sheets in 'To Submit' or 'Submitted' state can be splitted. "
"Expense Sheet '%s' is in state '%s'."
msgstr ""

#. module: hr_expense_employee_payment
#: model:ir.actions.server,name:hr_expense_employee_payment.hr_expense_sheet_split_action
msgid "Split Expenses"
msgstr ""

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid "Splitted Expense Sheets"
msgstr ""

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid ""
"This expense sheet has been created by splitting the expense sheet '%s'."
msgstr ""

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid ""
"You cannot register a payments for Employees and Vendors at the same time"
msgstr ""

#. module: hr_expense_employee_payment
#. odoo-python
#: code:addons/hr_expense_employee_payment/models/hr_expense_sheet.py:0
msgid ""
"You have multiple expense journals defined, please set a single expense "
"journal in the company settings to proceed with the payment for Employees or"
" pay one by one."
msgstr ""
3 changes: 3 additions & 0 deletions hr_expense_employee_payment/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import res_company
from . import res_config_settings
from . import hr_expense_sheet
Loading