2012-01-31 10:34:39 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<openerp >
<data >
<record model= "ir.ui.view" id= "create_moodle_config_view" >
<field name= "name" > moodle.config.wizard.form</field>
2012-02-27 15:17:35 +00:00
<field name= "model" > event.moodle.config.wiz</field>
2012-01-31 10:34:39 +00:00
<field name= "arch" type= "xml" >
2012-06-18 12:45:11 +00:00
<form string= "Configure Moodle" version= "7.0" >
2012-01-31 10:34:39 +00:00
<group >
2012-04-24 06:05:32 +00:00
<separator string= "Server" colspan= "4" />
2012-02-27 15:17:35 +00:00
<field name= "server_moodle" />
<newline />
2012-10-09 06:01:37 +00:00
<separator string= "Connection with a Token" colspan= "4" />
2012-02-27 15:17:35 +00:00
<label string= "The easiest way to connect OpenERP with a moodle server is to create a 'token' in Moodle. It will be used to authenticate OpenERP as a trustable application." colspan= "4" />
<field name= "moodle_token" />
<newline />
2012-10-09 06:01:37 +00:00
<separator string= "Connection with username and password" colspan= "4" />
<label string= "Another approach is to create a user for OpenERP in Moodle. If you do so, make sure that this user has appropriate access rights." colspan= "4" />
2012-02-27 15:17:35 +00:00
<field name= "moodle_username" />
2012-10-22 11:47:37 +00:00
<field name= "moodle_password" password= "True" />
2012-01-31 10:34:39 +00:00
</group>
2012-11-23 10:48:15 +00:00
<footer >
<button type= "object" name= "configure_moodle"
string="Apply" class="oe_highlight" />
or
<button string= "Cancel" class= "oe_link" special= "cancel" />
</footer>
2012-01-31 10:34:39 +00:00
</form>
</field>
</record>
<record model= "ir.actions.act_window" id= "configure_moodle" >
<field name= "name" > Configure Moodle</field>
2012-02-27 15:17:35 +00:00
<field name= "res_model" > event.moodle.config.wiz</field>
2012-01-31 10:34:39 +00:00
<field name= "view_id" ref= "create_moodle_config_view" />
<field name= "view_type" > form</field>
<field name= "view_mode" > form</field>
<field name= "target" > new</field>
</record>
2012-02-02 15:12:53 +00:00
2012-01-31 10:34:39 +00:00
<!-- register configuration wizard -->
2012-09-16 11:42:49 +00:00
<record id= "base.open_menu" model= "ir.actions.todo" >
2012-01-31 10:34:39 +00:00
<field name= "action_id" ref= "configure_moodle" />
2012-09-16 11:42:49 +00:00
<field name= "state" > open</field>
2012-01-31 10:34:39 +00:00
</record>
2012-02-02 15:12:53 +00:00
2012-02-20 15:21:01 +00:00
<menuitem name= "Moodle Configuration" parent= "base.menu_marketing_config_root" id= "wizard_moodle" action= "configure_moodle" />
2012-02-02 15:12:53 +00:00
2012-01-31 10:34:39 +00:00
</data>
</openerp>