Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
092390e
[ADD] hr_expense_sequence: Module for giving each expense a number
pedrobaeza Jan 31, 2015
ee126f1
[FIX] hr_expense_sequence: Travis
pedrobaeza Feb 3, 2015
fa78e97
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
6529d0a
fix travis (flake8)
gurneyalex Mar 3, 2015
1c99eb7
Write expense number on account move
Apr 3, 2015
ec76975
Do not copy the expense sequence
guewen May 28, 2015
273f9f4
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
dc2e385
[MIG] Make modules uninstallable
pedrobaeza Jul 5, 2016
94f2198
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
a031dd8
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
6bfa435
Port hr_expense_sequence to v10
alexis-via Jun 6, 2017
542322d
Add _rec_name = 'number' on hr.expense.sheet
alexis-via Jun 7, 2017
3d19e7c
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
dddd0bc
Fix pylint errors + add license + fix category
astirpe Jun 20, 2018
b17c075
Translated using Weblate (German)
marylla Dec 18, 2018
e3f7ba7
[MIG] hr_expense_sequence: Migration to 12.0
ps-tubtim Jun 12, 2019
820d924
[IMP] hr_expense_sequence: black, isort
ps-tubtim Dec 9, 2019
5f2da81
[MIG] hr_expense_sequence: Migration to 13.0
ps-tubtim Aug 17, 2020
bb7553b
[IMP] hr_expense_sequence: black, isort, prettier
Saran440 Oct 15, 2020
ffb8ccd
[14.0][MIG] hr_expense_sequence
Saran440 Oct 15, 2020
b99852d
Translated using Weblate (Portuguese (Brazil))
Feb 1, 2022
f79b957
[MIG] hr_expense_sequence: Migration to 15.0
TheerayutEncoder Oct 31, 2022
3b2e491
Translated using Weblate (Italian)
mymage Dec 20, 2022
1a9b4fa
Translated using Weblate (Italian)
mymage Jun 26, 2023
f55a059
Translated using Weblate (Italian)
mymage Jun 28, 2023
1063a4c
Translated using Weblate (Spanish)
Ivorra78 Oct 30, 2023
2017f6c
[MIG] hr_expense_sequence: Migration to 16.0
Saran440 Nov 6, 2023
312f471
[FIX] avoid warning "The model is not overriding the create method in…
myrrkel Jun 7, 2024
aa7b3a1
[IMP] : pre-commit auto fixes
Saran440 Jul 18, 2024
f28ac04
[MIG] hr_expense_sequence: Migration to 17.0
Saran440 Jul 18, 2024
a6dce18
[IMP] hr_expense_sequence: pre-commit auto fixes
Saran440 Jan 17, 2025
4f83ad8
[MIG] hr_expense_sequence: Migration to 18.0
Saran440 Jan 17, 2025
dd368f2
Added translation using Weblate (Turkish)
bo-eska May 8, 2026
61c850b
Translated using Weblate (Slovenian)
sysadminmatmoz Jun 2, 2026
35f4026
[IMP] hr_expense_sequence: pre-commit auto fixes
dnplkndll Jun 19, 2026
49b1a90
[MIG] hr_expense_sequence: Migration to 19.0
dnplkndll Jun 19, 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
95 changes: 95 additions & 0 deletions hr_expense_sequence/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===================
HR expense sequence
===================

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

.. |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_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-19-0/hr-expense-19-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=19.0
:alt: Try me on Runboat

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

This module adds the possibility to define a sequence for the expense's
reference. This reference is then set as default when you create a new
expense, 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 user 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:%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
-------

* Serv. Tecnol. Avanzados - Pedro M. Baeza

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

- Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
- Pimolnat Suntian <pimolnats@ecosoft.co.th>
- Saran Lim. <saranl@ecosoft.co.th>
- Don Kendall <dkendall@ledoweb.com>

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_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.html).

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 <pedro.baeza@serviciosbaeza.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "HR expense sequence",
"version": "19.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_views.xml",
"report/report_expense.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 <pedro.baeza@serviciosbaeza.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).


def assign_old_sequences(env):
expense_obj = env["hr.expense"]
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ý <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_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 <transbot@odoo-community.org>, 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 <maria.sparenberg@gmx.net>\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 <transbot@odoo-community.org>, 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 <informatica@totmaterial.es>\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 <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 <guillaume.bauer@syentys.com>, 2017
# Alexandre Fayolle <alexandre.fayolle@camptocamp.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: Alexandre Fayolle <alexandre.fayolle@camptocamp.com>, 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 <bole@dajmi5.com>, 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 <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_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 18.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 ""
Loading
Loading