product_configure.py 1022 B

123456789101112131415161718192021222324252627282930313233343536
  1. # -*- coding: utf-8 -*-
  2. # Part of BiztechCS. See LICENSE file for full copyright and licensing details.
  3. from openerp import api, fields, models
  4. from openerp.models import Model
  5. class website(Model):
  6. """Adds the fields for options of the Zooming."""
  7. _inherit = 'website'
  8. is_zoom_feature = fields.Boolean(
  9. string='Do you want to disable zooming feature',
  10. default=False,)
  11. inner_zoom = fields.Boolean(
  12. string='Do you want to enable inner zooming feature',
  13. default=False,)
  14. class WebsiteConfigSettings(models.TransientModel):
  15. """Settings for the Zoom."""
  16. _inherit = 'website.config.settings'
  17. is_zoom_feature = fields.Boolean(
  18. related='website_id.is_zoom_feature',
  19. string="Do you want to disable zooming feature?")
  20. inner_zoom = fields.Boolean(
  21. string='Do you want to enable inner zooming feature',
  22. related='website_id.inner_zoom')
  23. # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: