-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TA#66859 [16.0][MIG][CHG] project_type_advanced (#409)
--------- Co-authored-by: majouda <majdaelmariouli@gmail.com>
- Loading branch information
1 parent
647b9a6
commit 1c811c4
Showing
11 changed files
with
184 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |