old_contents: ##############################################################################
  #
  #    Copyright (C) 2019 Compassion CH (http://www.compassion.ch)
  #    Releasing children from poverty in Jesus' name
  #    @author: Emanuel Cino <ecino@compassion.ch>
  #
  #    The licence is in the file __manifest__.py
  #
  ##############################################################################
  
  from odoo import api, models, fields
  
  
  class SBCSettings(models.TransientModel):
      """ Settings configuration for any Notifications."""
  
      _inherit = "res.config.settings"
  
      # Users to notify after Child Departure
      additional_b2s_translation = fields.Binary(
          string="B2S additional translation page template"
      )
  
      letter_responsible = fields.Many2one(
          "res.users",
          string="Letter responsible for activity schedule",
          domain=[("share", "=", False)],
          readonly=False,
      )
  
      @api.multi
      def set_values(self):
          super().set_values()
          # This is stored in page template for additional B2S pages
          config = self.env["ir.config_parameter"].sudo()
          config.set_param(
              "sbc_compassion.letter_responsible", str(self.letter_responsible.id or 0)
          )
  
          page_template = self.env.ref("sbc_compassion.b2s_additional_page")
          page_template.background = self.additional_b2s_translation
  
      @api.model
      def get_values(self):
          res = super().get_values()
          config = self.env["ir.config_parameter"].sudo()
  
          b2s_add_page = self.env.ref("sbc_compassion.b2s_additional_page")
  
          res["additional_b2s_translation"] = b2s_add_page.background
          res["letter_responsible"] = int(
              config.get_param("sbc_compassion.letter_responsible", 0)
          )
          return res
  
new_contents: ##############################################################################
  #
  #    Copyright (C) 2019 Compassion CH (http://www.compassion.ch)
  #    Releasing children from poverty in Jesus' name
  #    @author: Emanuel Cino <ecino@compassion.ch>
  #
  #    The licence is in the file __manifest__.py
  #
  ##############################################################################
  
  from odoo import api, models, fields
  
  
  class SBCSettings(models.TransientModel):
      """ Settings configuration for any Notifications."""
  
      _inherit = "res.config.settings"
  
      # Users to notify after Child Departure
      additional_b2s_translation = fields.Binary(
          string="B2S additional translation page template",
          attachment=True
      )
  
      letter_responsible = fields.Many2one(
          "res.users",
          string="Letter responsible for activity schedule",
          domain=[("share", "=", False)],
          readonly=False,
      )
  
      @api.multi
      def set_values(self):
          super().set_values()
          # This is stored in page template for additional B2S pages
          config = self.env["ir.config_parameter"].sudo()
          config.set_param(
              "sbc_compassion.letter_responsible", str(self.letter_responsible.id or 0)
          )
  
          page_template = self.env.ref("sbc_compassion.b2s_additional_page")
          page_template.background = self.additional_b2s_translation
  
      @api.model
      def get_values(self):
          res = super().get_values()
          config = self.env["ir.config_parameter"].sudo()
  
          b2s_add_page = self.env.ref("sbc_compassion.b2s_additional_page")
  
          res["additional_b2s_translation"] = b2s_add_page.background
          res["letter_responsible"] = int(
              config.get_param("sbc_compassion.letter_responsible", 0)
          )
          return res
  
subject: FIX additional_b2s_translation binary field causing big database