Add auto-refresh on the views

bzr revid: ced-4ca1545eab0c55c0826e7943abebba5056713ecd
This commit is contained in:
ced 2007-09-12 13:20:44 +00:00
parent ce079a44db
commit 9181738b51
2 changed files with 4 additions and 0 deletions

View File

@ -294,6 +294,7 @@
</field>
<field name="domain" colspan="4"/>
<field name="limit"/>
<field name="auto_refresh"/>
<newline/>
<field name="view_mode"/>
<field name="view_id"/>

View File

@ -182,6 +182,8 @@ class act_window(osv.osv):
'view_ids': fields.one2many('ir.actions.act_window.view', 'act_window_id', 'Views'),
'views': fields.function(_views_get_fnc, method=True, type='binary', string='Views'),
'limit': fields.integer('Limit', help='Default limit for the list view'),
'auto_refresh': fields.integer('Auto-Refresh',
help='Add an auto-refresh on the view'),
}
_defaults = {
'type': lambda *a: 'ir.actions.act_window',
@ -189,6 +191,7 @@ class act_window(osv.osv):
'view_mode': lambda *a: 'tree,form',
'context': lambda *a: '{}',
'limit': lambda *a: 80,
'auto_refresh': lambda *a: 0,
}
act_window()