openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #05143
[Merge] lp:~akretion-team/project-service/project-service-add-project-typology into lp:project-service
Sébastien BEAU - http://www.akretion.com has proposed merging lp:~akretion-team/project-service/project-service-add-project-typology into lp:project-service.
Requested reviews:
Project Core Editors (project-core-editors)
For more details, see:
https://code.launchpad.net/~akretion-team/project-service/project-service-add-project-typology/+merge/211992
Hi,
This module add the concept of typology on task.
--
https://code.launchpad.net/~akretion-team/project-service/project-service-add-project-typology/+merge/211992
Your team Project Core Editors is requested to review the proposed merge of lp:~akretion-team/project-service/project-service-add-project-typology into lp:project-service.
=== added directory 'project_typology'
=== added file 'project_typology/__init__.py'
--- project_typology/__init__.py 1970-01-01 00:00:00 +0000
+++ project_typology/__init__.py 2014-03-20 16:24:21 +0000
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2010 Akretion LDTA (<http://www.akretion.com>).
+#
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from . import project
+
=== added file 'project_typology/__openerp__.py'
--- project_typology/__openerp__.py 1970-01-01 00:00:00 +0000
+++ project_typology/__openerp__.py 2014-03-20 16:24:21 +0000
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2010 Akretion LDTA (<http://www.akretion.com>).
+#
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+
+{'name': 'Project requiring typologies',
+ 'version': '0.0.1',
+ 'author': 'Akretion',
+ 'website': 'www.akretion.com',
+ 'license': 'AGPL-3',
+ 'category': 'Generic Modules',
+ 'description': """
+ Adds typologies to organize the projects tasks.
+ """,
+ 'depends': [
+ 'project',
+ ],
+ 'data': [
+ 'project_view.xml',
+ 'security/ir.model.access.csv',
+ ],
+ 'installable': True,
+ 'application': True,
+}
=== added directory 'project_typology/i18n'
=== added file 'project_typology/i18n/pt_BR.po'
--- project_typology/i18n/pt_BR.po 1970-01-01 00:00:00 +0000
+++ project_typology/i18n/pt_BR.po 2014-03-20 16:24:21 +0000
@@ -0,0 +1,64 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * project_typology
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 6.0.3\n"
+"Report-Msgid-Bugs-To: support@xxxxxxxxxxx\n"
+"POT-Creation-Date: 2011-09-06 17:20+0000\n"
+"PO-Revision-Date: 2011-09-06 17:20+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_typology
+#: model:ir.module.module,shortdesc:project_typology.module_meta_information
+msgid "Project requiring typologies"
+msgstr "Project requiring typologies"
+
+#. module: project_typology
+#: model:ir.model,name:project_typology.model_project_task
+msgid "Task"
+msgstr "Tarefa"
+
+#. module: project_typology
+#: field:project.typology,name:0
+msgid "Name"
+msgstr "Nome"
+
+#. module: project_typology
+#: constraint:project.task:0
+msgid "Error ! Task end-date must be greater then task start-date"
+msgstr "Erro ! A data final deve ser igual ou maior do que a data inicial"
+
+#. module: project_typology
+#: model:ir.module.module,description:project_typology.module_meta_information
+msgid "\n"
+"\n"
+" Adds typologies to organize the projects tasks.\n"
+" "
+msgstr "\n"
+"\n"
+" Adds typologies to organize the projects tasks.\n"
+" "
+
+#. module: project_typology
+#: model:ir.model,name:project_typology.model_project_typology
+msgid "Type of tasks to organize projects"
+msgstr "Tipo de tarefas para organização dos projetos"
+
+#. module: project_typology
+#: constraint:project.task:0
+msgid "Error ! You cannot create recursive tasks."
+msgstr "Erro! Você não pode criar tarefas recursivas."
+
+#. module: project_typology
+#: view:project.task:0
+#: field:project.task,typology_id:0
+msgid "Typology"
+msgstr "Tipologia"
+
=== added file 'project_typology/project.py'
--- project_typology/project.py 1970-01-01 00:00:00 +0000
+++ project_typology/project.py 2014-03-20 16:24:21 +0000
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2010 Akretion LDTA (<http://www.akretion.com>).
+#
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp.osv import fields, orm
+
+
+class project_typology(orm.Model):
+ _name = 'project.typology'
+ _description = 'Type of tasks to organize projects'
+
+ _columns = {
+ 'name': fields.char('Name', size=64, required=True, translate=True),
+ 'product_id': fields.many2one('product.product', 'Product'),
+ }
+
+
+class project_task(orm.Model):
+ _inherit = 'project.task'
+
+ _columns = {
+ 'typology_id': fields.many2one('project.typology', 'Typology'),
+ }
=== added file 'project_typology/project_view.xml'
--- project_typology/project_view.xml 1970-01-01 00:00:00 +0000
+++ project_typology/project_view.xml 2014-03-20 16:24:21 +0000
@@ -0,0 +1,55 @@
+<openerp>
+ <data>
+ <record id="view_task_typology_form" model="ir.ui.view">
+ <field name="name">project.task.typology.form</field>
+ <field name="model">project.task</field>
+ <field name="type">form</field>
+ <field name="inherit_id" ref="project.view_task_form2"/>
+ <field name="arch" type="xml">
+ <xpath expr="//field[@name='progress']" position="after">
+ <field name="typology_id" select="1"/>
+ </xpath>
+ </field>
+ </record>
+
+ <record id="view_task_tree2" model="ir.ui.view">
+ <field name="name">project.task.tree.typology</field>
+ <field name="model">project.task</field>
+ <field name="type">tree</field>
+ <field name="inherit_id" ref="project.view_task_tree2"/>
+ <field name="arch" type="xml">
+ <field name="user_id" position="after">
+ <field name="typology_id" select="1"/>
+ </field>
+ </field>
+ </record>
+
+ <record id="view_task_search_form_fb" model="ir.ui.view">
+ <field name="name">project.task.typology.search</field>
+ <field name="model">project.task</field>
+ <field name="type">search</field>
+ <field name="inherit_id" ref="project.view_task_search_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//field[@name='name']" position="after">
+ <field name="typology_id" select="1"/>
+ </xpath>
+ <xpath expr="//group[@string='Group By...']/filter[@string='Project']" position="after">
+ <separator orientation="vertical"/>
+ <filter string="Typology" icon="terp-gtk-jump-to-ltr" domain="[]" context="{'group_by':'typology_id'}"/>
+ </xpath>
+ </field>
+ </record>
+
+ <!-- OPEN BLOCK LIST -->
+ <record model="ir.actions.act_window" id="action_proj_typology_list">
+ <field name="name">Task Typologies</field>
+ <field name="res_model">project.typology</field>
+ <field name="view_type">form</field>
+ <field name="view_mode">tree,form</field>
+ </record>
+
+ <menuitem name="Task Typologies" parent="base.menu_definitions" id="menu_proj_typologies"/>
+ <menuitem name="Task Typologies" parent="menu_proj_typologies" id="menu_proj_typologies_list" action="action_proj_typology_list" sequence="10"/>
+
+ </data>
+</openerp>
Follow ups