Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ccff050
[14.0][ADD] project_sequence
OCA-git-bot Mar 9, 2023
6695b69
[IMP] project_sequence: move sequence below name
yajo May 10, 2023
efa6a36
[FIX] project_sequence: make compatible with hr_timesheet
yajo May 10, 2023
502afdb
[FIX] project_sequence: support preexisting sequenceless projects
yajo May 11, 2023
737bf3b
[IMP] project_sequence: configure display name pattern
yajo May 12, 2023
ca912e5
[MIG] project_sequence: migrate to v15
yajo May 15, 2023
08c5c64
Added translation using Weblate (Italian)
mymage May 22, 2023
9eeab84
[MIG] project_sequence: Migration to 16.0
NICO-SOLUTIONS Jul 15, 2023
19a57a7
[UPD] Update project_sequence.pot
Jul 26, 2023
41bfd26
[UPD] README.rst
OCA-git-bot Jul 26, 2023
d7dbf11
Update translation files
weblate Jul 26, 2023
6c2a259
Translated using Weblate (Italian)
mymage Jul 31, 2023
e36fb43
Added translation using Weblate (German)
NICO-SOLUTIONS Aug 8, 2023
25af278
Translated using Weblate (German)
NICO-SOLUTIONS Aug 8, 2023
0ce87d4
[UPD] README.rst
OCA-git-bot Sep 3, 2023
3dc685a
Translated using Weblate (Spanish)
Ivorra78 Aug 23, 2023
ef4b6f8
Added translation using Weblate (Dutch)
Jan-Onestein Oct 3, 2023
c5833ad
Translated using Weblate (Dutch)
Jan-Onestein Oct 3, 2023
38416f1
Update translation files
weblate Oct 9, 2023
3d3261d
[17.0][MIG] project_sequence: pre-commit
astirpe Feb 8, 2024
233a9d1
[17.0][MIG] project_sequence: migration to 17.0
astirpe Feb 8, 2024
59a478c
[UPD] Update project_sequence.pot
Feb 29, 2024
4ea3cbe
[BOT] post-merge updates
OCA-git-bot Feb 29, 2024
594ef16
Update translation files
weblate Feb 29, 2024
37ac4fc
[IMP] project_sequence: pre-commit auto fixes
BT-mchechlacz Nov 19, 2024
c2db114
[MIG] project_sequence: Migration to 18.0
BT-mchechlacz Nov 19, 2024
67098aa
[UPD] Update project_sequence.pot
Dec 18, 2024
d80f6c2
[BOT] post-merge updates
OCA-git-bot Dec 18, 2024
989f31d
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago May 22, 2025
ac756a1
[MIG] project_sequence: Migrate to 19.0
rousseldenis Oct 11, 2025
844aa53
[FIX] project_sequence: Don't write() too much times
rousseldenis Oct 12, 2025
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
130 changes: 130 additions & 0 deletions project_sequence/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

================
Project Sequence
================

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

.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproject-lightgray.png?logo=github
:target: https://github.com/OCA/project/tree/19.0/project_sequence
:alt: OCA/project
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/project-19-0/project-19-0-project_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/project&target_branch=19.0
:alt: Try me on Runboat

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

Add a sequence field to projects, filled automatically and add a code
sequence filter in tree view project.

**Table of contents**

.. contents::
:local:

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

To change the project display name pattern, follow these steps:

1. Go to *Project > Configuration > Settings*.

2. Edit the *Project display name pattern* field.

The default format is ``%(sequence_code)s - %(name)s``. You can use
those same placeholders to customize the pattern.

Usage
=====

To use this module, you need to:

1. Go to the project icon.
2. Click the button "create" to create a new project
3. Fill in the field Project name and click the "create" button
4. Now in the Kanban view see the project name when you are created
5. Repeat this operation creating another project without the name.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/project/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/project/issues/new?body=module:%20project_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
-------

* Moduon

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

