[FIX] Stop the subscription.

bzr revid: vba@tinyerp.com-20120917100356-qxo6yoxe3p2710zs
This commit is contained in:
Vijaykumar Baladaniya 2012-09-17 15:33:56 +05:30
parent fabf4971aa
commit 6a624f0124
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", ondelete='cascade', states={'running':[('readonly',True)], 'done':[('readonly',True)]}),
'note': fields.text('Notes', help="Description or Summary of Subscription"),
}
_defaults = {