Browse Source

[MRG] from trunk

(lp:c2c-addons/6.1  rev 60)
pull/78/head
unknown 13 years ago
parent
commit
05e64eacd1
  1. 0
      ir_config_parameter_viewer/__init__.py
  2. 20
      ir_config_parameter_viewer/__openerp__.py
  3. 38
      ir_config_parameter_viewer/ir_config_parameter_view.xml

0
ir_config_parameter_viewer/__init__.py

20
ir_config_parameter_viewer/__openerp__.py

@ -0,0 +1,20 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Author Nicolas Bessi. Copyright Camptocamp SA
##############################################################################
{'name': 'Ir.config_parameter view',
'version': '0.1',
'category': 'Tools',
'description': """
Create view to inspect/change technical parameters
""",
'author': 'Camptocamp',
'website': 'http://openerp.camptocamp.com',
'depends': ['base'],
'init_xml': [],
'update_xml': ['ir_config_parameter_view.xml'],
'demo_xml': [],
'installable': True,
'auto_install': False}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

38
ir_config_parameter_viewer/ir_config_parameter_view.xml

@ -0,0 +1,38 @@
<openerp>
<data>
<record model="ir.ui.view" id="view_config_list">
<field name="name">ir.config_parameter.list</field>
<field name="model">ir.config_parameter</field>
<field name="type">tree</field>
<field name="priority" eval="6"/>
<field name="arch" type="xml">
<tree string="Technical configuration parameters">
<field name="key" select="1"/>
<field name="value" select="1" />
</tree>
</field>
</record>
<record model="ir.ui.view" id="view_config_form">
<field name="name">ir.config_parameter.form</field>
<field name="model">ir.config_parameter</field>
<field name="type">form</field>
<field name="priority" eval="6"/>
<field name="arch" type="xml">
<form string="Technical configuration parameters">
<field name="key" select="1"/>
<field name="value" select="1" />
</form>
</field>
</record>
<record id="view_config_action" model="ir.actions.act_window">
<field name="name">Technical config parameters</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">ir.config_parameter</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_config_list"/>
</record>
<menuitem name="Technical config parameters" id="technical_config_parameters"
parent="base.next_id_15" action="view_config_action" groups="base.group_extended"/>
</data>
</openerp>
Loading…
Cancel
Save