hunk.code_window:             res_id = move_line.move_id.scrap_ids[0].id
               ref = move_line.move_id.scrap_ids[0].name
           return res_model, res_id, ref
       def make_dict_move(self, level, parent_id, move_line, unfoldable=False):
           res_model, res_id, ref = self.get_links(move_line)
           dummy, is_used = self._get_linked_move_lines(move_line)
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:     def _get_usage(self, move_line):
           usage = ''
           if (move_line.location_id.usage == 'internal') and (move_line.location_dest_id.usage == 'internal'):
               usage = 'internal'
           elif (move_line.location_id.usage != 'internal') and (move_line.location_dest_id.usage == 'internal'):
               usage = 'in'
           else:
               usage = 'out'
           return usage
  
hunk.file_path: addons/stock/models/stock_traceability.py
hunk.type: add
file: # -*- coding: utf-8 -*-
  
  import odoo
  
  def migrate(cr, version):
      registry = odoo.registry(cr.dbname)
      from odoo.addons.account.models.chart_template import migrate_tags_on_taxes
      migrate_tags_on_taxes(cr, registry)
  