diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2012-06-07 19:30:07 +0200 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2012-06-07 19:30:07 +0200 |
| commit | 001d2e84c9dcb96ebcdd28f8015e447d6a7030c5 (patch) | |
| tree | ad17758f283d6b2d68e6620f3d1fc48d8583036d /addons/fetchmail/fetchmail_view.xml | |
| parent | 653a436971cb94dcc0b3f881c70fb8617dc8cdf7 (diff) | |
[IMP] form views
bzr revid: fp@tinyerp.com-20120607173007-1kihroun2dbacq1c
Diffstat (limited to 'addons/fetchmail/fetchmail_view.xml')
| -rw-r--r-- | addons/fetchmail/fetchmail_view.xml | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/addons/fetchmail/fetchmail_view.xml b/addons/fetchmail/fetchmail_view.xml index 3ec8eb1515d..2f92891ab86 100644 --- a/addons/fetchmail/fetchmail_view.xml +++ b/addons/fetchmail/fetchmail_view.xml @@ -25,51 +25,46 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Incoming Mail Server"> - <group colspan="4" col="6"> - <field name="name" select="1"/> - <field name="type" select="1" on_change="onchange_server_type(type, is_ssl, object_id)"/> - <field name="date" select="1"/> + <header attrs="{'invisible' : [('type', '=', 'local')]}"> + <button string="Test & Confirm" type="object" name="button_confirm_login" states="draft" icon="gtk-apply"/> + <button string="Fetch Now" type="object" name="fetch_mail" states="done" icon="gtk-network"/> + <button string="Reset Confirmation" type="object" name="set_draft" icon="gtk-convert" states="done"/> + <field name="state" widget="statusbar"/> + </header> + <group> + <field name="name"/> + <field name="type" on_change="onchange_server_type(type, is_ssl, object_id)"/> + <field name="date"/> </group> - <notebook colspan="4"> + <notebook> <page string="Server & Login"> - <group col="2" colspan="2" attrs="{'invisible' : [('type', '=', 'local')]}"> - <separator string="Server Information" colspan="2"/> + <group attrs="{'invisible' : [('type', '=', 'local')]}" string="Server Information"> <field name="server" colspan="2" attrs="{'required' : [('type', '!=', 'local')]}" /> <field name="port" required="1" attrs="{'required' : [('type', '!=', 'local')]}" /> <field name="is_ssl" select="1" on_change="onchange_server_type(type, is_ssl)"/> </group> - <group col="2" colspan="2" attrs="{'invisible' : [('type', '=', 'local')]}"> - <separator string="Login Information" colspan="2"/> + <group attrs="{'invisible' : [('type', '=', 'local')]}" string="Login Information"> <field name="user" attrs="{'required' : [('type', '!=', 'local')]}"/> <field name="password" password="True" attrs="{'required' : [('type', '!=', 'local')]}"/> </group> - <group col="2" colspan="2"> - <separator string="Actions to Perform on Incoming Mails" colspan="2"/> + <group string="Actions to Perform on Incoming Mails"> <field name="object_id" on_change="onchange_server_type(type, is_ssl, object_id)"/> <field name="action_id"/> </group> - <group attrs="{'invisible' : [('type', '!=', 'local')]}" colspan="4" col="4"> - <separator string="Configuration" colspan="4"/> + <group attrs="{'invisible' : [('type', '!=', 'local')]}" string="Configuration"> <field name="configuration" colspan="4"/> <field name="script" colspan="4" widget="url"/> </group> </page> <page string="Advanced" groups="base.group_no_one"> - <group colspan="2" col="2"> - <separator string="Advanced Options" colspan="2"/> + <group string="Advanced Options" col="4"> <field name="priority"/> <field name="attach"/> <field name="original"/> - <field name="active" select="1"/> + <field name="active"/> </group> </page> </notebook> - <group colspan="4" col="6" attrs="{'invisible' : [('type', '=', 'local')]}"> - <field name="state"/> - <button string="Reset Confirmation" type="object" name="set_draft" icon="gtk-convert" states="done"/> - <button string="Test & Confirm" type="object" name="button_confirm_login" states="draft" icon="gtk-apply"/> - <button string="Fetch Now" type="object" name="fetch_mail" states="done" icon="gtk-network"/> - </group> </form> </field> </record> |
