[MERGE] subscription readonly if running

bzr revid: fp@tinyerp.com-20120930120059-0vyt3vmy9yoa3ecs
This commit is contained in:
Fabien Pinckaers 2012-09-30 14:00:59 +02:00
commit 0b24aa5a02
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class subscription_subscription(osv.osv):
'state': fields.selection([('draft','Draft'),('running','Running'),('done','Done')], 'Status'),
'doc_source': fields.reference('Source Document', required=True, selection=_get_document_types, size=128, help="User can choose the source document on which he wants to create documents"),
'doc_lines': fields.one2many('subscription.subscription.history', 'subscription_id', 'Documents created', readonly=True),
'cron_id': fields.many2one('ir.cron', 'Cron Job', help="Scheduler which runs on subscription"),
'cron_id': fields.many2one('ir.cron', 'Cron Job', help="Scheduler which runs on subscription", states={'running':[('readonly',True)], 'done':[('readonly',True)]}),
'note': fields.text('Notes', help="Description or Summary of Subscription"),
}
_defaults = {