Skip to content

Commit f05553f

Browse files
committed
Merge PR #577 into 16.0
Signed-off-by yajo
2 parents c4147d1 + b59c9cf commit f05553f

File tree

22 files changed

+1005
-0
lines changed

22 files changed

+1005
-0
lines changed

crm_project_create/README.rst

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
==================
2+
CRM Project Create
3+
==================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:0b7cb51199e3b0707c16a974bb588b18dea831edf9027bcbf242d230eb6fa4c8
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Alpha
16+
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18+
:alt: License: LGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github
20+
:target: https://github.com/OCA/crm/tree/16.0/crm_project_create
21+
:alt: OCA/crm
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_project_create
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module extends the functionality of crm and project and allow you
32+
to create a project from opportunity or lead.
33+
34+
.. IMPORTANT::
35+
This is an alpha version, the data model and design can change at any time without warning.
36+
Only for development or testing purpose, do not use in production.
37+
`More details on development status <https://odoo-community.org/page/development-status>`_
38+
39+
**Table of contents**
40+
41+
.. contents::
42+
:local:
43+
44+
Use Cases / Context
45+
===================
46+
47+
This module was developed because sometimes you want to create the
48+
project from the crm without creating a sales order, for example when
49+
you want to plan a project.
50+
51+
It will be useful for you if you want to create a project before
52+
creating a quotation and confirming it or if you want to estimate, plan
53+
or know if you have the capacity before making the sale.
54+
55+
Usage
56+
=====
57+
58+
To use this module, you need to:
59+
60+
1. Go to CRM > Sales > My Pipeline
61+
2. Create a new opportunity or join an existing one.
62+
3. Click on **Create project** in header.
63+
4. A wizard is shown to fill project name and/or project description.
64+
5. Click on **Create project**.
65+
6. You can see project created in page **Extra Information**, inside
66+
group **Misc**.
67+
7. Is you have *Project: Administrator* permissions, you can edit the
68+
project after creating it.
69+
70+
Bug Tracker
71+
===========
72+
73+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/crm/issues>`_.
74+
In case of trouble, please check there if your issue has already been reported.
75+
If you spotted it first, help us to smash it by providing a detailed and welcomed
76+
`feedback <https://github.com/OCA/crm/issues/new?body=module:%20crm_project_create%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
77+
78+
Do not contact contributors directly about support or help with technical issues.
79+
80+
Credits
81+
=======
82+
83+
Authors
84+
-------
85+
86+
* Moduon
87+
88+
Contributors
89+
------------
90+
91+
- Emilio Pascual (`Moduon <https://www.moduon.team/>`__)
92+
93+
Maintainers
94+
-----------
95+
96+
This module is maintained by the OCA.
97+
98+
.. image:: https://odoo-community.org/logo.png
99+
:alt: Odoo Community Association
100+
:target: https://odoo-community.org
101+
102+
OCA, or the Odoo Community Association, is a nonprofit organization whose
103+
mission is to support the collaborative development of Odoo features and
104+
promote its widespread use.
105+
106+
.. |maintainer-EmilioPascual| image:: https://github.com/EmilioPascual.png?size=40px
107+
:target: https://github.com/EmilioPascual
108+
:alt: EmilioPascual
109+
.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
110+
:target: https://github.com/rafaelbn
111+
:alt: rafaelbn
112+
113+
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
114+
115+
|maintainer-EmilioPascual| |maintainer-rafaelbn|
116+
117+
This module is part of the `OCA/crm <https://github.com/OCA/crm/tree/16.0/crm_project_create>`_ project on GitHub.
118+
119+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

crm_project_create/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import models
2+
from . import wizards

