Vijaykumar Baladaniya has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1048706-vba into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1048706-vba/+merge/124645

Hello Sir,

    I have improve the code to stop the subscription. Kindly review the code.

Thanks,
Vijay Baladaniya
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1048706-vba/+merge/124645
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1048706-vba.
=== modified file 'subscription/subscription.py'
--- subscription/subscription.py	2012-08-07 11:31:37 +0000
+++ subscription/subscription.py	2012-09-17 10:44:20 +0000
@@ -72,7 +72,7 @@
         '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 = {

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to