[IMP] caldav wizard
bzr revid: kjo@tinyerp.com-20120625105620-nvv3g7fqq63y3vbw
This commit is contained in:
parent
522df2d0a9
commit
a5f70b8fa4
|
@ -7,18 +7,30 @@
|
||||||
<field name="model">caldav.browse</field>
|
<field name="model">caldav.browse</field>
|
||||||
<field name="type">form</field>
|
<field name="type">form</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Browse Caldav" >
|
<form string="Browse Caldav" version="7.0">
|
||||||
|
<header>
|
||||||
|
<button special="cancel" string="_Close" icon="gtk-close"/>
|
||||||
|
</header>
|
||||||
|
<sheet>
|
||||||
<group colspan="4" width="700" height="500">
|
<group colspan="4" width="700" height="500">
|
||||||
<separator string="Browse Caldav" colspan="4"/>
|
<separator string="Browse Caldav" colspan="4"/>
|
||||||
<field name="url" colspan="4" />
|
<field name="url" colspan="2" />
|
||||||
<separator string="Description" colspan="4"/>
|
<separator string="Help" colspan="4"/>
|
||||||
<field name="description" colspan="4" nolabel="1"/>
|
<label string=" * Webdav server that provides remote access to calendar" colspan="4"/>
|
||||||
|
<label string=" * Synchronisation of calendar using WebDAV" colspan="4"/>
|
||||||
|
<label string=" * Customize calendar event and todo attribute with any of OpenERP model" colspan="4"/>
|
||||||
|
<label string=" * Provides iCal Import/Export functionality" colspan="4"/>
|
||||||
|
<label string=" To access Calendars using CalDAV clients, point them to:
|
||||||
|
http://HOSTNAME:PORT/webdav/DATABASE_NAME/calendars/users/USERNAME/c" colspan="4"/>
|
||||||
|
<label string=" To access OpenERP Calendar using WebCal to remote site use the URL like:
|
||||||
|
http://HOSTNAME:PORT/webdav/DATABASE_NAME/Calendars/CALENDAR_NAME.ics" colspan="4"/>
|
||||||
|
<label string=" Where,
|
||||||
|
HOSTNAME: Host on which OpenERP server(With webdav) is running
|
||||||
|
PORT : Port on which OpenERP server is running (By Default : 8069)
|
||||||
|
DATABASE_NAME: Name of database on which OpenERP Calendar is created" colspan="4"/>
|
||||||
<separator colspan="4"/>
|
<separator colspan="4"/>
|
||||||
<group col="4" colspan="4">
|
|
||||||
<label string="" colspan="2"/>
|
|
||||||
<button special="cancel" string="_Close" icon="gtk-close"/>
|
|
||||||
</group>
|
|
||||||
</group>
|
</group>
|
||||||
|
</sheet>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
@ -28,18 +40,15 @@
|
||||||
<field name="model">user.preference</field>
|
<field name="model">user.preference</field>
|
||||||
<field name="type">form</field>
|
<field name="type">form</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Caldav's host name configuration">
|
<form string="Caldav's host name configuration" version="7.0">
|
||||||
<label string="Configure your openerp hostname. For example : " colspan="4"></label>
|
<header>
|
||||||
<newline/>
|
|
||||||
<label string="database.my.openerp.com or companyserver.com" colspan="4"/>
|
|
||||||
<newline/>
|
|
||||||
<separator colspan="4"/>
|
|
||||||
<field name="host_name" colspan="4" width="250" />
|
|
||||||
<separator colspan="4"/>
|
|
||||||
<group col="4" colspan="4">
|
|
||||||
<button special="cancel" string="_Cancel" icon="gtk-cancel"/>
|
|
||||||
<button name="next_window" string="Next" type="object" icon="gtk-go-forward"/>
|
<button name="next_window" string="Next" type="object" icon="gtk-go-forward"/>
|
||||||
|
</header>
|
||||||
|
<sheet>
|
||||||
|
<group>
|
||||||
|
<field name="host_name" colspan="2" width="250" placeholder="For example : database.my.openerp.com or companyserver.com"/>
|
||||||
</group>
|
</group>
|
||||||
|
</sheet>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
@ -49,19 +58,18 @@
|
||||||
<field name="model">user.preference</field>
|
<field name="model">user.preference</field>
|
||||||
<field name="type">form</field>
|
<field name="type">form</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="User Preference">
|
<form string="User Preference" version="7.0">
|
||||||
<separator string="" colspan="4"/>
|
<header>
|
||||||
<field name="service" colspan="4" width="250" readonly="1"/>
|
|
||||||
<field name="collection" colspan="4" width="250" invisible="1" />
|
|
||||||
<field name="calendar" colspan="4" width="250" domain="[('collection_id','=', collection)]" readonly="1"/>
|
|
||||||
<field name="device" colspan="4" width="250" />
|
|
||||||
<separator colspan="4"/>
|
|
||||||
|
|
||||||
<group col="4" colspan="4">
|
|
||||||
<label string="" colspan="2"/>
|
|
||||||
<button special="cancel" string="_Cancel" icon="gtk-cancel"/>
|
|
||||||
<button name="open_window" string="_Open" type="object" icon="gtk-ok"/>
|
<button name="open_window" string="_Open" type="object" icon="gtk-ok"/>
|
||||||
|
</header>
|
||||||
|
<sheet>
|
||||||
|
<group>
|
||||||
|
<field name="service" colspan="2" readonly="1"/>
|
||||||
|
<field name="collection" colspan="2" invisible="1" />
|
||||||
|
<field name="calendar" colspan="2" domain="[('collection_id','=', collection)]" readonly="1"/>
|
||||||
|
<field name="device" colspan="2"/>
|
||||||
</group>
|
</group>
|
||||||
|
</sheet>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
|
@ -47,24 +47,26 @@
|
||||||
<h1>
|
<h1>
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
</h1>
|
</h1>
|
||||||
|
</div>
|
||||||
|
<group>
|
||||||
<h2>
|
<h2>
|
||||||
|
<field name="date" string="Start Date" required="1"
|
||||||
|
class="oe_edit_only oe_inline"/>
|
||||||
At <field name="location" class="oe_inline" />
|
At <field name="location" class="oe_inline" />
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</group>
|
||||||
|
<group>
|
||||||
<h2>
|
<h2>
|
||||||
<label for="duration" string="Duration" />
|
<label for="duration" string="Duration" />
|
||||||
<field name="duration" widget="float_time"
|
<field name="duration" widget="float_time"
|
||||||
on_change="onchange_dates(date,duration,False,allday)"
|
on_change="onchange_dates(date,duration,False,allday)"
|
||||||
class="oe_inline"/> from
|
class="oe_inline"/> to
|
||||||
<field name="date"
|
|
||||||
string="Start Date"
|
|
||||||
required="1"
|
|
||||||
class="oe_edit_only oe_inline"/> to
|
|
||||||
<field name="date_deadline"
|
<field name="date_deadline"
|
||||||
string="End Date" required="1"
|
string="End Date" required="1"
|
||||||
on_change="onchange_dates(date,False,date_deadline)"
|
on_change="onchange_dates(date,False,date_deadline)"
|
||||||
class="oe_inline"/>
|
class="oe_inline"/>
|
||||||
</h2>
|
</h2>
|
||||||
|
</group>
|
||||||
<group colspan="4" col="4">
|
<group colspan="4" col="4">
|
||||||
<group colspan="2">
|
<group colspan="2">
|
||||||
<field name="user_id" />
|
<field name="user_id" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<openerp>
|
<openerp>
|
||||||
<data>
|
<data>
|
||||||
<record id="action_caldav_browse" model="ir.actions.act_window">
|
<record id="action_caldav_browse" model="ir.actions.act_window">
|
||||||
<field name="name">Caldav Browse</field>
|
<field name="name">Synchronize Your Meetings</field>
|
||||||
<field name="type">ir.actions.act_window</field>
|
<field name="type">ir.actions.act_window</field>
|
||||||
<field name="res_model">user.preference</field>
|
<field name="res_model">user.preference</field>
|
||||||
<field name="view_id" ref="caldav.host_prefernce_form"/>
|
<field name="view_id" ref="caldav.host_prefernce_form"/>
|
||||||
|
|
Loading…
Reference in New Issue