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

[17.0][MIG] project_sequence: migration to 17.0 #1233

Merged
merged 21 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
128 changes: 128 additions & 0 deletions project_sequence/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
================
Project Sequence
================

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

.. |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/17.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-17-0/project-17-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=17.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:%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
-------

* 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

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/17.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": "17.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) -->
<data 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>
</data>
75 changes: 75 additions & 0 deletions project_sequence/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# 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.fields,help:project_sequence.field_project_project__name
msgid ""
"Name of your project. It can be anything you want e.g. the name of a "
"customer or a service."
msgstr ""
"Name Ihres Projekts. Es kann alles sein, was Sie wollen, z.B. der Name eines "
"Kunden oder einer Dienstleistung."

#. 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."
88 changes: 88 additions & 0 deletions project_sequence/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# 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.fields,help:project_sequence.field_project_project__name
msgid ""
"Name of your project. It can be anything you want e.g. the name of a "
"customer or a service."
msgstr ""
"Nombre de su proyecto. Puede ser cualquier cosa, por ejemplo, el nombre de "
"un cliente o de un servicio."

#. 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."

#~ msgid "Display Name"
#~ msgstr "Nombre"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Última modificación el"

#~ msgid "Code"
#~ msgstr "Código"
Loading
Loading