(self, vals)
return vals
Override this in child classes in order to add default values.
Override this in child classes in order to add default values.
Override this in child classes in order to add default values .
def _create_vals(self, vals):
        """ Override this in child classes in order to add default values. """
        if self._allow_image_create(vals):
            vals['image'] = self._get_default_image_encoded(vals)
        return vals
def _create_vals ( self , vals ) : if self . _allow_image_create ( vals ) : vals [ 'image' ] = self . _get_default_image_encoded ( vals ) return vals