hunk.code_window:     @api.depends('name')
       def _compute_website_url(self):
           super(Slide, self)._compute_website_url()
           base_url = self.env['ir.config_parameter'].get_param('web.base.url')
           for slide in self:
               #link_tracker is not in dependencies, so use it to shorten url only if installed.
               if self.env.registry.get('link.tracker'):
                   url = self.env['link.tracker'].sudo().create({'url': '%s/slides/slide/%s' % (base_url, slug(slide))}).short_url
               else:
                   url = '%s/slides/slide/%s' % (base_url, slug(slide))
               slide.website_url = url
       @api.model
       def create(self, values):
           if not values.get('index_content'):
  
hunk.labels: keep keep keep keep keep replace replace replace replace replace replace keep keep keep keep
hunk.after_edit:             slide_slug = slug(slide)
               if slide_slug:
                   #link_tracker is not in dependencies, so use it to shorten url only if installed.
                   if self.env.registry.get('link.tracker'):
                       url = self.env['link.tracker'].sudo().create({'url': '%s/slides/slide/%s' % (base_url, slide_slug)}).short_url
                   else:
                       url = '%s/slides/slide/%s' % (base_url, slide_slug)
                   slide.website_url = url
  
hunk.file_path: addons/website_slides/models/slides.py
hunk.type: replace
file: # -*- coding: utf-8 -*-
  from . import models
  