Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] hr_expense_invoice: Migration to 11.0 #525

Merged
merged 9 commits into from
Dec 13, 2018
92 changes: 92 additions & 0 deletions hr_expense_invoice/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
================================
Supplier invoices on HR expenses
================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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-lightgray.png?logo=github
:target: https://github.com/OCA/hr/tree/11.0/hr_expense_invoice
:alt: OCA/hr
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-11-0/hr-11-0-hr_expense_invoice
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/116/11.0
:alt: Try me on Runbot

|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.

**Table of contents**

.. contents::
:local:

Usage
=====

* 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.

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/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_expense_invoice%0Aversion:%2011.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

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 <https://github.com/OCA/hr/tree/11.0/hr_expense_invoice>`_ 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_invoice/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
20 changes: 20 additions & 0 deletions hr_expense_invoice/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2017 Vicent Cubells <vicent.cubells@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Supplier invoices on HR expenses',
'version': '11.0.1.0.0',
'category': 'Human Resources',
'author': 'Tecnativa, '
'Odoo Community Association (OCA)',
'license': 'AGPL-3',
'website': 'https://github.com/OCA/hr',
'depends': [
'hr_expense',
],
'data': [
'views/hr_expense_views.xml',
],
'installable': True,
}
46 changes: 46 additions & 0 deletions hr_expense_invoice/i18n/cs_CZ.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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
#: code:addons/hr_expense_invoice/models/hr_expense_sheet.py:37
#, python-format
msgid ""
"Cannot reconcile supplier invoice payable with generated line. Please check "
"amounts and see if the invoice is already added or paid. Invoice: %s"
msgstr ""
"Nelze sladit dodavatelskou fakturu se zaplacenou generovanou linkou. "
"Zkontrolujte částky a zjistěte, zda již faktura již byla přidána nebo "
"zaplacena. Faktura: %s"

#. 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_hr_expense_invoice_id
msgid "Invoice"
msgstr "Faktura"
43 changes: 43 additions & 0 deletions hr_expense_invoice/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_invoice
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-09-27 16:34+0000\n"
"PO-Revision-Date: 2017-09-27 16:34+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: hr_expense_invoice
#: code:addons/hr_expense_invoice/models/hr_expense_sheet.py:37
#, python-format
msgid ""
"Cannot reconcile supplier invoice payable with generated line. Please check "
"amounts and see if the invoice is already added or paid. Invoice: %s"
msgstr ""
"No se puede conciliar el saldo a pagar de la factura con la línea generada. "
"Compruebe por favor las cantidades y vea si la factura ya está añadida "
"previamente o pagada. Factura: %s"

#. module: hr_expense_invoice
#: model:ir.model,name:hr_expense_invoice.model_hr_expense
msgid "Expense"
msgstr "Gasto"

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

#. module: hr_expense_invoice
#: model:ir.model.fields,field_description:hr_expense_invoice.field_hr_expense_invoice_id
msgid "Invoice"
msgstr "Factura"
45 changes: 45 additions & 0 deletions hr_expense_invoice/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_invoice
#
# Translators:
# guillaume bauer <guillaume.bauer@syentys.com>, 2017
# Alexandre Fayolle <alexandre.fayolle@camptocamp.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: Alexandre Fayolle <alexandre.fayolle@camptocamp.com>, 2018\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: hr_expense_invoice
#: code:addons/hr_expense_invoice/models/hr_expense_sheet.py:37
#, python-format
msgid ""
"Cannot reconcile supplier invoice payable with generated line. Please check "
"amounts and see if the invoice is already added or paid. Invoice: %s"
msgstr ""
"Impossible de réconcilier la facture fournisseur avec la ligne générée. "
"Vérifiez le montant et si la facture est déjà ajoutée ou payée. Facture: %s"

#. module: hr_expense_invoice
#: model:ir.model,name:hr_expense_invoice.model_hr_expense
msgid "Expense"
msgstr "Note de frais"

#. module: hr_expense_invoice
#: model:ir.model,name:hr_expense_invoice.model_hr_expense_sheet
msgid "Expense Report"
msgstr "Rapport de dépenses"

#. module: hr_expense_invoice
#: model:ir.model.fields,field_description:hr_expense_invoice.field_hr_expense_invoice_id
msgid "Invoice"
msgstr "Facture"
45 changes: 45 additions & 0 deletions hr_expense_invoice/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_invoice
#
# Translators:
# Bole <bole@dajmi5.com>, 2017
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: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"

#. module: hr_expense_invoice
#: code:addons/hr_expense_invoice/models/hr_expense_sheet.py:37
#, python-format
msgid ""
"Cannot reconcile supplier invoice payable with generated line. Please check "
"amounts and see if the invoice is already added or paid. Invoice: %s"
msgstr ""
"Nije moguće zatvaranje računa dobavljača sa generiranom stavkom. Molimo "
"provjerite iznose i plaćanja: %s"

#. module: hr_expense_invoice
#: model:ir.model,name:hr_expense_invoice.model_hr_expense
msgid "Expense"
msgstr "Trošak"

#. module: hr_expense_invoice
#: model:ir.model,name:hr_expense_invoice.model_hr_expense_sheet
msgid "Expense Report"
msgstr "Izvještaj troškova"

#. module: hr_expense_invoice
#: model:ir.model.fields,field_description:hr_expense_invoice.field_hr_expense_invoice_id
msgid "Invoice"
msgstr "Račun"
36 changes: 36 additions & 0 deletions hr_expense_invoice/i18n/hr_expense_invoice.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_invoice
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \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_invoice
#: code:addons/hr_expense_invoice/models/hr_expense_sheet.py:37
#, python-format
msgid "Cannot reconcile supplier invoice payable with generated line. Please check amounts and see if the invoice is already added or paid. Invoice: %s"
msgstr ""

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

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

#. module: hr_expense_invoice
#: model:ir.model.fields,field_description:hr_expense_invoice.field_hr_expense_invoice_id
msgid "Invoice"
msgstr ""

43 changes: 43 additions & 0 deletions hr_expense_invoice/i18n/nl_NL.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_invoice
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-28 01:43+0000\n"
"PO-Revision-Date: 2017-11-28 01:43+0000\n"
"Last-Translator: Peter Hageman <hageman.p@gmail.com>, 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
"teams/23907/nl_NL/)\n"
"Language: nl_NL\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: hr_expense_invoice
#: code:addons/hr_expense_invoice/models/hr_expense_sheet.py:37
#, python-format
msgid ""
"Cannot reconcile supplier invoice payable with generated line. Please check "
"amounts and see if the invoice is already added or paid. Invoice: %s"
msgstr ""

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

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

#. module: hr_expense_invoice
#: model:ir.model.fields,field_description:hr_expense_invoice.field_hr_expense_invoice_id
msgid "Invoice"
msgstr ""
Loading