[FIX] sale,procurement: use super instead of direct call
Otherwise inheritance is not properly propagated Closes #12337
This commit is contained in:
parent
529c2447b8
commit
6d7cb5408e
|
@ -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):
|
||||
'''
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue