# -*- coding: utf-8 -*- # Part of BiztechCS. See LICENSE file for full copyright and licensing details. from openerp import fields, models class website(models.Model): """Adds the fields for options of the Zooming.""" _inherit = 'website' is_zoom_feature = fields.Boolean( string='Do you want to disable zooming feature', default=False,) inner_zoom = fields.Boolean( string='Do you want to enable inner zooming feature', default=False,) class WebsiteConfigSettings(models.TransientModel): """Settings for the Zoom.""" _inherit = 'website.config.settings' is_zoom_feature = fields.Boolean( related='website_id.is_zoom_feature', string="Do you want to disable zooming feature?") inner_zoom = fields.Boolean( string='Do you want to enable inner zooming feature', related='website_id.inner_zoom')