Merge lp:~vauxoo/addons-vauxoo/7.0-project_task_domain-jc into lp:addons-vauxoo/7.0

Proposed by Juan Carlos Hernandez
Status: Merged
Merged at revision: 1067
Proposed branch: lp:~vauxoo/addons-vauxoo/7.0-project_task_domain-jc
Merge into: lp:addons-vauxoo/7.0
Diff against target: 148 lines (+120/-0)
5 files modified
project_task_domain/__init__.py (+26/-0)
project_task_domain/__openerp__.py (+47/-0)
project_task_domain/i18n/es.po (+16/-0)
project_task_domain/i18n/es_MX.po (+16/-0)
project_task_domain/view/project_task_view_inherit.xml (+15/-0)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/7.0-project_task_domain-jc
Reviewer Review Type Date Requested Status
Sabrina Romero - http://www.vauxoo.com Approve
Julio Serna-http://www.vauxoo.com Pending
Moisés López - http://www.vauxoo.com Pending
Juan Carlos Hernandez Pending
Review via email: mp+224736@code.launchpad.net

Description of the change

Se agregó un nuevo módulo llamado project_task_domain con un domain al campo project_id en el modelo project.task para solo filtrar proyectos que no estén en los siguientes estados [cancelled, close], se realizó con herencia

