Browse Source

actualize __openerp__.py and view

pull/78/head
Pavel Batishchev 12 years ago
parent
commit
cb2f458f18
  1. 14
      super_calendar/__openerp__.py
  2. 10
      super_calendar/super_calendar_view.xml

14
super_calendar/__openerp__.py

@ -22,6 +22,7 @@
'name': "Super Calendar", 'name': "Super Calendar",
'version': '0.1', 'version': '0.1',
'category': 'Generic Modules/Others', 'category': 'Generic Modules/Others',
'summary': 'This module allows to create configurable calendars.',
'description': """ 'description': """
This module allows to create configurable calendars. This module allows to create configurable calendars.
@ -63,14 +64,15 @@ As you can see, several filters are available. A typical usage consists in filte
'author': 'Agile Business Group', 'author': 'Agile Business Group',
'website': 'http://www.agilebg.com', 'website': 'http://www.agilebg.com',
'license': 'AGPL-3', 'license': 'AGPL-3',
"depends" : ['base'],
"init_xml" : [],
"update_xml" : [
'depends' : ['base'],
"data" : [
'super_calendar_view.xml', 'super_calendar_view.xml',
'cron_data.xml', 'cron_data.xml',
'security/ir.model.access.csv', 'security/ir.model.access.csv',
], ],
"demo_xml" : [],
"active": False,
"installable": False
'demo': [],
'test': [],
'installable': True,
'application': True,
'auto_install': False,
} }

10
super_calendar/super_calendar_view.xml

@ -7,17 +7,16 @@
<record model="ir.ui.view" id="super_calendar_configurator_tree"> <record model="ir.ui.view" id="super_calendar_configurator_tree">
<field name="name">super_calendar_configurator_tree</field> <field name="name">super_calendar_configurator_tree</field>
<field name="model">super.calendar.configurator</field> <field name="model">super.calendar.configurator</field>
<field name="type">tree</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="Configurators"> <tree string="Configurators">
<field name="name"/> <field name="name"/>
</tree> </tree>
</field> </field>
</record> </record>
<record model="ir.ui.view" id="super_calendar_configurator_form"> <record model="ir.ui.view" id="super_calendar_configurator_form">
<field name="name">super_calendar_configurator_form</field> <field name="name">super_calendar_configurator_form</field>
<field name="model">super.calendar.configurator</field> <field name="model">super.calendar.configurator</field>
<field name="type">form</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Configurator"> <form string="Configurator">
<field name="name" select="1" colspan="2"/> <field name="name" select="1" colspan="2"/>
@ -64,7 +63,6 @@
<record model="ir.ui.view" id="super_calendar_tree"> <record model="ir.ui.view" id="super_calendar_tree">
<field name="name">super_calendar_tree</field> <field name="name">super_calendar_tree</field>
<field name="model">super.calendar</field> <field name="model">super.calendar</field>
<field name="type">tree</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="Calendar"> <tree string="Calendar">
<field name="name"/> <field name="name"/>
@ -78,10 +76,10 @@
</tree> </tree>
</field> </field>
</record> </record>
<record model="ir.ui.view" id="super_calendar_form"> <record model="ir.ui.view" id="super_calendar_form">
<field name="name">super_calendar_form</field> <field name="name">super_calendar_form</field>
<field name="model">super.calendar</field> <field name="model">super.calendar</field>
<field name="type">form</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Configurator"> <form string="Configurator">
<field name="name" readonly="1"/> <field name="name" readonly="1"/>
@ -96,20 +94,20 @@
</form> </form>
</field> </field>
</record> </record>
<record model="ir.ui.view" id="super_calendar"> <record model="ir.ui.view" id="super_calendar">
<field name="name">super_calendar</field> <field name="name">super_calendar</field>
<field name="model">super.calendar</field> <field name="model">super.calendar</field>
<field name="type">calendar</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<calendar string="Calendar" color="model_description" date_start="date_start" date_delay="duration"> <calendar string="Calendar" color="model_description" date_start="date_start" date_delay="duration">
<field name="name"/> <field name="name"/>
</calendar> </calendar>
</field> </field>
</record> </record>
<record model="ir.ui.view" id="super_calendar_search"> <record model="ir.ui.view" id="super_calendar_search">
<field name="name">super_calendar_search</field> <field name="name">super_calendar_search</field>
<field name="model">super.calendar</field> <field name="model">super.calendar</field>
<field name="type">search</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<search string="Search Calendar" > <search string="Search Calendar" >
<field name="name"/> <field name="name"/>

Loading…
Cancel
Save