[REM] website_project_timesheet: move to hr_timesheet

Since project depends on portal, this module can be removed.
This commit is contained in:
Jérome Maes
2017-08-16 14:56:42 +02:00
parent ca5467876c
commit 71d56cc398
15 changed files with 19 additions and 319 deletions
+1
View File
@@ -27,6 +27,7 @@ up a management by affair.
'views/hr_timesheet_views.xml',
'views/hr_timesheet_config_settings_views.xml',
'views/project_views.xml',
'views/project_portal_templates.xml',
'report/hr_timesheet_report_view.xml',
'report/report_timesheet_templates.xml',
'views/hr_views.xml',
@@ -51,6 +51,21 @@
<field name="perm_read" eval="1"/>
</record>
<record id="timesheet_rule_portal" model="ir.rule">
<field name="name">Project/Task Timesheets: frontend access</field>
<field name="model_id" ref="analytic.model_account_analytic_line"/>
<field name="domain_force">[
'|',
'&amp;',
('task_id.project_id.privacy_visibility', '=', 'portal'),
('task_id.project_id.message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),
'&amp;',
('task_id.project_id.privacy_visibility', '=', 'portal'),
('task_id.message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),
]</field>
<field name="groups" eval="[(4, ref('base.group_portal'))]"/>
</record>
</data>
</odoo>
@@ -1,8 +1,9 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_account_analytic_line_user,analytic.account.analytic.line.timesheet.user,analytic.model_account_analytic_line,hr_timesheet.group_hr_timesheet_user,1,1,1,1
access_account_analytic_line_portal,access_timesheets_portal,analytic.model_account_analytic_line,base.group_portal,1,0,0,0
access_account_analytic_user,analytic.account.analytic.timesheet.user,analytic.model_account_analytic_account,hr_timesheet.group_hr_timesheet_user,1,1,0,0
access_product_product_user,product.product.timesheet.user,product.model_product_product,hr_timesheet.group_hr_timesheet_user,1,1,1,0
access_product_template_timesheet_user,product.template.timesheet.user,product.model_product_template,hr_timesheet.group_hr_timesheet_user,1,1,1,0
access_product_uom_hr_timesheet,product.uom.timesheet.user,product.model_product_uom,hr_timesheet.group_hr_timesheet_user,1,0,0,0
access_project_project,project.project.timesheet.user,model_project_project,hr_timesheet.group_hr_timesheet_user,1,0,0,0
access_project_task,project.task.timesheet.user,model_project_task,hr_timesheet.group_hr_timesheet_user,1,1,0,0
access_project_task,project.task.timesheet.user,model_project_task,hr_timesheet.group_hr_timesheet_user,1,1,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_account_analytic_line_user analytic.account.analytic.line.timesheet.user analytic.model_account_analytic_line hr_timesheet.group_hr_timesheet_user 1 1 1 1
3 access_account_analytic_line_portal access_timesheets_portal analytic.model_account_analytic_line base.group_portal 1 0 0 0
4 access_account_analytic_user analytic.account.analytic.timesheet.user analytic.model_account_analytic_account hr_timesheet.group_hr_timesheet_user 1 1 0 0
5 access_product_product_user product.product.timesheet.user product.model_product_product hr_timesheet.group_hr_timesheet_user 1 1 1 0
6 access_product_template_timesheet_user product.template.timesheet.user product.model_product_template hr_timesheet.group_hr_timesheet_user 1 1 1 0
7 access_product_uom_hr_timesheet product.uom.timesheet.user product.model_product_uom hr_timesheet.group_hr_timesheet_user 1 0 0 0
8 access_project_project project.project.timesheet.user model_project_project hr_timesheet.group_hr_timesheet_user 1 0 0 0
9 access_project_task project.task.timesheet.user model_project_task hr_timesheet.group_hr_timesheet_user 1 1 0 0
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="my_task" inherit_id="website_project.my_task" name="Project Task Timesheets">
<template id="portal_my_task" inherit_id="project.portal_my_task" name="Portal: My Task with imesheets">
<xpath expr="//div[hasclass('panel-body')]" position="inside">
<div class="container" t-if="task.timesheet_ids">
<hr/>
@@ -1,17 +0,0 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Timesheet in Website Portal',
'category': 'Website',
'description': """
Display Timesheet on Task in the Website Portal
===============================================
""",
'depends': ['website_project', 'hr_timesheet'],
'data': [
'security/ir.model.access.csv',
'security/account_analytic_line_security.xml',
'views/account_analytic_line_templates.xml',
],
'auto_install': True,
}
@@ -1,41 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_project_timesheet
#
# Translators:
# Martin Trigaux <mat@odoo.com>, 2016
# Pedro M. Baeza <pedro.baeza@gmail.com>, 2016
# José Vicente <txusev@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.saas~14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-15 09:50+0000\n"
"PO-Revision-Date: 2017-02-15 09:50+0000\n"
"Last-Translator: José Vicente <txusev@gmail.com>, 2016\n"
"Language-Team: Spanish (https://www.transifex.com/odoo/teams/41243/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Date"
msgstr "Fecha"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Description"
msgstr "Descripción"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Duration"
msgstr "Duración"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Responsible"
msgstr "Responsable"
@@ -1,42 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_project_timesheet
#
# Translators:
# Martin Trigaux <mat@odoo.com>, 2016
# Olivier Lenoir <olivier.lenoir@free.fr>, 2016
# Fabien Pinckaers <fp@openerp.com>, 2016
# Melanie Bernard <mbe@odoo.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.saas~14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-15 09:50+0000\n"
"PO-Revision-Date: 2017-02-15 09:50+0000\n"
"Last-Translator: Melanie Bernard <mbe@odoo.com>, 2016\n"
"Language-Team: French (https://www.transifex.com/odoo/teams/41243/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Date"
msgstr "Date "
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Description"
msgstr "Description"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Duration"
msgstr "Durée"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Responsible"
msgstr "Responsable"
@@ -1,40 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_project_timesheet
#
# Translators:
# Martin Trigaux <mat@odoo.com>, 2016
# krnkris <krnkris@freemail.hu>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.saas~14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-15 09:50+0000\n"
"PO-Revision-Date: 2017-02-15 09:50+0000\n"
"Last-Translator: krnkris <krnkris@freemail.hu>, 2016\n"
"Language-Team: Hungarian (https://www.transifex.com/odoo/teams/41243/hu/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: hu\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Date"
msgstr "Dátum"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Description"
msgstr "Leírás"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Duration"
msgstr "Időtartam"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Responsible"
msgstr "Felelős"
@@ -1,39 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_project_timesheet
#
# Translators:
# Yenthe Van Ginneken <yenthespam@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.saas~14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-15 09:50+0000\n"
"PO-Revision-Date: 2017-02-15 09:50+0000\n"
"Last-Translator: Yenthe Van Ginneken <yenthespam@gmail.com>, 2016\n"
"Language-Team: Dutch (https://www.transifex.com/odoo/teams/41243/nl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: nl\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Date"
msgstr "Datum"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Description"
msgstr "Omschrijving"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Duration"
msgstr "Tijdsduur"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Responsible"
msgstr "Verantwoordelijke"
@@ -1,41 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_project_timesheet
#
# Translators:
# Martin Trigaux <mat@odoo.com>, 2016
# Mateus Lopes <mateus1@gmail.com>, 2016
# falexandresilva <falexandresilva@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.saas~14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-15 09:50+0000\n"
"PO-Revision-Date: 2017-02-15 09:50+0000\n"
"Last-Translator: falexandresilva <falexandresilva@gmail.com>, 2016\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/odoo/teams/41243/pt_BR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Date"
msgstr "Data"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Description"
msgstr "Descrição"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Duration"
msgstr "Duração"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Responsible"
msgstr "Responsável"
@@ -1,37 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_project_timesheet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.saas~14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-15 09:50+0000\n"
"PO-Revision-Date: 2017-02-15 09:50+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: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Date"
msgstr ""
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Description"
msgstr ""
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Duration"
msgstr ""
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Responsible"
msgstr ""
@@ -1,40 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_project_timesheet
#
# Translators:
# Jeffery CHEN <jeffery9@gmail.com>, 2016
# Martin Trigaux <mat@odoo.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.saas~14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-15 09:50+0000\n"
"PO-Revision-Date: 2017-02-15 09:50+0000\n"
"Last-Translator: Martin Trigaux <mat@odoo.com>, 2016\n"
"Language-Team: Chinese (China) (https://www.transifex.com/odoo/teams/41243/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Date"
msgstr "日期"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Description"
msgstr "说明"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Duration"
msgstr "持续时间"
#. module: website_project_timesheet
#: model:ir.ui.view,arch_db:website_project_timesheet.my_task
msgid "Responsible"
msgstr "负责人"
@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="portal_task_timesheet_rule" model="ir.rule">
<field name="name">Project/Task Timesheets: frontend access</field>
<field name="model_id" ref="analytic.model_account_analytic_line"/>
<field name="domain_force">['|',
'&amp;',
('task_id.project_id.privacy_visibility', '=', 'portal'),
('task_id.project_id.message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),
'&amp;',
('task_id.project_id.privacy_visibility', '=', 'portal'),
('task_id.message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),
]</field>
<field name="groups" eval="[(4, ref('base.group_portal'))]"/>
</record>
</data>
</odoo>
@@ -1,2 +0,0 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_timesheets_portal,access_timesheets_portal,analytic.model_account_analytic_line,base.group_portal,1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_timesheets_portal access_timesheets_portal analytic.model_account_analytic_line base.group_portal 1 0 0 0