|
@@ -11,39 +11,39 @@ from openerp.addons.website_sale.controllers import main
|
|
class WebsiteMenu(models.Model):
|
|
class WebsiteMenu(models.Model):
|
|
_inherit = "website.menu"
|
|
_inherit = "website.menu"
|
|
|
|
|
|
- is_megamenu = fields.Boolean(string='Is megamenu...?')
|
|
|
|
- megamenu_type = fields.Selection([('2_col', '2 Columns'),
|
|
|
|
- ('3_col', '3 Columns'),
|
|
|
|
- ('4_col', '4 Columns')],
|
|
|
|
|
|
+ is_megamenu = fields.Boolean(string='Es Megamenú...?')
|
|
|
|
+ megamenu_type = fields.Selection([('2_col', '2 Columnas'),
|
|
|
|
+ ('3_col', '3 Columnas'),
|
|
|
|
+ ('4_col', '4 Columnas')],
|
|
default='3_col',
|
|
default='3_col',
|
|
- string="Megamenu type")
|
|
|
|
- megamenu_bg = fields.Boolean(string='Want to set megamenu background', default=False)
|
|
|
|
- megamenu_bg_img_color = fields.Selection([('bg_img', 'Background image'),
|
|
|
|
- ('bg_color', 'Background color')],
|
|
|
|
|
|
+ string="Tipo de Mega Menu")
|
|
|
|
+ megamenu_bg = fields.Boolean(string='Colocar Fondo al Megamenu', default=False)
|
|
|
|
+ megamenu_bg_img_color = fields.Selection([('bg_img', 'Imágen de Fondo'),
|
|
|
|
+ ('bg_color', 'Color de Fondo')],
|
|
default='bg_img',
|
|
default='bg_img',
|
|
- string="Megamenu background selection")
|
|
|
|
- megamenu_bg_image = fields.Binary(string="Background image for megamenu")
|
|
|
|
- megamenu_bg_color = fields.Char(string="Background color for megamenu",
|
|
|
|
|
|
+ string="Seleccionar Fondo para el Mega Menu")
|
|
|
|
+ megamenu_bg_image = fields.Binary(string="Imágen de Fondo para el Mega Menú")
|
|
|
|
+ megamenu_bg_color = fields.Char(string="Color de Fondo para el Mega Menú",
|
|
default='#ccc',
|
|
default='#ccc',
|
|
help="Background color for megamenu, for setting background color you have to pass hexacode here.")
|
|
help="Background color for megamenu, for setting background color you have to pass hexacode here.")
|
|
- category_slider = fields.Boolean(string='Want to display category slider', default=False)
|
|
|
|
- carousel_header_name = fields.Char(string="Slider label",
|
|
|
|
- default="Latest", translate=True,
|
|
|
|
- help="Header name for carousel slider in megamenu")
|
|
|
|
- category_slider_position = fields.Selection([('left', 'Left'), ('right', 'Right')],
|
|
|
|
- default='left', string="Category Slider Position")
|
|
|
|
- menu_icon = fields.Boolean(string='Want to display menu icon', default=False)
|
|
|
|
- menu_icon_image = fields.Binary(string="Menu Icon", help="Menu icon for your menu")
|
|
|
|
|
|
+ category_slider = fields.Boolean(string='Mostrar Slider de Categorias en el Menú', default=False)
|
|
|
|
+ carousel_header_name = fields.Char(string="Título el Slider",
|
|
|
|
+ default="Lanzamientos", translate=True,
|
|
|
|
+ help="Nombre que se Mostrara en el Encabezado del Slider de Categorias")
|
|
|
|
+ category_slider_position = fields.Selection([('left', 'Izquierda'), ('right', 'Derecha')],
|
|
|
|
+ default='left', string="Posición del Slider")
|
|
|
|
+ menu_icon = fields.Boolean(string='Mostrar Icono en el Menu', default=False)
|
|
|
|
+ menu_icon_image = fields.Binary(string="Icono del Menu ", help="Icono para tu menu")
|
|
|
|
|
|
- display_menu_footer = fields.Boolean(string="Display menu footer", default=False,
|
|
|
|
- help="For displaying footer in megamenu")
|
|
|
|
- menu_footer = fields.Html(string="Footer content",
|
|
|
|
- help="Footer name for megamenu")
|
|
|
|
- customize_menu_colors = fields.Boolean(string='Want to customize menu colors', default=False)
|
|
|
|
- main_category_color = fields.Char(string='Main category color',
|
|
|
|
- help="Set color for main category in megamenu")
|
|
|
|
- sub_category_color = fields.Char(string='Sub category color',
|
|
|
|
- help="Set color for sab category in megamenu")
|
|
|
|
|
|
+ display_menu_footer = fields.Boolean(string="Mostrar pie de página para tu menu", default=False,
|
|
|
|
+ help="Para Mostrar pie de página en el megamenu")
|
|
|
|
+ menu_footer = fields.Html(string="Contenido del Pie de Página",
|
|
|
|
+ help="Nombre del Píe de Página para el meganenu")
|
|
|
|
+ customize_menu_colors = fields.Boolean(string='Personalizar Colores del Menu', default=False)
|
|
|
|
+ main_category_color = fields.Char(string='Color Principal de la Categoria',
|
|
|
|
+ help="Colocar color para la categoria principal del menu")
|
|
|
|
+ sub_category_color = fields.Char(string='Color para la Sub Categoria',
|
|
|
|
+ help="Colocar color para la subcategoria")
|
|
|
|
|
|
|
|
|
|
class website(models.Model):
|
|
class website(models.Model):
|
|
@@ -51,42 +51,42 @@ class website(models.Model):
|
|
|
|
|
|
# For Multi image
|
|
# For Multi image
|
|
thumbnail_panel_position = fields.Selection([
|
|
thumbnail_panel_position = fields.Selection([
|
|
- ('left', 'Left'),
|
|
|
|
- ('right', 'Right'),
|
|
|
|
- ('bottom', 'Bottom'),
|
|
|
|
|
|
+ ('left', 'Izquierda'),
|
|
|
|
+ ('right', 'Derecha'),
|
|
|
|
+ ('bottom', 'Fondo'),
|
|
], default='left',
|
|
], default='left',
|
|
- string='Thumbnails panel position',
|
|
|
|
- help="Select the position where you want to display the thumbnail panel in multi image.")
|
|
|
|
- interval_play = fields.Char(string='Play interval of slideshow', default='5000',
|
|
|
|
- help='With this field you can set the interval play time between two images.')
|
|
|
|
- enable_disable_text = fields.Boolean(string='Enable the text panel',
|
|
|
|
|
|
+ string='Posición del Panel de Miniaturas',
|
|
|
|
+ help="Seleccione la posición en la que desea mostrar el panel de miniaturas de multi-imagenes.")
|
|
|
|
+ interval_play = fields.Char(string='Intervalo de Imágenes del Slide', default='5000',
|
|
|
|
+ help='Con este campo se puede establecer el tiempo o intervalo entre dos imágenes.')
|
|
|
|
+ enable_disable_text = fields.Boolean(string='Activar el panel de texto',
|
|
default=True,
|
|
default=True,
|
|
- help='Enable/Disable text which is visible on the image in multi image.')
|
|
|
|
|
|
+ help='Activar/Desactivar el texto que aparece en la imagen en imagen de varias.')
|
|
color_opt_thumbnail = fields.Selection([
|
|
color_opt_thumbnail = fields.Selection([
|
|
- ('default', 'Default'),
|
|
|
|
- ('b_n_w', 'B/W'),
|
|
|
|
|
|
+ ('default', 'Predeterminado'),
|
|
|
|
+ ('b_n_w', 'Blanco y Negro'),
|
|
('sepia', 'Sepia'),
|
|
('sepia', 'Sepia'),
|
|
- ('blur', 'Blur'), ],
|
|
|
|
|
|
+ ('blur', 'Desenfoque'), ],
|
|
default='default',
|
|
default='default',
|
|
- string="Thumbnail overlay effects")
|
|
|
|
- no_extra_options = fields.Boolean(string='Slider effects',
|
|
|
|
|
|
+ string="Efecto sobre las miniaturas")
|
|
|
|
+ no_extra_options = fields.Boolean(string='Efectos sobre Sliders',
|
|
default=True,
|
|
default=True,
|
|
- help="Slider with all options for next, previous, play, pause, fullscreen, hide/show thumbnail panel.")
|
|
|
|
- change_thumbnail_size = fields.Boolean(string="Change thumbnail size", default=False)
|
|
|
|
- thumb_height = fields.Char(string='Thumb height', default=50)
|
|
|
|
- thumb_width = fields.Char(string='Thumb width', default=88)
|
|
|
|
|
|
+ help="Slider con todas las opciones para la siguiente, anterior, reproducción, pausa, pantalla completa, ocultar / mostrar el panel de miniaturas.")
|
|
|
|
+ change_thumbnail_size = fields.Boolean(string="Cambiar Tamaño de Miniaturas", default=False)
|
|
|
|
+ thumb_height = fields.Char(string='Altura de Imágen', default=50)
|
|
|
|
+ thumb_width = fields.Char(string='Ancho de Imágen', default=88)
|
|
|
|
|
|
# For Sort By
|
|
# For Sort By
|
|
- enable_sort_by = fields.Boolean(string='Enable product sorting option',
|
|
|
|
- help='For enabling product sorting feature in website.',
|
|
|
|
|
|
+ enable_sort_by = fields.Boolean(string='Habilitar opción de clasificación de productos',
|
|
|
|
+ help='Para habilitar la característica de ordenación del producto en el sitio web.',
|
|
default=True)
|
|
default=True)
|
|
|
|
|
|
# For first last pager
|
|
# For first last pager
|
|
- enable_first_last_pager = fields.Boolean(string="Enable First and Last Pager", default=True,
|
|
|
|
- help="Enable this checkbox to make 'First' and 'Last' button in pager on website.")
|
|
|
|
|
|
+ enable_first_last_pager = fields.Boolean(string="Habilitar primera y ultima paginación", default=True,
|
|
|
|
+ help="Activar esta casilla para mostrar el boton 'Primera' y el botón 'Última' en el paginador en el sitio web.")
|
|
# Product per grid
|
|
# Product per grid
|
|
product_display_grid = fields.Selection([('2', '2'), ('3', '3'), ('4', '4')],
|
|
product_display_grid = fields.Selection([('2', '2'), ('3', '3'), ('4', '4')],
|
|
- default='3', string='Product per grid', help="Display no. of products per line in website product grid.")
|
|
|
|
|
|
+ default='3', string='Producto por cuadrícula', help="Mostrar Nro. de productos por línea en el sitio web de la red de productos.")
|
|
|
|
|
|
# For first last pager
|
|
# For first last pager
|
|
def get_pager_selection(self):
|
|
def get_pager_selection(self):
|
|
@@ -227,48 +227,48 @@ class WebsiteConfigSettings(models.TransientModel):
|
|
|
|
|
|
# For multi image
|
|
# For multi image
|
|
thumbnail_panel_position = fields.Selection([
|
|
thumbnail_panel_position = fields.Selection([
|
|
- ('left', 'Left'),
|
|
|
|
- ('right', 'Right'),
|
|
|
|
- ('bottom', 'Bottom')],
|
|
|
|
- string='Thumbnails panel position',
|
|
|
|
|
|
+ ('left', 'Izquierda'),
|
|
|
|
+ ('right', 'Derecha'),
|
|
|
|
+ ('bottom', 'Fondo')],
|
|
|
|
+ string='Posición del Panel de Miniaturas',
|
|
related='website_id.thumbnail_panel_position',
|
|
related='website_id.thumbnail_panel_position',
|
|
help="Select the position where you want to display the thumbnail panel in multi image.")
|
|
help="Select the position where you want to display the thumbnail panel in multi image.")
|
|
- interval_play = fields.Char(string='Play interval of slideshow',
|
|
|
|
|
|
+ interval_play = fields.Char(string='Intervalo de Desplazamiento del Slide',
|
|
related='website_id.interval_play',
|
|
related='website_id.interval_play',
|
|
- help='With this field you can set the interval play time between two images.')
|
|
|
|
- enable_disable_text = fields.Boolean(string='Enable the text panel',
|
|
|
|
|
|
+ help='Con este campo se puede establecer el tiempo de intervalo entre dos imágenes.')
|
|
|
|
+ enable_disable_text = fields.Boolean(string='Activar Panel de Texto',
|
|
related='website_id.enable_disable_text',
|
|
related='website_id.enable_disable_text',
|
|
- help='Enable/Disable text which is visible on the image in multi image.')
|
|
|
|
|
|
+ help='Activar/Desactivar el texto que aparecera en el sitio web en multi-imagenes.')
|
|
color_opt_thumbnail = fields.Selection([
|
|
color_opt_thumbnail = fields.Selection([
|
|
('default', 'Default'),
|
|
('default', 'Default'),
|
|
- ('b_n_w', 'B/W'),
|
|
|
|
|
|
+ ('b_n_w', 'Blanco y Negro'),
|
|
('sepia', 'Sepia'),
|
|
('sepia', 'Sepia'),
|
|
- ('blur', 'Blur')],
|
|
|
|
|
|
+ ('blur', 'Desenfoque')],
|
|
related='website_id.color_opt_thumbnail',
|
|
related='website_id.color_opt_thumbnail',
|
|
- string="Thumbnail overlay effects")
|
|
|
|
- no_extra_options = fields.Boolean(string='Slider effects',
|
|
|
|
|
|
+ string="Efectos sobre las Miniaturas")
|
|
|
|
+ no_extra_options = fields.Boolean(string='Efectos del Slider',
|
|
# default=True,
|
|
# default=True,
|
|
related='website_id.no_extra_options',
|
|
related='website_id.no_extra_options',
|
|
- help="Slider with all options for next, previous, play, pause, fullscreen, hide/show thumbnail panel.")
|
|
|
|
- change_thumbnail_size = fields.Boolean(string="Change thumbnail size",
|
|
|
|
|
|
+ help="Slider con las opciones para siguiente, anterior, reproducción, pausa, pantalla completa, ocultar/mostrar el panel de miniaturas.")
|
|
|
|
+ change_thumbnail_size = fields.Boolean(string="Cambiar Tamaño de las Miniaturas",
|
|
related="website_id.change_thumbnail_size"
|
|
related="website_id.change_thumbnail_size"
|
|
)
|
|
)
|
|
- thumb_height = fields.Char(string='Thumb height',
|
|
|
|
|
|
+ thumb_height = fields.Char(string='Altura de Miniatura',
|
|
related="website_id.thumb_height"
|
|
related="website_id.thumb_height"
|
|
)
|
|
)
|
|
- thumb_width = fields.Char(string='Thumb width',
|
|
|
|
|
|
+ thumb_width = fields.Char(string='Ancho de Miniatura',
|
|
related="website_id.thumb_width"
|
|
related="website_id.thumb_width"
|
|
)
|
|
)
|
|
|
|
|
|
# For Sort By
|
|
# For Sort By
|
|
- enable_sort_by = fields.Boolean(related="website_id.enable_sort_by", string='Enable product sorting option',
|
|
|
|
|
|
+ enable_sort_by = fields.Boolean(related="website_id.enable_sort_by", string='Habilitar opción de clasificación de productos',
|
|
help='For enabling product sorting feature in website.',
|
|
help='For enabling product sorting feature in website.',
|
|
default=True)
|
|
default=True)
|
|
|
|
|
|
# For first last pager
|
|
# For first last pager
|
|
enable_first_last_pager = fields.Boolean(related='website_id.enable_first_last_pager',
|
|
enable_first_last_pager = fields.Boolean(related='website_id.enable_first_last_pager',
|
|
- string="Enable First and Last Pager", default=True,
|
|
|
|
- help="Enable this checkbox to make 'First' and 'Last' button in pager on website.")
|
|
|
|
|
|
+ string="Habilitar boton Primera y boton Ultima Página", default=True,
|
|
|
|
+ help="Activar este checkbox para el boton 'Primero' y boton'Ultimo' en el sitio web.")
|
|
# Product per grid
|
|
# Product per grid
|
|
product_display_grid = fields.Selection(related='website_id.product_display_grid',
|
|
product_display_grid = fields.Selection(related='website_id.product_display_grid',
|
|
- default='3', string='Product per grid', help="Display no. of products per line in website product grid.")
|
|
|
|
|
|
+ default='3', string='Producto por cuadrícula', help="Muestra el Nro. de productos por línea en el sitio web de la red de productos.")
|