crm_project_create/__manifest__.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2024 Moduon Team S.L.
2+
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)
3+
4+
{
5+
"name": "CRM Project Create",
6+
"summary": "Allow create projects from lead/opportunity",
7+
"version": "16.0.1.0.0",
8+
"development_status": "Alpha",
9+
"category": "Sales/CRM",
10+
"website": "https://github.com/OCA/crm",
11+
"author": "Moduon, Odoo Community Association (OCA)",
12+
"maintainers": ["EmilioPascual", "rafaelbn"],
13+
"license": "LGPL-3",
14+
"application": False,
15+
"installable": True,
16+
"depends": ["crm", "sale_project", "mail_message_destiny_link_template"],
17+
"data": [
18+
"security/ir.model.access.csv",
19+
"wizards/crm_create_project.xml",
20+
"views/crm_lead.xml",
21+
],
22+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * crm_project_create
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0+e\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2024-07-17 12:20+0000\n"
10+
"PO-Revision-Date: 2024-07-17 12:20+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: crm_project_create
19+
#: model_terms:ir.ui.view,arch_db:crm_project_create.crm_create_project_view_form
20+
msgid "Cancel"
21+
msgstr ""
22+
23+
#. module: crm_project_create
24+
#: model:ir.actions.act_window,name:crm_project_create.crm_create_project_action
25+
#: model_terms:ir.ui.view,arch_db:crm_project_create.crm_create_project_view_form
26+
#: model_terms:ir.ui.view,arch_db:crm_project_create.crm_lead_view_form_crm_project_project
27+
msgid "Create Project"
28+
msgstr ""
29+
30+
#. module: crm_project_create
31+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__create_uid
32+
msgid "Created by"
33+
msgstr ""
34+
35+
#. module: crm_project_create
36+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__create_date
37+
msgid "Created on"
38+
msgstr ""
39+
40+
#. module: crm_project_create
41+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__display_name
42+
msgid "Display Name"
43+
msgstr ""
44+
45+
#. module: crm_project_create
46+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__id
47+
msgid "ID"
48+
msgstr ""
49+
50+
#. module: crm_project_create
51+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project____last_update
52+
msgid "Last Modified on"
53+
msgstr ""
54+
55+
#. module: crm_project_create
56+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__write_uid
57+
msgid "Last Updated by"
58+
msgstr ""
59+
60+
#. module: crm_project_create
61+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__write_date
62+
msgid "Last Updated on"
63+
msgstr ""
64+
65+
#. module: crm_project_create
66+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__lead_id
67+
msgid "Lead"
68+
msgstr ""
69+
70+
#. module: crm_project_create
71+
#: model:ir.model,name:crm_project_create.model_crm_lead
72+
msgid "Lead/Opportunity"
73+
msgstr ""
74+
75+
#. module: crm_project_create
76+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_lead__project_id
77+
msgid "Project"
78+
msgstr ""
79+
80+
#. module: crm_project_create
81+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__project_description
82+
msgid "Project Description"
83+
msgstr ""
84+
85+
#. module: crm_project_create
86+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__project_name
87+
msgid "Project Name"
88+
msgstr ""
89+
90+
#. module: crm_project_create
91+
#: model:ir.model,name:crm_project_create.model_crm_create_project
92+
msgid "Wizart to create Project from Lead/Opportunity"
93+
msgstr ""

crm_project_create/i18n/es.po

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * crm_create_project
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0+e\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2024-07-17 12:20+0000\n"
10+
"PO-Revision-Date: 2024-07-17 14:20+0200\n"
11+
"Last-Translator: Emilio Pascual <[email protected]>\n"
12+
"Language-Team: \n"
13+
"Language: es\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"X-Generator: Poedit 3.4.4\n"
19+
20+
#. module: crm_project_create
21+
#: model_terms:ir.ui.view,arch_db:crm_project_create.crm_create_project_view_form
22+
msgid "Cancel"
23+
msgstr "Cancelar"
24+
25+
#. module: crm_project_create
26+
#: model:ir.actions.act_window,name:crm_project_create.crm_create_project_action
27+
#: model_terms:ir.ui.view,arch_db:crm_project_create.crm_create_project_view_form
28+
#: model_terms:ir.ui.view,arch_db:crm_project_create.crm_lead_view_form_crm_project_project
29+
msgid "Create Project"
30+
msgstr "Crear proyecto"
31+
32+
#. module: crm_project_create
33+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__create_uid
34+
msgid "Created by"
35+
msgstr "Creado por"
36+
37+
#. module: crm_project_create
38+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__create_date
39+
msgid "Created on"
40+
msgstr "Creado el"
41+
42+
#. module: crm_project_create
43+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__display_name
44+
msgid "Display Name"
45+
msgstr "Nombre mostrado"
46+
47+
#. module: crm_project_create
48+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__id
49+
msgid "ID"
50+
msgstr ""
51+
52+
#. module: crm_project_create
53+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project____last_update
54+
msgid "Last Modified on"
55+
msgstr "Última modificación el"
56+
57+
#. module: crm_project_create
58+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__write_uid
59+
msgid "Last Updated by"
60+
msgstr "Última actualización por"
61+
62+
#. module: crm_project_create
63+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__write_date
64+
msgid "Last Updated on"
65+
msgstr "Última actualización el"
66+
67+
#. module: crm_project_create
68+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__lead_id
69+
msgid "Lead"
70+
msgstr "Iniciativa/Oportundad"
71+
72+
#. module: crm_project_create
73+
#: model:ir.model,name:crm_project_create.model_crm_lead
74+
msgid "Lead/Opportunity"
75+
msgstr "Iniciativa/Oportundad"
76+
77+
#. module: crm_project_create
78+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_lead__project_id
79+
msgid "Project"
80+
msgstr "Proyecto"
81+
82+
#. module: crm_project_create
83+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__project_description
84+
msgid "Project Description"
85+
msgstr "Descripción del proyecto"
86+
87+
#. module: crm_project_create
88+
#: model:ir.model.fields,field_description:crm_project_create.field_crm_create_project__project_name
89+
msgid "Project Name"
90+
msgstr "Nombre del proyecto"
91+
92+
#. module: crm_project_create
93+
#: model:ir.model,name:crm_project_create.model_crm_create_project
94+
msgid "Wizart to create Project from Lead/Opportunity"
95+
msgstr "Asistente para crear un proyecto desde la iniciativa/oportunidad"
96+
97+
#, python-format
98+
#~ msgid "Project <a href=# data-oe-model=project.project data-oe-id=%(project)d>%(name)s</a> created."
99+
#~ msgstr "Proyecto <a href=# data-oe-model=project.project data-oe-id=%(project)d>%(name)s</a> creado."
100+
101+
#, python-format
102+
#~ msgid "Project created from lead/opportunity <a href=# data-oe-model=crm.lead data-oe-id=%(lead)d>%(name)s</a>."
103+
#~ msgstr "Proyecto creado desde la iniciativa/oportunidad <a href=# data-oe-model=crm.lead data-oe-id=%(lead)d>%(name)s</a>."

crm_project_create/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import crm_lead

crm_project_create/models/crm_lead.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright 2024 Moduon Team S.L.
2+
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)
3+
4+
from odoo import fields, models
5+
6+
7+
class CrmLead(models.Model):
8+
_inherit = "crm.lead"
9+
10+
project_id = fields.Many2one("project.project", string="Project")

crm_project_create/readme/CONTEXT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This module was developed because sometimes you want to create the project from the crm without creating a sales order, for example when you want to plan a project.
2+
3+
It will be useful for you if you want to create a project before creating a quotation and confirming it or if you want to estimate, plan or know if you have the capacity before making the sale.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Emilio Pascual ([Moduon](https://www.moduon.team/))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module extends the functionality of crm and project and allow you to create a project from opportunity or lead.

0 commit comments

Comments
 (0)