| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
from odoo import fields, models |
| 5 |
|
| 6 |
|
| 7 |
class Website(models.Model): |
| 8 |
_inherit = 'website' |
| 9 |
|
| 10 |
wishlist_opt_products_design_classes = fields.Char( |
| 11 |
string="Wishlist Page Design Class", |
| 12 |
default=( |
| 13 |
'o_wsale_products_opt_layout_catalog o_wsale_products_opt_design_thumbs ' |
| 14 |
'o_wsale_products_opt_name_color_regular ' |
| 15 |
'o_wsale_products_opt_thumb_cover o_wsale_products_opt_img_secondary_show ' |
| 16 |
'o_wsale_products_opt_img_hover_zoom_out_light o_wsale_products_opt_has_cta ' |
| 17 |
'o_wsale_products_opt_actions_inline o_wsale_products_opt_has_description ' |
| 18 |
'o_wsale_products_opt_actions_promote o_wsale_products_opt_cc1 ' |
| 19 |
), |
| 20 |
help="CSS class for wishlist page design" |
| 21 |
) |
| 22 |
|
| 23 |
wishlist_grid_columns = fields.Integer( |
| 24 |
string="Wishlist Grid Columns", |
| 25 |
default=5, |
| 26 |
help="Number of columns to display on the wishlist page" |
| 27 |
) |
| 28 |
|
| 29 |
wishlist_mobile_columns = fields.Integer( |
| 30 |
string="Wishlist Mobile Columns", |
| 31 |
default=2, |
| 32 |
help="Number of columns to display on mobile for the wishlist page (1 or 2)" |
| 33 |
) |
| 34 |
|
| 35 |
wishlist_gap = fields.Char( |
| 36 |
string="Wishlist Grid Gap", |
| 37 |
default="16px", |
| 38 |
help="Gap between products on the wishlist page" |
| 39 |
) |