Skip to content

Commit

Permalink
TA#66859 [16.0][MIG][CHG] project_type_advanced (#409)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: majouda <majdaelmariouli@gmail.com>
  • Loading branch information
lanto-razafindrabe and majouda authored Jul 16, 2024
1 parent 647b9a6 commit 1c811c4
Show file tree
Hide file tree
Showing 11 changed files with 184 additions and 1 deletion.
1 change: 1 addition & 0 deletions .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"project_task_full_text_search",
"project_task_stage_external_mail",
"project_task_type",
"project_type_advanced",
],
"installable": True,
}
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ COPY project_task_date_planned /mnt/extra-addons/project_task_date_planned
COPY project_task_full_text_search /mnt/extra-addons/project_task_full_text_search
COPY project_task_stage_external_mail /mnt/extra-addons/project_task_stage_external_mail
COPY project_task_type /mnt/extra-addons/project_task_type
COPY project_type_advanced /mnt/extra-addons/project_type_advanced

COPY .docker_files/main /mnt/extra-addons/main
COPY .docker_files/odoo.conf /etc/odoo
2 changes: 1 addition & 1 deletion gitoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
- url: https://github.com/OCA/project
branch: "16.0"
includes:
- project_category
- project_task_dependency
- project_timesheet_time_control
- project_type

- url: https://github.com/OCA/timesheet
branch: "16.0"
Expand Down
7 changes: 7 additions & 0 deletions project_type_advanced/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Project Type Advanced

This module adds the fields `sequence`, `active` and `color` to the project type Form view.

Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)
4 changes: 4 additions & 0 deletions project_type_advanced/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2024 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
18 changes: 18 additions & 0 deletions project_type_advanced/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2024 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Project Type Advanced",
"version": "16.0.1.0.0",
"author": "Numigi",
"maintainer": "Numigi",
"website": "https://bit.ly/numigi-com",
"license": "AGPL-3",
"category": "Project",
"summary": "Add a field for typing projects.",
"depends": ["project_type"],
"data": [
"views/project_type.xml",
],
"installable": True,
}
103 changes: 103 additions & 0 deletions project_type_advanced/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * project_type_advanced
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-15 11:45-0400\n"
"PO-Revision-Date: 2024-07-15 11:45-0400\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 2.0.6\n"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_type__active
msgid "Active"
msgstr "Actif"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_type__color
msgid "Color Index"
msgstr "Index de la couleur"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_type__create_uid
msgid "Created by"
msgstr "Créé par"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_type__create_date
msgid "Created on"
msgstr "Créé le"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_type__description
msgid "Description"
msgstr "Description"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_type__display_name
msgid "Display Name"
msgstr "Nom affiché"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_type__id
msgid "ID"
msgstr "ID"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_type____last_update
msgid "Last Modified on"
msgstr "Modifié le"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_type__write_uid
msgid "Last Updated by"
msgstr "Modifié par"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_type__write_date
msgid "Last Updated on"
msgstr "Dernière mise à jour le"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_type__name
msgid "Name"
msgstr "Nom"

#. module: project_type_advanced
#: model:ir.model,name:project_type_advanced.model_project_project
msgid "Project"
msgstr "Projet"

#. module: project_type_advanced
#: model:ir.model,name:project_type_advanced.model_project_type
#: model_terms:ir.ui.view,arch_db:project_type_advanced.view_project_search_form_with_group_by_project_type_id
#: model_terms:ir.ui.view,arch_db:project_type_advanced.view_project_type_form
msgid "Project Type"
msgstr "Type de projet"

#. module: project_type_advanced
#: model:ir.actions.act_window,name:project_type_advanced.project_type_action
#: model:ir.ui.menu,name:project_type_advanced.project_type_menu
#: model_terms:ir.ui.view,arch_db:project_type_advanced.view_project_type_search
#: model_terms:ir.ui.view,arch_db:project_type_advanced.view_project_type_tree
msgid "Project Types"
msgstr "Types de projets"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_type__sequence
msgid "Sequence"
msgstr "Séquence"

#. module: project_type_advanced
#: model:ir.model.fields,field_description:project_type_advanced.field_project_project__project_type_id
msgid "Type"
msgstr "Type"
6 changes: 6 additions & 0 deletions project_type_advanced/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2024 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import (
project_type,
)
14 changes: 14 additions & 0 deletions project_type_advanced/models/project_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2024 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ProjectType(models.Model):

_inherit = "project.type"
_order = "sequence"

sequence = fields.Integer()
active = fields.Boolean(default=True)
color = fields.Integer(string="Color Index")
Binary file added project_type_advanced/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions project_type_advanced/views/project_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="project_type_form" model="ir.ui.view">
<field name="name">Project Type Form</field>
<field name="model">project.type</field>
<field name="inherit_id" ref="project_type.project_type_form" />
<field name="arch" type="xml">
<field name="parent_id" position="after">
<field name="active" widget="boolean_toggle"/>
<field name="sequence" />
<field name="color" widget="color_picker" />
</field>
</field>
</record>

<record id="view_project_type_tree" model="ir.ui.view">
<field name="name">Project Type List</field>
<field name="model">project.type</field>
<field name="arch" type="xml">
<tree string="Project Types">
<field name="sequence" widget="handle" />
<field name="complete_name" />
<field name="color" widget="color_picker" optional="show" />
<field name="active" widget="boolean_toggle"/>
</tree>
</field>
</record>

</odoo>

0 comments on commit 1c811c4

Please sign in to comment.