Skip to content

Commit

Permalink
TA#72169 [16.0][MIG] project_no_quick_create (#478)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: majouda <[email protected]>
  • Loading branch information
lanto-razafindrabe and majouda authored Dec 18, 2024
1 parent f7311aa commit c9fa2a9
Show file tree
Hide file tree
Showing 9 changed files with 61 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 @@ -15,6 +15,7 @@
"project_milestone_enhanced",
"project_milestone_estimated_hours",
"project_milestone_spent_hours",
"project_no_quick_create",
"project_parent_enhanced",
"project_stage_allow_timesheet",
"project_task_date_planned",
Expand Down
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_default_task_stage /mnt/extra-addons/project_default_task_stage
COPY project_milestone_enhanced /mnt/extra-addons/project_milestone_enhanced
COPY project_milestone_estimated_hours /mnt/extra-addons/project_milestone_estimated_hours
COPY project_milestone_spent_hours /mnt/extra-addons/project_milestone_spent_hours
COPY project_no_quick_create /mnt/extra-addons/project_no_quick_create
COPY project_parent_enhanced mnt/extra-addons/project_parent_enhanced
COPY project_stage_allow_timesheet mnt/extra-addons/project_stage_allow_timesheet
COPY project_task_date_planned /mnt/extra-addons/project_task_date_planned
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).
16 changes: 16 additions & 0 deletions project_no_quick_create/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Project No Quick Create",
"version": "16.0.1.0.0",
"author": "Numigi",
"maintainer": "Numigi",
"website": "https://bit.ly/numigi-com",
"license": "LGPL-3",
"summary": "Disable the quick create option from kanban view in project",
"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 c9fa2a9

Please sign in to comment.