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
=== added directory 'ir_values_menu'
=== added file 'ir_values_menu/__init__.py'
--- ir_values_menu/__init__.py 1970-01-01 00:00:00 +0000
+++ ir_values_menu/__init__.py 2012-08-03 18:44:23 +0000
@@ -0,0 +1,28 @@
1# -*- encoding: utf-8 -*-
2###########################################################################
3# Module Writen to OpenERP, Open Source Management Solution
4#
5# Copyright (c) 2012 Vauxoo - http://www.vauxoo.com/
6# All Rights Reserved.
7# info Vauxoo (info@vauxoo.com)
8############################################################################
9# Coded by: Isaac Lopez (isaac@vauxoo.com)
10# moylop260 (moylop260@vauxoo.com)
11############################################################################
12#
13# This program is free software: you can redistribute it and/or modify
14# it under the terms of the GNU Affero General Public License as
15# published by the Free Software Foundation, either version 3 of the
16# License, or (at your option) any later version.
17#
18# This program is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21# GNU Affero General Public License for more details.
22#
23# You should have received a copy of the GNU Affero General Public License
24# along with this program. If not, see <http://www.gnu.org/licenses/>.
25#
26##############################################################################
27
28#~ import ir_values
029
=== added file 'ir_values_menu/__openerp__.py'
--- ir_values_menu/__openerp__.py 1970-01-01 00:00:00 +0000
+++ ir_values_menu/__openerp__.py 2012-08-03 18:44:23 +0000
@@ -0,0 +1,48 @@
1# -*- encoding: utf-8 -*-
2###########################################################################
3# Module Writen to OpenERP, Open Source Management Solution
4#
5# Copyright (c) 2012 Vauxoo - http://www.vauxoo.com/
6# All Rights Reserved.
7# info Vauxoo (info@vauxoo.com)
8############################################################################
9# Coded by: Isaac Lopez (isaac@vauxoo.com)
10# moylop260 (moylop260@vauxoo.com)
11############################################################################
12#
13# This program is free software: you can redistribute it and/or modify
14# it under the terms of the GNU Affero General Public License as
15# published by the Free Software Foundation, either version 3 of the
16# License, or (at your option) any later version.
17#
18# This program is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21# GNU Affero General Public License for more details.
22#
23# You should have received a copy of the GNU Affero General Public License
24# along with this program. If not, see <http://www.gnu.org/licenses/>.
25#
26##############################################################################
27
28{
29 "name" : "Creacion del menu de ir_values con key == default",
30 "version" : "1.0",
31 "author" : "Vauxoo",
32 "category" : "Generic Modules",
33 "description" : """This module creates menu item to model ir.values
34 """,
35 "website" : "http://www.vauxoo.com/",
36 "license" : "AGPL-3",
37 "depends" : ["base"
38 ],
39 "init_xml" : [],
40 "demo_xml" : [],
41 "update_xml" : [
42 'security/ir.model.access.csv',
43 'security/ir.rule.csv',
44 'ir_values_view.xml',
45 ],
46 "installable" : True,
47 "active" : False,
48}
049
=== added file 'ir_values_menu/ir_values_view.xml'
--- ir_values_menu/ir_values_view.xml 1970-01-01 00:00:00 +0000
+++ ir_values_menu/ir_values_view.xml 2012-08-03 18:44:23 +0000
@@ -0,0 +1,52 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4 <record id="view_ir_values_default_form" model="ir.ui.view">
5 <field name="name">view.ir.values.default.form</field>
6 <field name="model">ir.values</field>
7 <field name="type">form</field>
8 <field name="arch" type="xml">
9 <form string="Defaults Values">
10 <field name="name"/>
11 <field name="model"/>
12 <field name="key"/>
13 <field name="key2"/>
14 <field name="object"/>
15 <field name="res_id"/>
16 <field name="user_id"/>
17 <field name="company_id"/>
18 <field name="value_unpickle"/>
19 <field name="meta_unpickle"/>
20 </form>
21 </field>
22 </record>
23 <record id="view_ir_values_default_tree" model="ir.ui.view">
24 <field name="name">view.ir.values.default.tree</field>
25 <field name="model">ir.values</field>
26 <field name="type">tree</field>
27 <field name="arch" type="xml">
28 <tree string="Defaults Values">
29 <field name="name"/>
30 <field name="model"/>
31 <field name="key"/>
32 <field name="key2"/>
33 <field name="user_id"/>
34 <field name="company_id"/>
35 </tree>
36 </field>
37 </record>
38
39 <record id="action_default_values" model="ir.actions.act_window">
40 <field name="name">Defaults Values</field>
41 <field name="res_model">ir.values</field>
42 <field name="view_type">form</field>
43 <field name="domain">[('key','=','default')]</field>
44 <field name="view_mode">tree,form</field>
45 </record>
46 <menuitem id="defaults_values" name="Defaults Values" parent="base.menu_config" action="action_default_values"/>
47<!--
48 <menuitem action="action_params_pac" id="menu_params_pac" parent="menu_pacs"/>
49-->
50
51 </data>
52</openerp>
053
=== added directory 'ir_values_menu/security'
=== added file 'ir_values_menu/security/ir.model.access.csv'
--- ir_values_menu/security/ir.model.access.csv 1970-01-01 00:00:00 +0000
+++ ir_values_menu/security/ir.model.access.csv 2012-08-03 18:44:23 +0000
@@ -0,0 +1,2 @@
1group_id,id,name,model_id,perm_create,perm_unlink,perm_write,perm_read
2,base.access_ir_values_default,Ir Values Defaults,ir.values,True,True,True,True
03
=== added file 'ir_values_menu/security/ir.rule.csv'
--- ir_values_menu/security/ir.rule.csv 1970-01-01 00:00:00 +0000
+++ ir_values_menu/security/ir.rule.csv 2012-08-03 18:44:23 +0000
@@ -0,0 +1,2 @@
1perm_create,perm_unlink,perm_write,perm_read,domain_force,groups,id,name,model_id
2True,True,True,True,"['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]",,ir.values,IR Values,ir.values