Browse Source

[FIX] honor sequence

pull/205/head
Holger Brunn 10 years ago
parent
commit
a8954c2114
  1. 1
      fetchmail_attach_from_folder/model/fetchmail_server_folder.py
  2. 2
      fetchmail_attach_from_folder/view/fetchmail_server.xml

1
fetchmail_attach_from_folder/model/fetchmail_server_folder.py

@ -26,6 +26,7 @@ from .. import match_algorithm
class fetchmail_server_folder(models.Model): class fetchmail_server_folder(models.Model):
_name = 'fetchmail.server.folder' _name = 'fetchmail.server.folder'
_rec_name = 'path' _rec_name = 'path'
_order = 'sequence'
def _get_match_algorithms(self): def _get_match_algorithms(self):
def get_all_subclasses(cls): def get_all_subclasses(cls):

2
fetchmail_attach_from_folder/view/fetchmail_server.xml

@ -17,7 +17,7 @@
nolabel="1" nolabel="1"
on_change="onchange_server_type(type, is_ssl, object_id)"> on_change="onchange_server_type(type, is_ssl, object_id)">
<tree> <tree>
<field name="sequence" invisible="1" />
<field name="sequence" widget="handle" />
<field name="path" /> <field name="path" />
<field name="model_id" /> <field name="model_id" />
<field name="model_field" /> <field name="model_field" />

Loading…
Cancel
Save