Merge lp:~vauxoo/addons-vauxoo/ir-values-menu-dev-yzk into lp:addons-vauxoo

Proposed by Isaac López Zúñiga
Status: Merged
Approved by: Nhomar - Vauxoo
Approved revision: 362
Merged at revision: 527
Proposed branch: lp:~vauxoo/addons-vauxoo/ir-values-menu-dev-yzk
Merge into: lp:addons-vauxoo
Diff against target: 158 lines (+132/-0)
5 files modified
ir_values_menu/__init__.py (+28/-0)
ir_values_menu/__openerp__.py (+48/-0)
ir_values_menu/ir_values_view.xml (+52/-0)
ir_values_menu/security/ir.model.access.csv (+2/-0)
ir_values_menu/security/ir.rule.csv (+2/-0)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/ir-values-menu-dev-yzk
Reviewer Review Type Date Requested Status
Moisés López - http://www.vauxoo.com Pending
Review via email: mp+118178@code.launchpad.net

Description of the change

Add module ir_values_menu

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'ir_values_menu'
2=== added file 'ir_values_menu/__init__.py'
3--- ir_values_menu/__init__.py 1970-01-01 00:00:00 +0000
4+++ ir_values_menu/__init__.py 2012-08-03 18:44:23 +0000
5@@ -0,0 +1,28 @@
6+# -*- encoding: utf-8 -*-
7+###########################################################################
8+# Module Writen to OpenERP, Open Source Management Solution
9+#
10+# Copyright (c) 2012 Vauxoo - http://www.vauxoo.com/
11+# All Rights Reserved.
12+# info Vauxoo (info@vauxoo.com)
13+############################################################################
14+# Coded by: Isaac Lopez (isaac@vauxoo.com)
15+# moylop260 (moylop260@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+
33+#~ import ir_values
34
35=== added file 'ir_values_menu/__openerp__.py'
36--- ir_values_menu/__openerp__.py 1970-01-01 00:00:00 +0000
37+++ ir_values_menu/__openerp__.py 2012-08-03 18:44:23 +0000
38@@ -0,0 +1,48 @@
39+# -*- encoding: utf-8 -*-
40+###########################################################################
41+# Module Writen to OpenERP, Open Source Management Solution
42+#
43+# Copyright (c) 2012 Vauxoo - http://www.vauxoo.com/
44+# All Rights Reserved.
45+# info Vauxoo (info@vauxoo.com)
46+############################################################################
47+# Coded by: Isaac Lopez (isaac@vauxoo.com)
48+# moylop260 (moylop260@vauxoo.com)
49+############################################################################
50+#
51+# This program is free software: you can redistribute it and/or modify
52+# it under the terms of the GNU Affero General Public License as
53+# published by the Free Software Foundation, either version 3 of the
54+# License, or (at your option) any later version.
55+#
56+# This program is distributed in the hope that it will be useful,
57+# but WITHOUT ANY WARRANTY; without even the implied warranty of
58+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
59+# GNU Affero General Public License for more details.
60+#
61+# You should have received a copy of the GNU Affero General Public License
62+# along with this program. If not, see <http://www.gnu.org/licenses/>.
63+#
64+##############################################################################
65+
66+{
67+ "name" : "Creacion del menu de ir_values con key == default",
68+ "version" : "1.0",
69+ "author" : "Vauxoo",
70+ "category" : "Generic Modules",
71+ "description" : """This module creates menu item to model ir.values
72+ """,
73+ "website" : "http://www.vauxoo.com/",
74+ "license" : "AGPL-3",
75+ "depends" : ["base"
76+ ],
77+ "init_xml" : [],
78+ "demo_xml" : [],
79+ "update_xml" : [
80+ 'security/ir.model.access.csv',
81+ 'security/ir.rule.csv',
82+ 'ir_values_view.xml',
83+ ],
84+ "installable" : True,
85+ "active" : False,
86+}
87
88=== added file 'ir_values_menu/ir_values_view.xml'
89--- ir_values_menu/ir_values_view.xml 1970-01-01 00:00:00 +0000
90+++ ir_values_menu/ir_values_view.xml 2012-08-03 18:44:23 +0000
91@@ -0,0 +1,52 @@
92+<?xml version="1.0" encoding="utf-8"?>
93+<openerp>
94+ <data>
95+ <record id="view_ir_values_default_form" model="ir.ui.view">
96+ <field name="name">view.ir.values.default.form</field>
97+ <field name="model">ir.values</field>
98+ <field name="type">form</field>
99+ <field name="arch" type="xml">
100+ <form string="Defaults Values">
101+ <field name="name"/>
102+ <field name="model"/>
103+ <field name="key"/>
104+ <field name="key2"/>
105+ <field name="object"/>
106+ <field name="res_id"/>
107+ <field name="user_id"/>
108+ <field name="company_id"/>
109+ <field name="value_unpickle"/>
110+ <field name="meta_unpickle"/>
111+ </form>
112+ </field>
113+ </record>
114+ <record id="view_ir_values_default_tree" model="ir.ui.view">
115+ <field name="name">view.ir.values.default.tree</field>
116+ <field name="model">ir.values</field>
117+ <field name="type">tree</field>
118+ <field name="arch" type="xml">
119+ <tree string="Defaults Values">
120+ <field name="name"/>
121+ <field name="model"/>
122+ <field name="key"/>
123+ <field name="key2"/>
124+ <field name="user_id"/>
125+ <field name="company_id"/>
126+ </tree>
127+ </field>
128+ </record>
129+
130+ <record id="action_default_values" model="ir.actions.act_window">
131+ <field name="name">Defaults Values</field>
132+ <field name="res_model">ir.values</field>
133+ <field name="view_type">form</field>
134+ <field name="domain">[('key','=','default')]</field>
135+ <field name="view_mode">tree,form</field>
136+ </record>
137+ <menuitem id="defaults_values" name="Defaults Values" parent="base.menu_config" action="action_default_values"/>
138+<!--
139+ <menuitem action="action_params_pac" id="menu_params_pac" parent="menu_pacs"/>
140+-->
141+
142+ </data>
143+</openerp>
144
145=== added directory 'ir_values_menu/security'
146=== added file 'ir_values_menu/security/ir.model.access.csv'
147--- ir_values_menu/security/ir.model.access.csv 1970-01-01 00:00:00 +0000
148+++ ir_values_menu/security/ir.model.access.csv 2012-08-03 18:44:23 +0000
149@@ -0,0 +1,2 @@
150+group_id,id,name,model_id,perm_create,perm_unlink,perm_write,perm_read
151+,base.access_ir_values_default,Ir Values Defaults,ir.values,True,True,True,True
152
153=== added file 'ir_values_menu/security/ir.rule.csv'
154--- ir_values_menu/security/ir.rule.csv 1970-01-01 00:00:00 +0000
155+++ ir_values_menu/security/ir.rule.csv 2012-08-03 18:44:23 +0000
156@@ -0,0 +1,2 @@
157+perm_create,perm_unlink,perm_write,perm_read,domain_force,groups,id,name,model_id
158+True,True,True,True,"['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]",,ir.values,IR Values,ir.values