Skip to content
Snippets Groups Projects
Commit a4b1c832 authored by Fabien Pinckaers's avatar Fabien Pinckaers
Browse files

[FIX] subscription bad raise

bzr revid: fp@tinyerp.com-20111002161940-r2b0fj0uut75ay1e
parent 875ba063
No related branches found
No related tags found
No related merge requests found
......@@ -38,12 +38,6 @@ class subscription_document(osv.osv):
_defaults = {
'active' : lambda *a: True,
}
def write(self, cr, uid, ids, vals, context=None):
if 'model' in vals:
raise osv.except_osv(_('Error !'),_('You cannot modify the Object linked to the Document Type!\nCreate another Document instead !'))
return super(subscription_document, self).write(cr, uid, ids, vals, context=context)
subscription_document()
class subscription_document_fields(osv.osv):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment