Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 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
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
fff3da0
[MIG] hr_expense_sequence: Migration to 15.0
TheerayutEncoder Oct 31, 2022
52a1185
[UPD] Update hr_expense_sequence.pot
Nov 25, 2022
cd4a2c5
[UPD] README.rst
OCA-git-bot Nov 25, 2022
75f7225
Translated using Weblate (Italian)
mymage Dec 20, 2022
fba146c
Translated using Weblate (Italian)
mymage Jun 26, 2023
6a43747
Translated using Weblate (Italian)
mymage Jun 28, 2023
4c71a6b
[UPD] README.rst
OCA-git-bot Sep 3, 2023
608282a
Update translation files
weblate Oct 9, 2023
f5a7aea
Translated using Weblate (Spanish)
Ivorra78 Oct 30, 2023
4506a9a
[MIG] hr_expense_sequence: Migration to 16.0
Saran440 Nov 6, 2023
d707e99
[UPD] Update hr_expense_sequence.pot
Nov 23, 2023
0f0e24f
[FIX] avoid warning "The model is not overriding the create method in…
myrrkel Jun 7, 2024
03f5d63
[BOT] post-merge updates
OCA-git-bot Jul 9, 2024
7b7f598
[IMP] : pre-commit auto fixes
Saran440 Jul 18, 2024
b8da654
[MIG] hr_expense_sequence: Migration to 17.0
Saran440 Jul 18, 2024
fffc36b
[IMP] hr_expense_sequence: pre-commit auto fixes
Saran440 Jan 17, 2025
b25e38f
[MIG] hr_expense_sequence: Migration to 18.0
Saran440 Jan 17, 2025
4fa12dd
[UPD] Update hr_expense_sequence.pot
Jan 24, 2025
54ff04e
[BOT] post-merge updates
OCA-git-bot Jan 24, 2025
67f06b6
Update translation files
weblate Jan 24, 2025
1299482
Added translation using Weblate (Turkish)
bo-eska May 8, 2026
b12c4ab
[IMP] hr_expense_sequence: pre-commit auto fixes
dnplkndll May 30, 2026
f6bf345
[MIG] hr_expense_sequence: Migration to 19.0
dnplkndll May 30, 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
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/18.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-18-0/hr-expense-18-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=18.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:%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
-------

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

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/18.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
22 changes: 22 additions & 0 deletions hr_expense_sequence/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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).

{
"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",
"maintainers": ["dnplkndll"],
"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 sequence</field>
<field name="code">hr.expense</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).


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")})
35 changes: 35 additions & 0 deletions hr_expense_sequence/i18n/cs_CZ.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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_terms:ir.ui.view,arch_db:hr_expense_sequence.report_expense_sheet
msgid "Expenses Report"
msgstr "Zpráva o nákladech"

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr "Číslo"
34 changes: 34 additions & 0 deletions hr_expense_sequence/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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: 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"

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

#. module: hr_expense_sequence
#: model_terms:ir.ui.view,arch_db:hr_expense_sequence.report_expense_sheet
msgid "Expenses Report"
msgstr ""

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr "Nummer"
34 changes: 34 additions & 0 deletions hr_expense_sequence/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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: 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"

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

#. module: hr_expense_sequence
#: model_terms:ir.ui.view,arch_db:hr_expense_sequence.report_expense_sheet
msgid "Expenses Report"
msgstr ""

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr "Número"
34 changes: 34 additions & 0 deletions hr_expense_sequence/i18n/fi.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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_terms:ir.ui.view,arch_db:hr_expense_sequence.report_expense_sheet
msgid "Expenses Report"
msgstr ""

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr "Numero"
35 changes: 35 additions & 0 deletions hr_expense_sequence/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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_terms:ir.ui.view,arch_db:hr_expense_sequence.report_expense_sheet
msgid "Expenses 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"
35 changes: 35 additions & 0 deletions hr_expense_sequence/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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_terms:ir.ui.view,arch_db:hr_expense_sequence.report_expense_sheet
msgid "Expenses Report"
msgstr "Izvještaji troškova"

#. module: hr_expense_sequence
#: model:ir.model.fields,field_description:hr_expense_sequence.field_hr_expense_sheet__number
msgid "Number"
msgstr "Broj"
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