product_configure.py 900 B

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