Skip to content

Commit

Permalink
Merge PR #257 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by Saran440
  • Loading branch information
OCA-git-bot committed Jan 24, 2025
2 parents fbf828d + dc88276 commit db101b7
Show file tree
Hide file tree
Showing 28 changed files with 1,053 additions and 0 deletions.
90 changes: 90 additions & 0 deletions hr_expense_sequence/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
===================
HR expense sequence
===================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d3fd164c3e14e8a99ac971c425ac485f0405f37a1a095a4a7881c40eeb504cf5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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_sequence
: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_sequence
: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 adds the possibility to define a sequence for the expense
report's reference. This reference is then set as default when you
create a new expense report, using the defined sequence.

**Table of contents**

.. contents::
:local:

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

You can change the default sequence (EX0001) by the one of your choice
going to *Settings > Technical > Sequences & Identifiers > Sequences*,
and editing the record Expense Report sequence.

You will only have access to that section if your section has Technical
features permission check marked.

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_sequence%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
-------

* Serv. Tecnol. Avanzados - Pedro M. Baeza

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

- Pedro M. Baeza <[email protected]>
- Pimolnat Suntian <[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_sequence>`_ project on GitHub.

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

from . import models
from .hooks import assign_old_sequences
21 changes: 21 additions & 0 deletions hr_expense_sequence/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2014 Serv. Tecnol. Avanzados (http://www.serviciosbaeza.com)
# Pedro M. Baeza <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "HR expense sequence",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"category": "Human Resources",
"author": "Serv. Tecnol. Avanzados - Pedro M. Baeza,"
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/hr-expense",
"depends": ["hr_expense"],
"data": [
"data/hr_expense_data.xml",
"views/hr_expense_expense_view.xml",
"report/report_expense_sheet.xml",
],
"installable": True,
"post_init_hook": "assign_old_sequences",
}
10 changes: 10 additions & 0 deletions hr_expense_sequence/data/hr_expense_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="seq_expense" model="ir.sequence">
<field name="name">Expense report sequence</field>
<field name="code">hr.expense.sheet</field>
<field name="padding" eval="4" />
<field name="prefix">EX</field>
<field name="company_id" eval="False" />
</record>
</odoo>
10 changes: 10 additions & 0 deletions hr_expense_sequence/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2014 Serv. Tecnol. Avanzados (http://www.serviciosbaeza.com)
# Pedro M. Baeza <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


def assign_old_sequences(env):
expense_obj = env["hr.expense.sheet"]
sequence_obj = env["ir.sequence"]
for expense in expense_obj.search([], order="id"):
expense.write({"number": sequence_obj.next_by_code("hr.expense.sheet")})
33 changes: 33 additions & 0 deletions hr_expense_sequence/i18n/cs_CZ.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_sequence
#
# 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_sequence
#: model:ir.model,name:hr_expense_sequence.model_hr_expense_sheet
msgid "Expense Report"
msgstr "Zpráva o výdajích"

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr "Číslo"

#~ msgid "Expenses Report"
#~ msgstr "Zpráva o nákladech"
33 changes: 33 additions & 0 deletions hr_expense_sequence/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_sequence
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-01 01:04+0000\n"
"PO-Revision-Date: 2018-12-18 15:58+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\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"
"X-Generator: Weblate 3.3\n"

#. module: hr_expense_sequence
#: model:ir.model,name:hr_expense_sequence.model_hr_expense_sheet
msgid "Expense Report"
msgstr "Spesen-Bericht"

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr "Nummer"

#~ msgid "Expenses Report"
#~ msgstr "Spesen-Bericht"
30 changes: 30 additions & 0 deletions hr_expense_sequence/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_sequence
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-01 01:04+0000\n"
"PO-Revision-Date: 2023-10-30 19:36+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\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"
"X-Generator: Weblate 4.17\n"

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

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr "Número"
29 changes: 29 additions & 0 deletions hr_expense_sequence/i18n/fi.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_sequence
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-01 01:04+0000\n"
"PO-Revision-Date: 2017-07-01 01:04+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
"Language: fi\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_sequence
#: model:ir.model,name:hr_expense_sequence.model_hr_expense_sheet
msgid "Expense Report"
msgstr ""

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr "Numero"
33 changes: 33 additions & 0 deletions hr_expense_sequence/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_sequence
#
# Translators:
# guillaume bauer <[email protected]>, 2017
# Alexandre Fayolle <[email protected]>, 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: Alexandre Fayolle <[email protected]>, 2017\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_sequence
#: model:ir.model,name:hr_expense_sequence.model_hr_expense_sheet
msgid "Expense Report"
msgstr "Rapport de dépenses"

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr "Numéro"

#~ msgid "Expenses Report"
#~ msgstr "Rapport de dépenses"
33 changes: 33 additions & 0 deletions hr_expense_sequence/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_sequence
#
# Translators:
# Bole <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-04 06:52+0000\n"
"PO-Revision-Date: 2017-07-04 06:52+0000\n"
"Last-Translator: Bole <[email protected]>, 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_sequence
#: model:ir.model,name:hr_expense_sequence.model_hr_expense_sheet
msgid "Expense Report"
msgstr "Izvještaj troškova"

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr "Broj"

#~ msgid "Expenses Report"
#~ msgstr "Izvještaji troškova"
24 changes: 24 additions & 0 deletions hr_expense_sequence/i18n/hr_expense_sequence.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_sequence
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_sequence
#: model:ir.model,name:hr_expense_sequence.model_hr_expense_sheet
msgid "Expense Report"
msgstr ""

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr ""
33 changes: 33 additions & 0 deletions hr_expense_sequence/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_expense_sequence
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-01 01:04+0000\n"
"PO-Revision-Date: 2023-06-28 09:09+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\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"
"X-Generator: Weblate 4.17\n"

#. module: hr_expense_sequence
#: model:ir.model,name:hr_expense_sequence.model_hr_expense_sheet
msgid "Expense Report"
msgstr "Nota spese"

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr "Numero"

#~ msgid "Expenses Report"
#~ msgstr "Note spese"
Loading

0 comments on commit db101b7

Please sign in to comment.