[FIX] subscription bad raise
bzr revid: fp@tinyerp.com-20111002161940-r2b0fj0uut75ay1e
This commit is contained in:
parent
875ba0630c
commit
a4b1c832df
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue