Skip to content

Commit

Permalink
Merge PR #256 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Sep 10, 2024
2 parents bea49b4 + bef9479 commit c18487e
Show file tree
Hide file tree
Showing 27 changed files with 2,663 additions and 0 deletions.
120 changes: 120 additions & 0 deletions hr_expense_invoice/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
================================
Supplier invoices on HR expenses
================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0292be6d84bed14a6ae6a29d7e6c4c6069ea344c2196e1fea20f911175dec840
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/licence-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/17.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-17-0/hr-expense-17-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=17.0
:alt: Try me on Runboat

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

This module should be used when a supplier invoice is paid by an
employee. It allows to set a supplier invoice for each expense line,
adding the corresponding journal items to transfer the debt to the
employee.

There are 2 ways to reference expense to invoice.

1. On expense, directly select one invoice.
2. On expense report, use button "Create Vendor Bill" to create one
invoice for multiple expenses.

**Table of contents**

.. contents::
:local:

Usage
=====

**Reference one invoice to an expense**

- Create an expense sheet.
- Add an expense line to sheet with an invoice_id selected or create
one new.
- Process expense sheet.
- On paying expense sheet, you are reconciling supplier invoice too.

**Create one invoice to multiple expenses**

- Create an expense sheet with one or multiple expense lines
- After approved, click button "Create Vendor Bill"
- Select multiple expense to create an invoice, and process it.
- New invoice will be create and link to the selected expense lines.
- Validate newly create invoice.
- On paying expense sheet, you are reconciling supplier invoice(s) too.

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

- Multiple payment terms for a supplier invoice are not handled
correctly.
- Partial reconcile supplier invoices are also not correctly handled.

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:%2017.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 <[email protected]>
- Rattapong Chokmasermkul <[email protected]>
- Saran Lim. <[email protected]>

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/17.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
18 changes: 18 additions & 0 deletions hr_expense_invoice/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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": "17.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/account_move_views.xml",
"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ý <[email protected]>, 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ý <[email protected]>, 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

0 comments on commit c18487e

Please sign in to comment.