Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP+FIX] project_timesheet_time_control
* Decorate methods correctly + README imp * Add tests * Add button on tasks * README * open/close behaviour
- Loading branch information
1 parent
1ce7692
commit a5c6a11
Showing
13 changed files
with
263 additions
and
185 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
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 Antonio Espinosa | ||
# © 2016 Pedro M. Baeza | ||
# © 2016 Sergio Teruel | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
from . import models | ||
from .hooks import post_init_hook |
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 |
---|---|---|
@@ -1,21 +1,25 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 Antonio Espinosa | ||
# © 2016 Pedro M. Baeza | ||
# © 2016 Sergio Teruel | ||
# Copyright 2016 Tecnativa - Antonio Espinosa | ||
# Copyright 2016 Tecnativa - Sergio Teruel | ||
# Copyright 2016-2017 Tecnativa - Pedro M. Baeza | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
{ | ||
'name': 'Project timesheet time control', | ||
'version': '9.0.1.0.0', | ||
'category': 'Project', | ||
'author': 'Serv. Tecnol. Avanzados - Pedro M. Baeza, ' | ||
'Antiun Ingeniería S.L.', | ||
'author': 'Tecnativa,' | ||
'Odoo Community Association (OCA)', | ||
'website': 'http://www.serviciosbaeza.com', | ||
'depends': ['project_timesheet'], | ||
'depends': [ | ||
'project_timesheet', | ||
'project_stage_closed', | ||
], | ||
'data': [ | ||
'security/project_security.xml', | ||
'view/account_analytic_line_view.xml', | ||
'views/account_analytic_line_view.xml', | ||
'views/project_task_view.xml', | ||
], | ||
'license': 'AGPL-3', | ||
'installable': True, | ||
'post_init_hook': 'post_init_hook', | ||
} |
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,12 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2016-2017 Tecnativa - Pedro M. Baeza | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
|
||
def post_init_hook(cr, registry): | ||
"""Put the date with 00:00:00 as the date_time for the line.""" | ||
cr.execute(""" | ||
UPDATE account_analytic_line | ||
SET date_time = to_timestamp(date || ' 00:00:00', | ||
'YYYY/MM/DD HH24:MI:SS') | ||
""") |
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 |
---|---|---|
@@ -1,82 +1,64 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * project_work_time_control | ||
# * project_timesheet_time_control | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 9.0c\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-03-21 17:58+0000\n" | ||
"PO-Revision-Date: 2016-03-21 19:01+0100\n" | ||
"Last-Translator: Sergio Teruel <sergio@incaser.es>\n" | ||
"POT-Creation-Date: 2017-03-14 13:31+0000\n" | ||
"PO-Revision-Date: 2017-03-14 13:31+0000\n" | ||
"Last-Translator: <>\n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Language: es_ES\n" | ||
"X-Generator: Poedit 1.5.4\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: project_work_time_control | ||
#: model:ir.model,name:project_work_time_control.model_account_analytic_line | ||
#. module: project_timesheet_time_control | ||
#: model:ir.model,name:project_timesheet_time_control.model_account_analytic_line | ||
msgid "Analytic Line" | ||
msgstr "Línea analítica" | ||
msgstr "Línea Analítica" | ||
|
||
#. module: project_work_time_control | ||
#: model:ir.ui.view,arch_db:project_work_time_control.work_time_control_timesheet_account_analytic_line_tree | ||
#. module: project_timesheet_time_control | ||
#: model:ir.ui.view,arch_db:project_timesheet_time_control.account_analytic_line_tree | ||
msgid "Close task" | ||
msgstr "Cerrar tarea" | ||
|
||
#. module: project_work_time_control | ||
#: model:ir.model.fields,field_description:project_work_time_control.field_account_analytic_line_date_time | ||
#: model:ir.ui.view,arch_db:project_work_time_control.work_time_control_analytic_line_search | ||
#. module: project_timesheet_time_control | ||
#: model:ir.model.fields,field_description:project_timesheet_time_control.field_account_analytic_line_closed | ||
msgid "Closed" | ||
msgstr "Cerrado" | ||
|
||
#. module: project_timesheet_time_control | ||
#: model:ir.model.fields,field_description:project_timesheet_time_control.field_account_analytic_line_date_time | ||
msgid "Date" | ||
msgstr "Fecha" | ||
|
||
#. module: project_work_time_control | ||
#: model:ir.model.fields,field_description:project_work_time_control.field_account_analytic_line_folded | ||
msgid "Folded in Tasks Pipeline" | ||
msgstr "Replegado en la vista Kanban" | ||
|
||
#. module: project_work_time_control | ||
#: model:ir.ui.view,arch_db:project_work_time_control.work_time_control_analytic_line_search | ||
msgid "Group By..." | ||
msgstr "Agrupar por..." | ||
|
||
#. module: project_work_time_control | ||
#: model:ir.ui.view,arch_db:project_work_time_control.work_time_control_timesheet_account_analytic_line_tree | ||
#. module: project_timesheet_time_control | ||
#: model:ir.ui.view,arch_db:project_timesheet_time_control.account_analytic_line_tree | ||
msgid "Open task" | ||
msgstr "Abrir tarea" | ||
|
||
#. module: project_work_time_control | ||
#: model:ir.ui.view,arch_db:project_work_time_control.work_time_control_analytic_line_search | ||
#, fuzzy | ||
msgid "Search task work" | ||
msgstr "Actualizar Modo Trabajo" | ||
|
||
#. module: project_work_time_control | ||
#: model:ir.ui.view,arch_db:project_work_time_control.work_time_control_timesheet_account_analytic_line_tree | ||
#. module: project_timesheet_time_control | ||
#: model:ir.ui.view,arch_db:project_timesheet_time_control.account_analytic_line_tree | ||
#: model:ir.ui.view,arch_db:project_timesheet_time_control.view_task_form2_inherited | ||
msgid "Stop" | ||
msgstr "Stop" | ||
msgstr "Detener" | ||
|
||
#. module: project_work_time_control | ||
#: model:ir.model,name:project_work_time_control.model_project_task | ||
#: model:ir.ui.view,arch_db:project_work_time_control.work_time_control_analytic_line_search | ||
#. module: project_timesheet_time_control | ||
#: model:ir.ui.view,arch_db:project_timesheet_time_control.account_analytic_line_search | ||
msgid "Task" | ||
msgstr "Tarea" | ||
|
||
#. module: project_work_time_control | ||
#: model:ir.model,name:project_work_time_control.model_project_task_type | ||
msgid "Task Stage" | ||
msgstr "Estado actual" | ||
#. module: project_timesheet_time_control | ||
#: model:ir.model.fields,help:project_timesheet_time_control.field_account_analytic_line_closed | ||
msgid "Tasks in this stage are considered closed." | ||
msgstr "Las tareas en esta etapa se consideran cerradas." | ||
|
||
#. module: project_work_time_control | ||
#: model:ir.model.fields,help:project_work_time_control.field_account_analytic_line_folded | ||
msgid "" | ||
"This stage is folded in the kanban view when there are no records in that " | ||
"stage to display." | ||
msgstr "" | ||
#. module: project_timesheet_time_control | ||
#: code:addons/project_timesheet_time_control/models/account_analytic_line.py:75 | ||
#, python-format | ||
msgid "There isn't any stage with closed check. Please mark any." | ||
msgstr "No hay ninguna etapa con la casilla Cerrado. Por favor marque alguna." | ||
|
||
#. module: project_work_time_control | ||
#: model:ir.ui.view,arch_db:project_work_time_control.work_time_control_analytic_line_search | ||
msgid "User" | ||
msgstr "Usuario" |
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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 Antonio Espinosa | ||
# © 2016 Pedro M. Baeza | ||
# © 2016 Sergio Teruel | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
from . import account_analytic_line |
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
22 changes: 0 additions & 22 deletions
22
project_timesheet_time_control/security/project_security.xml
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0 | ||
|
||
from . import test_project_timesheet_time_control |
Oops, something went wrong.