# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

import logging

from odoo import api, fields, models, tools, _
from odoo.exceptions import ValidationError

import json


_logger = logging.getLogger(__name__)


class ProductTemplate(models.Model):
    _inherit = "product.template"

    @api.model
    def iconic_sync(self):
        parameters = self.env['ir.config_parameter'].sudo().get_param('iconic.parameters')
        parameters = json.loads(parameters)
        return True

