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] project_sequence: Migration to 18.0 #1370

Open
wants to merge 26 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d8ca0f2
[14.0][ADD] project_sequence
OCA-git-bot Mar 9, 2023
8947a9b
[IMP] project_sequence: move sequence below name
yajo May 10, 2023
f157f9e
[FIX] project_sequence: make compatible with hr_timesheet
yajo May 10, 2023
fd3d36d
[FIX] project_sequence: support preexisting sequenceless projects
yajo May 11, 2023
47b0248
[IMP] project_sequence: configure display name pattern
yajo May 12, 2023
b8ea227
[MIG] project_sequence: migrate to v15
yajo May 15, 2023
1a5c351
Added translation using Weblate (Italian)
mymage May 22, 2023
c42ae46
[MIG] project_sequence: Migration to 16.0
NICO-SOLUTIONS Jul 15, 2023
53c4dcd
[UPD] Update project_sequence.pot
Jul 26, 2023
4bde0b1
[UPD] README.rst
OCA-git-bot Jul 26, 2023
370901a
Update translation files
weblate Jul 26, 2023
9e30aff
Translated using Weblate (Italian)
mymage Jul 31, 2023
d1adfcf
Added translation using Weblate (German)
NICO-SOLUTIONS Aug 8, 2023
4b3fd0b
Translated using Weblate (German)
NICO-SOLUTIONS Aug 8, 2023
c34dfcf
[UPD] README.rst
OCA-git-bot Sep 3, 2023
64cf086
Translated using Weblate (Spanish)
Ivorra78 Aug 23, 2023
497d147
Added translation using Weblate (Dutch)
Jan-Onestein Oct 3, 2023
7bd19e9
Translated using Weblate (Dutch)
Jan-Onestein Oct 3, 2023
2f9db35
Update translation files
weblate Oct 9, 2023
cf899df
[17.0][MIG] project_sequence: pre-commit
astirpe Feb 8, 2024
6b7de91
[17.0][MIG] project_sequence: migration to 17.0
astirpe Feb 8, 2024
e987d47
[UPD] Update project_sequence.pot
Feb 29, 2024
6aa7fbd
[BOT] post-merge updates
OCA-git-bot Feb 29, 2024
f67b06b
Update translation files
weblate Feb 29, 2024
18471d5
[IMP] project_sequence: pre-commit auto fixes
BT-mchechlacz Nov 19, 2024
caebc6c
[MIG] project_sequence: Migration to 18.0
BT-mchechlacz Nov 19, 2024
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 @@
================
Project Sequence
================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/licence-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/18.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-18-0/project-18-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=18.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.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

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

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

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/18.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
22 changes: 22 additions & 0 deletions project_sequence/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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": "18.0.1.0.0",
"development_status": "Alpha",
"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
Loading