[FIX] sale,procurement: use super instead of direct call

Otherwise inheritance is not properly propagated

Closes #12337
This commit is contained in:
Peter Hahn 2016-06-08 14:53:14 +02:00 committed by Martin Trigaux
parent 529c2447b8
commit 6d7cb5408e
No known key found for this signature in database
GPG Key ID: 7B0E288E7C0F83A7
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ class procurement_order(osv.osv):
else:
raise osv.except_osv(_('Invalid Action!'),
_('Cannot delete Procurement Order(s) which are in %s state.') % s['state'])
return osv.osv.unlink(self, cr, uid, unlink_ids, context=context)
return super(procurement_order, self).unlink(cr, uid, unlink_ids, context=context)
def do_view_procurements(self, cr, uid, ids, context=None):
'''

View File

@ -279,7 +279,7 @@ class sale_order(osv.osv):
else:
raise osv.except_osv(_('Invalid Action!'), _('In order to delete a confirmed sales order, you must cancel it before!'))
return osv.osv.unlink(self, cr, uid, unlink_ids, context=context)
return super(sale_order, self).unlink(cr, uid, unlink_ids, context=context)
def copy_quotation(self, cr, uid, ids, context=None):
id = self.copy(cr, uid, ids[0], context=context)