Skip to content

Commit

Permalink
[16.0][ADD] project_delivery_confirmed_dates: Two new dates in projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredoavanzosc authored and anajuaristi committed Dec 5, 2024
1 parent f1dfed8 commit c1a7b28
Show file tree
Hide file tree
Showing 13 changed files with 328 additions and 0 deletions.
29 changes: 29 additions & 0 deletions project_delivery_confirmed_dates/README.rst
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]>
1 change: 1 addition & 0 deletions project_delivery_confirmed_dates/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions project_delivery_confirmed_dates/__manifest__.py
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,
}
39 changes: 39 additions & 0 deletions project_delivery_confirmed_dates/i18n/ca_ES.po
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 ""
39 changes: 39 additions & 0 deletions project_delivery_confirmed_dates/i18n/en_GB.po
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 ""
39 changes: 39 additions & 0 deletions project_delivery_confirmed_dates/i18n/es.po
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"
39 changes: 39 additions & 0 deletions project_delivery_confirmed_dates/i18n/fr.po
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 ""
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 ""
1 change: 1 addition & 0 deletions project_delivery_confirmed_dates/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import project_project
11 changes: 11 additions & 0 deletions project_delivery_confirmed_dates/models/project_project.py
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 project_delivery_confirmed_dates/views/project_project_views.xml
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>
6 changes: 6 additions & 0 deletions setup/project_delivery_confirmed_dates/setup.py
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,
)

0 comments on commit c1a7b28

Please sign in to comment.