super() finds the MRO parent of the provided class to resume the
execution chain from there, so the class being defined should be
provided.
Here view called super(osv.osv, self).create so if osv.osv (Model) had
a create() defined (which luckily it does not) it would've been
skipped.
bzr revid: xmo@openerp.com-
20130415105744-cfx47t01oc7loyes
else:
inferred_type = etree.fromstring(values['arch'].encode('utf8')).tag
values['name'] = "%s %s" % (values['model'], inferred_type)
- return super(osv.osv, self).create(cr, uid, values, context)
+ return super(view, self).create(cr, uid, values, context)
def _relaxng(self):
if not self._relaxng_validator: