Web Slick Widget

by
Odoo
v 9.0 Third Party 174
Download for v 9.0
Availability
Odoo Online
Odoo.sh
On Premise
Technical Name web_widget_slick
LicenseAGPL-3
Websitehttps://laslabs.com/
You bought this module and need support? Click here!

Odoo Slick Widget

This module provides a Slick Carousel widget for use in Odoo.

Usage

Default usage is on a One2many attachment field, as defined below:

class SlickExample(models.Model):
    _name = 'slick.example'
    _description = 'Slick Example Model'
    image_ids = fields.One2many(
        name='Images',
        comodel_name='ir.attachment',
        inverse_name='res_id',
    )

Assuming the above model, you would use add a Slick Carousel on the image_ids column by using the following field definition in the model's form view:

<field name="image_ids" widget="one2many_slick_images" options="{}"/>

Example implementation - https://repo.laslabs.com/projects/ODOO/repos/web/browse/web_widget_slick_example

Options

The widget passes options directly through to Slick, so any setting available to Slick is available to the widget. Additional options specific to Odoo are:

Name Type Default Description
fieldName String datas Field to lookup on relation table. Defaults to datas, which is the data field used in ir.attachment table. This would be used to define a custom attachment model
modelName String ir.attachment Model of attachment relation. This would be used to define a custom attachment model instead of default ir.attachment

Credits

Images

  • LasLabs: Icon.

Contributors

Maintainer

LasLabs Inc.

This module is maintained by LasLabs Inc.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.