res_company.py 491 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import models
  4. class ResCompany(models.Model):
  5. _inherit = "res.company"
  6. def _get_social_media_links(self):
  7. self.ensure_one()
  8. return {
  9. 'social_facebook': self.social_facebook,
  10. 'social_linkedin': self.social_linkedin,
  11. 'social_twitter': self.social_twitter,
  12. 'social_instagram': self.social_instagram
  13. }