To post a comment you must log in.
Revision history for this message
Sabrina Romero - http://www.vauxoo.com (sabrina) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'project_task_domain'
2=== added file 'project_task_domain/__init__.py'
3--- project_task_domain/__init__.py 1970-01-01 00:00:00 +0000
4+++ project_task_domain/__init__.py 2014-06-26 23:10:10 +0000
5@@ -0,0 +1,26 @@
6+#!/usr/bin/python
7+# -*- encoding: utf-8 -*-
8+#
9+# Module Writen to OpenERP, Open Source Management Solution
10+#
11+# Copyright (c) 2014 Vauxoo - http://www.vauxoo.com/
12+# All Rights Reserved.
13+# info Vauxoo (info@vauxoo.com)
14+#
15+# Coded by: vauxoo consultores (info@vauxoo.com)
16+#
17+#
18+# This program is free software: you can redistribute it and/or modify
19+# it under the terms of the GNU Affero General Public License as
20+# published by the Free Software Foundation, either version 3 of the
21+# License, or (at your option) any later version.
22+#
23+# This program is distributed in the hope that it will be useful,
24+# but WITHOUT ANY WARRANTY; without even the implied warranty of
25+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26+# GNU Affero General Public License for more details.
27+#
28+# You should have received a copy of the GNU Affero General Public License
29+# along with this program. If not, see <http://www.gnu.org/licenses/>.
30+#
31+#
32\ No newline at end of file
33
34=== added file 'project_task_domain/__openerp__.py'
35--- project_task_domain/__openerp__.py 1970-01-01 00:00:00 +0000
36+++ project_task_domain/__openerp__.py 2014-06-26 23:10:10 +0000
37@@ -0,0 +1,47 @@
38+#!/usr/bin/python
39+# -*- encoding: utf-8 -*-
40+#
41+# Module Writen to OpenERP, Open Source Management Solution
42+#
43+# Copyright (c) 2014 Vauxoo - http://www.vauxoo.com/
44+# All Rights Reserved.
45+# info Vauxoo (info@vauxoo.com)
46+#
47+# Coded by: vauxoo consultores (info@vauxoo.com)
48+#
49+#
50+# This program is free software: you can redistribute it and/or modify
51+# it under the terms of the GNU Affero General Public License as
52+# published by the Free Software Foundation, either version 3 of the
53+# License, or (at your option) any later version.
54+#
55+# This program is distributed in the hope that it will be useful,
56+# but WITHOUT ANY WARRANTY; without even the implied warranty of
57+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
58+# GNU Affero General Public License for more details.
59+#
60+# You should have received a copy of the GNU Affero General Public License
61+# along with this program. If not, see <http://www.gnu.org/licenses/>.
62+#
63+#
64+
65+{
66+ "name": "Project domain project_id",
67+ "version": "1.0",
68+ "author": "Vauxoo",
69+ "category": "Generic Modules/Project",
70+ "description" : """
71+ This module set as required the field project_id on
72+ model project.task from the view by inheritance.
73+ """,
74+ "website": "http://www.vauxoo.com/",
75+ "license": "AGPL-3",
76+ "depends": [
77+ "project",
78+ ],
79+ "data": ["view/project_task_view_inherit.xml"
80+ ],
81+ "test": [],
82+ "installable": True,
83+ "active": False,
84+}
85
86=== added directory 'project_task_domain/i18n'
87=== added file 'project_task_domain/i18n/es.po'
88--- project_task_domain/i18n/es.po 1970-01-01 00:00:00 +0000
89+++ project_task_domain/i18n/es.po 2014-06-26 23:10:10 +0000
90@@ -0,0 +1,16 @@
91+# Translation of OpenERP Server.
92+# This file contains the translation of the following modules:
93+#
94+msgid ""
95+msgstr ""
96+"Project-Id-Version: OpenERP Server 7.0\n"
97+"Report-Msgid-Bugs-To: \n"
98+"POT-Creation-Date: 2014-06-26 22:51+0000\n"
99+"PO-Revision-Date: 2014-06-26 22:51+0000\n"
100+"Last-Translator: <>\n"
101+"Language-Team: \n"
102+"MIME-Version: 1.0\n"
103+"Content-Type: text/plain; charset=UTF-8\n"
104+"Content-Transfer-Encoding: \n"
105+"Plural-Forms: \n"
106+
107
108=== added file 'project_task_domain/i18n/es_MX.po'
109--- project_task_domain/i18n/es_MX.po 1970-01-01 00:00:00 +0000
110+++ project_task_domain/i18n/es_MX.po 2014-06-26 23:10:10 +0000
111@@ -0,0 +1,16 @@
112+# Translation of OpenERP Server.
113+# This file contains the translation of the following modules:
114+#
115+msgid ""
116+msgstr ""
117+"Project-Id-Version: OpenERP Server 7.0\n"
118+"Report-Msgid-Bugs-To: \n"
119+"POT-Creation-Date: 2014-06-26 22:51+0000\n"
120+"PO-Revision-Date: 2014-06-26 22:51+0000\n"
121+"Last-Translator: <>\n"
122+"Language-Team: \n"
123+"MIME-Version: 1.0\n"
124+"Content-Type: text/plain; charset=UTF-8\n"
125+"Content-Transfer-Encoding: \n"
126+"Plural-Forms: \n"
127+
128
129=== added directory 'project_task_domain/view'
130=== added file 'project_task_domain/view/project_task_view_inherit.xml'
131--- project_task_domain/view/project_task_view_inherit.xml 1970-01-01 00:00:00 +0000
132+++ project_task_domain/view/project_task_view_inherit.xml 2014-06-26 23:10:10 +0000
133@@ -0,0 +1,15 @@
134+<?xml version="1.0" encoding="utf-8"?>
135+<openerp>
136+ <data>
137+ <record model="ir.ui.view" id="view_project_task_projetc_id_domain_inherit">
138+ <field name="name">view.project.task.projetc_id.domain.inherit</field>
139+ <field name="model">project.task</field>
140+ <field name="inherit_id" ref="project.view_task_form2"/>
141+ <field name="arch" type="xml">
142+ <xpath expr="//field[@name='project_id']" position="replace">
143+ <field name="project_id" domain="[('state', 'not in',['close', 'cancelled'])]" on_change="onchange_project(project_id)" context="{'default_use_tasks':1}" required="1"/>
144+ </xpath>
145+ </field>
146+ </record>
147+ </data>
148+</openerp>