Skip to content

Commit

Permalink
TA#72169 [16.0][MIG] project_no_quick_create
Browse files Browse the repository at this point in the history
  • Loading branch information
lanto-razafindrabe committed Dec 13, 2024
1 parent d94eab5 commit b8b382a
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"project_track_end_date",
"project_type_advanced",
"project_default_task_stage",
"project_no_quick_create",
"project_parent_enhanced",
"project_stage_allow_timesheet",
],
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ COPY project_task_full_text_search /mnt/extra-addons/project_task_full_text_sear
COPY project_track_end_date /mnt/extra-addons/project_track_end_date
COPY project_type_advanced /mnt/extra-addons/project_type_advanced
COPY project_default_task_stage /mnt/extra-addons/project_default_task_stage
COPY project_no_quick_create /mnt/extra-addons/project_no_quick_create


COPY .docker_files/main /mnt/extra-addons/main
Expand Down
26 changes: 26 additions & 0 deletions project_no_quick_create/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Project No Quick Create
=======================
This module prevents the quick create of a project.

.. contents:: Table of contents

Context
-------
In vanilla Odoo, it is possible to create a project directly from the kanban view.

It is done in a simplified version of the form view of a project.

.. image:: static/description/project_simplified_form.png

This leads to projects missing very important fields (such as an analytic account).

Usage
-----
When this module is installed, when creating a project from the kanban view,
the complete form view is opened.

.. image:: static/description/project_complete_form.png

Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)
2 changes: 2 additions & 0 deletions project_no_quick_create/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
15 changes: 15 additions & 0 deletions project_no_quick_create/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{

Check warning on line 4 in project_no_quick_create/__manifest__.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

project_no_quick_create/__manifest__.py#L4

Statement seems to have no effect
"name": "Project No Quick Create",
"version": "16.0.1.0.0",
"author": "Numigi",
"maintainer": "Numigi",
"website": "https://bit.ly/numigi-com",
"license": "LGPL-3",
"category": "Project",
"depends": ["project"],
"data": ["views/project_project.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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 project_no_quick_create/views/project_project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="project_kanban" model="ir.ui.view">
<field name="name">Project Kanban: open complete form view when creating a project</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.view_project_kanban" />
<field name="arch" type="xml">
<kanban position="attributes">
<attribute name="on_create"></attribute>
</kanban>
</field>
</record>

</odoo>

0 comments on commit b8b382a

Please sign in to comment.