- Introduced a new product details layout in `product_details_page.xml` with styled elements and hidden original Odoo components for a premium look. - Enhanced the product form view in `product_views.xml` to include a new field for marking popular deals. - Updated the configuration settings view in `res_config_settings_views.xml` to add a delivery option toggle during checkout. - Reorganized the shop page layout in `shop_page.xml` to include dynamic categories and attributes, along with a new arrivals section. - Created a new snippets file `snippets.xml` for potential future custom drag-and-drop blocks. - Added a script in `parse_content.py` for parsing specific content from a markdown file.
12 lines
316 B
Python
12 lines
316 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import models, fields
|
|
|
|
class ProductTemplate(models.Model):
|
|
_inherit = 'product.template'
|
|
|
|
is_popular_deal = fields.Boolean(
|
|
string='Is Popular Deal',
|
|
default=False,
|
|
help='Check this to show this product in Popular Deals section on Homepage'
|
|
)
|