- Andrea Cattalani (`Moduon <https://www.moduon.team/>`__)
- Jairo Llopis (`Moduon <https://www.moduon.team/>`__)
- Nils Coenen <[email protected]>
- `360ERP <https://www.360erp.com>`__:

- Andrea Stirpe

- Marcin Chechłacz <[email protected]>
- Denis Roussel <[email protected]>

Other credits
-------------

The development of this module has been financially supported by:

- Moduon

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.

.. |maintainer-yajo| image:: https://github.com/yajo.png?size=40px
:target: https://github.com/yajo
:alt: yajo
.. |maintainer-anddago78| image:: https://github.com/anddago78.png?size=40px
:target: https://github.com/anddago78
:alt: anddago78

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-yajo| |maintainer-anddago78|

This module is part of the `OCA/project <https://github.com/OCA/project/tree/19.0/project_sequence>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions project_sequence/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
21 changes: 21 additions & 0 deletions project_sequence/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2023 Moduon Team S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)

{
"name": "Project Sequence",
"summary": "Add a sequence field to projects, filled automatically",
"version": "19.0.1.0.0",
"category": "Services/Project",
"website": "https://github.com/OCA/project",
"author": "Moduon, Odoo Community Association (OCA)",
"maintainers": ["yajo", "anddago78"],
"license": "LGPL-3",
"application": False,
"installable": True,
"depends": ["project"],
"data": [
"data/ir_sequence.xml",
"views/project_project.xml",
"wizards/res_config_settings_view.xml",
],
}
13 changes: 13 additions & 0 deletions project_sequence/data/ir_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 Moduon Team S.L.
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0) -->
<odoo noupdate="1">
<record id="seq_project_sequence" model="ir.sequence">
<field name="name">Project sequence</field>
<field name="code">project.sequence</field>
<field name="prefix">%(range_y)s-</field>
<field name="use_date_range">True</field>
<field name="padding">5</field>
<field name="company_id" eval="False" />
</record>
</odoo>
66 changes: 66 additions & 0 deletions project_sequence/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * project_sequence
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-08-08 15:08+0000\n"
"Last-Translator: Nils Coenen <[email protected]>\n"
"Language-Team: none\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 4.17\n"

#. module: project_sequence
#: model:ir.model,name:project_sequence.model_res_config_settings
msgid "Config Settings"
msgstr "Konfigurationseinstellungen"

#. module: project_sequence
#: model:ir.model.fields,field_description:project_sequence.field_project_project__name
msgid "Name"
msgstr "Name"

#. module: project_sequence
#: model:ir.model,name:project_sequence.model_project_project
msgid "Project"
msgstr "Projekt"

#. module: project_sequence
#: model:ir.model.fields,field_description:project_sequence.field_res_config_settings__project_display_name_pattern
msgid "Project Display Name Pattern"
msgstr "Muster für den Projektanzeigenamen"

#. module: project_sequence
#: model:ir.model.constraint,message:project_sequence.constraint_project_project_name_required
msgid "Project name is required"
msgstr "Projektname ist erforderlich"

#. module: project_sequence
#: model:ir.model.fields,field_description:project_sequence.field_project_project__sequence_code
msgid "Sequence Code"
msgstr "Sequenzcode"

#. module: project_sequence
#: model:ir.model.constraint,message:project_sequence.constraint_project_project_sequence_code_unique
msgid "Sequence code must be unique"
msgstr "Der Sequenzcode muss eindeutig sein"

#. module: project_sequence
#: model_terms:ir.ui.view,arch_db:project_sequence.project_sequence_form_view
msgid "Sequence code:"
msgstr "Sequenzcode:"

#. module: project_sequence
#: model:ir.model.fields,help:project_sequence.field_res_config_settings__project_display_name_pattern
msgid ""
"Use %(sequence_code)s and %(name)s to include the sequence code and the name "
"of the project in the display name."
msgstr ""
"Verwenden Sie %(sequence_code)s und %(name)s, um den Sequenzcode und den "
"Namen des Projekts in den Anzeigenamen aufzunehmen."
67 changes: 67 additions & 0 deletions project_sequence/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * project_sequence
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-04-10 10:29+0000\n"
"PO-Revision-Date: 2023-09-03 13:36+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: project_sequence
#: model:ir.model,name:project_sequence.model_res_config_settings
msgid "Config Settings"
msgstr "Configuración de Ajustes"

#. module: project_sequence
#: model:ir.model.fields,field_description:project_sequence.field_project_project__name
msgid "Name"
msgstr "Nombre"

#. module: project_sequence
#: model:ir.model,name:project_sequence.model_project_project
msgid "Project"
msgstr "Proyecto"

#. module: project_sequence
#: model:ir.model.fields,field_description:project_sequence.field_res_config_settings__project_display_name_pattern
msgid "Project Display Name Pattern"
msgstr "Patrón de nombre para mostrar del proyecto"

#. module: project_sequence
#: model:ir.model.constraint,message:project_sequence.constraint_project_project_name_required
msgid "Project name is required"
msgstr "El nombre del proyecto es obligatorio"

#. module: project_sequence
#: model:ir.model.fields,field_description:project_sequence.field_project_project__sequence_code
msgid "Sequence Code"
msgstr "Código secuencial"

#. module: project_sequence
#: model:ir.model.constraint,message:project_sequence.constraint_project_project_sequence_code_unique
msgid "Sequence code must be unique"
msgstr "El código secuencial debe ser único"

#. module: project_sequence
#: model_terms:ir.ui.view,arch_db:project_sequence.project_sequence_form_view
msgid "Sequence code:"
msgstr "Código secuencial:"

#. module: project_sequence
#: model:ir.model.fields,help:project_sequence.field_res_config_settings__project_display_name_pattern
msgid ""
"Use %(sequence_code)s and %(name)s to include the sequence code and the name "
"of the project in the display name."
msgstr ""
"Utilice %(sequence_code)s y %(name)s para incluir el código de secuencia y "
"el nombre del proyecto en el nombre de visualización."
66 changes: 66 additions & 0 deletions project_sequence/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * project_sequence
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-07-31 10:11+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\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: project_sequence
#: model:ir.model,name:project_sequence.model_res_config_settings
msgid "Config Settings"
msgstr "Impostazioni configurazione"

#. module: project_sequence
#: model:ir.model.fields,field_description:project_sequence.field_project_project__name
msgid "Name"
msgstr "Nome"

#. module: project_sequence
#: model:ir.model,name:project_sequence.model_project_project
msgid "Project"
msgstr "Progetto"

#. module: project_sequence
#: model:ir.model.fields,field_description:project_sequence.field_res_config_settings__project_display_name_pattern
msgid "Project Display Name Pattern"
msgstr "Nome visualizzato schema progetto"

#. module: project_sequence
#: model:ir.model.constraint,message:project_sequence.constraint_project_project_name_required
msgid "Project name is required"
msgstr "È richiesto il nome progetto"

#. module: project_sequence
#: model:ir.model.fields,field_description:project_sequence.field_project_project__sequence_code
msgid "Sequence Code"
msgstr "Codice sequenza"

#. module: project_sequence
#: model:ir.model.constraint,message:project_sequence.constraint_project_project_sequence_code_unique
msgid "Sequence code must be unique"
msgstr "Il codice sequenza deve essere univoco"

#. module: project_sequence
#: model_terms:ir.ui.view,arch_db:project_sequence.project_sequence_form_view
msgid "Sequence code:"
msgstr "Codice sequenza:"

#. module: project_sequence
#: model:ir.model.fields,help:project_sequence.field_res_config_settings__project_display_name_pattern
msgid ""
"Use %(sequence_code)s and %(name)s to include the sequence code and the name "
"of the project in the display name."
msgstr ""
"Utilizzare %(sequence_code)s e %(name)s per includere il codice sequenza e "
"il nome del progetto nel nome visualizzato."
Loading