-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[16.0][ADD] project_delivery_confirmed_dates: Two new dates in projects.
- Loading branch information
1 parent
f1dfed8
commit c1a7b28
Showing
13 changed files
with
328 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
================================ | ||
Project Delivery Confirmed Dates | ||
================================ | ||
|
||
* In project new fields: "Confirmed Delivery Date", "Real Delivery Date", | ||
"Validation Date". | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/avanzosc/project-addons/issues>`_. In case of trouble, | ||
please check there if your issue has already been reported. If you spotted | ||
it first, help us smash it by providing detailed and welcomed feedback. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Ana Juaristi <[email protected]> | ||
* Alfredo de la Fuente <[email protected]> |
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 @@ | ||
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,21 @@ | ||
# Copyright 2024 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
{ | ||
"name": "Project Delivery Confirmed Dates", | ||
"version": "16.0.1.0.0", | ||
"category": "Services/Project", | ||
"license": "AGPL-3", | ||
"author": "AvanzOSC", | ||
"website": "https://github.com/avanzosc/project-addons", | ||
"contributors": [ | ||
"Ana Juaristi <[email protected]>", | ||
"Alfredo de la Fuente <[email protected]>", | ||
], | ||
"depends": [ | ||
"project", | ||
], | ||
"data": [ | ||
"views/project_project_views.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,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * project_delivery_confirmed_dates | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-12-02 13:48+0000\n" | ||
"PO-Revision-Date: 2024-12-02 13:48+0000\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__confirmed_delivery_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Confirmed Delivery Date" | ||
msgstr "" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model,name:project_delivery_confirmed_dates.model_project_project | ||
msgid "Project" | ||
msgstr "Projecte" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__real_delivery_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Real Delivery Date" | ||
msgstr "" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__validation_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Validation Date" | ||
msgstr "" |
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,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * project_delivery_confirmed_dates | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-12-02 13:48+0000\n" | ||
"PO-Revision-Date: 2024-12-02 13:48+0000\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__confirmed_delivery_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Confirmed Delivery Date" | ||
msgstr "" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model,name:project_delivery_confirmed_dates.model_project_project | ||
msgid "Project" | ||
msgstr "" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__real_delivery_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Real Delivery Date" | ||
msgstr "" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__validation_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Validation Date" | ||
msgstr "" |
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,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * project_delivery_confirmed_dates | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-12-02 13:49+0000\n" | ||
"PO-Revision-Date: 2024-12-02 13:49+0000\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__confirmed_delivery_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Confirmed Delivery Date" | ||
msgstr "Fecha entrega confirmada" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model,name:project_delivery_confirmed_dates.model_project_project | ||
msgid "Project" | ||
msgstr "Proyecto" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__real_delivery_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Real Delivery Date" | ||
msgstr "Fecha entrega real" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__validation_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Validation Date" | ||
msgstr "Fecha validación" |
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,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * project_delivery_confirmed_dates | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-12-02 13:48+0000\n" | ||
"PO-Revision-Date: 2024-12-02 13:48+0000\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__confirmed_delivery_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Confirmed Delivery Date" | ||
msgstr "" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model,name:project_delivery_confirmed_dates.model_project_project | ||
msgid "Project" | ||
msgstr "Projet" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__real_delivery_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Real Delivery Date" | ||
msgstr "" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__validation_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Validation Date" | ||
msgstr "" |
39 changes: 39 additions & 0 deletions
39
project_delivery_confirmed_dates/i18n/project_delivery_confirmed_dates.pot
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,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * project_delivery_confirmed_dates | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-12-02 13:47+0000\n" | ||
"PO-Revision-Date: 2024-12-02 13:47+0000\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__confirmed_delivery_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Confirmed Delivery Date" | ||
msgstr "" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model,name:project_delivery_confirmed_dates.model_project_project | ||
msgid "Project" | ||
msgstr "" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__real_delivery_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Real Delivery Date" | ||
msgstr "" | ||
|
||
#. module: project_delivery_confirmed_dates | ||
#: model:ir.model.fields,field_description:project_delivery_confirmed_dates.field_project_project__validation_date | ||
#: model_terms:ir.ui.view,arch_db:project_delivery_confirmed_dates.view_project_project_filter | ||
msgid "Validation Date" | ||
msgstr "" |
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 @@ | ||
from . import project_project |
11 changes: 11 additions & 0 deletions
11
project_delivery_confirmed_dates/models/project_project.py
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,11 @@ | ||
# Copyright 2024 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
from odoo import fields, models | ||
|
||
|
||
class ProjectProject(models.Model): | ||
_inherit = "project.project" | ||
|
||
confirmed_delivery_date = fields.Date(copy=False) | ||
real_delivery_date = fields.Date(copy=False) | ||
validation_date = fields.Date(copy=False) |
63 changes: 63 additions & 0 deletions
63
project_delivery_confirmed_dates/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,63 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<record id="edit_project" model="ir.ui.view"> | ||
<field name="model">project.project</field> | ||
<field name="inherit_id" ref="project.edit_project" /> | ||
<field name="arch" type="xml"> | ||
<notebook position="before"> | ||
<group name="delivery-validation-dates" colspan="4" col="6"> | ||
<group colspan="2"> | ||
<field name="confirmed_delivery_date" /> | ||
</group> | ||
<group colspan="2"> | ||
<field name="real_delivery_date" /> | ||
</group> | ||
<group colspan="2"> | ||
<field name="validation_date" /> | ||
</group> | ||
</group> | ||
</notebook> | ||
</field> | ||
</record> | ||
|
||
<record id="view_project" model="ir.ui.view"> | ||
<field name="model">project.project</field> | ||
<field name="inherit_id" ref="project.view_project" /> | ||
<field name="arch" type="xml"> | ||
<field name="date" position="after"> | ||
<field name="confirmed_delivery_date" optional="show" /> | ||
<field name="real_delivery_date" optional="show" /> | ||
<field name="validation_date" optional="show" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
<record id="view_project_project_filter" model="ir.ui.view"> | ||
<field name="model">project.project</field> | ||
<field name="inherit_id" ref="project.view_project_project_filter" /> | ||
<field name="arch" type="xml"> | ||
<field name="stage_id" position="after"> | ||
<field name="confirmed_delivery_date" /> | ||
<field name="real_delivery_date" /> | ||
<field name="validation_date" /> | ||
</field> | ||
<filter name="groupby_stage" position="after"> | ||
<filter | ||
string="Confirmed Delivery Date" | ||
name="groupby_confirmed_delivery_date" | ||
context="{'group_by': 'confirmed_delivery_date'}" | ||
/> | ||
<filter | ||
string="Real Delivery Date" | ||
name="groupby_real_delivery_date" | ||
context="{'group_by': 'real_delivery_date'}" | ||
/> | ||
<filter | ||
string="Validation Date" | ||
name="groupby_validation_date" | ||
context="{'group_by': 'validation_date'}" | ||
/> | ||
</filter> | ||
</field> | ||
</record> | ||
</odoo> |
1 change: 1 addition & 0 deletions
1
setup/project_delivery_confirmed_dates/odoo/addons/project_delivery_confirmed_dates
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 @@ | ||
../../../../project_delivery_confirmed_dates |
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 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |