product_configure.py~ 944 B

1234567891011121314151617181920212223242526272829303132333435
  1. # -*- coding: utf-8 -*-
  2. from openerp import api, fields, models
  3. from openerp.models import Model
  4. class website(Model):
  5. """Adds the fields for options of the Zooming."""
  6. _inherit = 'website'
  7. is_zoom_feature = fields.Boolean(
  8. string='Are you want to disable zooming feature',
  9. default=False,)
  10. inner_zoom = fields.Boolean(
  11. string='Are 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')
  22. # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: