-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ta#66856 [16.0] [MIG] project_stage_no_quick_create (#490)
* TA#66856 [16.0] [MIG] project_stage_no_quick_create --------- Co-authored-by: Lanto R. <[email protected]> Co-authored-by: majouda <[email protected]>
- Loading branch information
1 parent
d221cf2
commit 52103ac
Showing
16 changed files
with
128 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Project Stage No Quick Create | ||
============================= | ||
|
||
This module prevents the quick creation of project stages. | ||
|
||
*Before installing the module*: | ||
|
||
.. image:: static/description/quick_create_project_stage_enabled.png | ||
|
||
*After installing the module*: | ||
|
||
.. image:: static/description/quick_create_project_stage_disabled.png | ||
|
||
It also add the field `type_ids` (Task Stages) on the project form. | ||
|
||
.. image:: static/description/project_stages_form_view.png | ||
|
||
It also remove the view of all project linked to the project stage, only in form view. | ||
It is always in the tree view. | ||
|
||
*Before installing the module*: | ||
|
||
.. image:: static/description/projects_linked_to_project_stage_visible.png | ||
|
||
*After installing the module*: | ||
|
||
.. image:: static/description/projects_linked_to_project_stage_invisible.png | ||
|
||
Same Stages for All Projects | ||
---------------------------- | ||
If you need to have the same stages for all project: | ||
|
||
* Activate the developer mode. | ||
* Go to /Settings/Technical/Actions/User-defined Defaults. | ||
* Click on `Create`. | ||
* In `Field` select `Tasks Stages (project.project)`. | ||
* In `Default Value (JSON format)` enter `[[6, 0, [n1, n2, ..., n]]]` | ||
where [n1, n2, ..., n] is the list of ids of the stages. | ||
|
||
Example: | ||
|
||
.. image:: static/description/user_defined_defaults_tasks_stages.png | ||
|
||
After creating a new project with the previous configuration, the default stages will be as follows: | ||
|
||
.. image:: static/description/user_defined_defaults_example.png | ||
|
||
Whenever you want to update the default stages, you may edit this default value. | ||
|
||
Contributors | ||
------------ | ||
* Numigi (tm) and all its contributors (https://bit.ly/numigiens) | ||
* Istvan Szalai ([email protected]) | ||
|
||
More information | ||
---------------- | ||
* Meet us at https://bit.ly/numigi-com |
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,2 @@ | ||
# Copyright 2022-today Numigi (tm) and all its contributors (https://bit.ly/numigiens) | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/LGPL). |
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,20 @@ | ||
# Copyright 2022-today Numigi (tm) and all its contributors (https://bit.ly/numigiens) | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/LGPL). | ||
|
||
{ | ||
"name": "Project Task Stage No Quick Create", | ||
"version": "16.0.1.0.0", | ||
"author": "Numigi", | ||
"maintainer": "Numigi", | ||
"website": "https://bit.ly/numigi-com", | ||
"licence": "LGPL-3", | ||
"category": "Project Management", | ||
"summary": "Disable project task stage quick create", | ||
"depends": ["project"], | ||
"data": [ | ||
"views/project_project_views.xml", | ||
"views/project_task_views.xml", | ||
"views/project_task_type_views.xml", | ||
], | ||
"installable": True, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+75 KB
project_stage_no_quick_create/static/description/project_stages_form_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+68.6 KB
..._quick_create/static/description/projects_linked_to_project_stage_invisible.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+79.6 KB
...no_quick_create/static/description/projects_linked_to_project_stage_visible.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+92.4 KB
...tage_no_quick_create/static/description/quick_create_project_stage_disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+89.4 KB
...stage_no_quick_create/static/description/quick_create_project_stage_enabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+160 KB
project_stage_no_quick_create/static/description/user_defined_defaults_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+54 KB
...stage_no_quick_create/static/description/user_defined_defaults_tasks_stages.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions
15
project_stage_no_quick_create/views/project_project_views.xml
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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<record id="edit_project" model="ir.ui.view"> | ||
<field name="name">Project Form With Stages</field> | ||
<field name="model">project.project</field> | ||
<field name="inherit_id" ref="project.edit_project" /> | ||
<field name="arch" type="xml"> | ||
<field name="partner_id" position="after"> | ||
<field name="type_ids" widget="many2many_tags" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
15 changes: 15 additions & 0 deletions
15
project_stage_no_quick_create/views/project_task_type_views.xml
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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data> | ||
<record id="task_type_edit" model="ir.ui.view"> | ||
<field name="name">project.task.type.form</field> | ||
<field name="model">project.task.type</field> | ||
<field name="inherit_id" ref="project.task_type_edit" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='project_ids']" position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
</data> | ||
</odoo> |
17 changes: 17 additions & 0 deletions
17
project_stage_no_quick_create/views/project_task_views.xml
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,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data> | ||
|
||
<record id="project_view_kanban" model="ir.ui.view"> | ||
<field name="name">project.task.kanban</field> | ||
<field name="model">project.task</field> | ||
<field name="inherit_id" ref="project.view_task_kanban" /> | ||
<field name="arch" type="xml"> | ||
<kanban position="attributes"> | ||
<attribute name="group_create">0</attribute> | ||
</kanban> | ||
</field> | ||
</record> | ||
|
||
</data> | ||
</odoo> |