- 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
311 B
Python
12 lines
311 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import models, fields
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
_inherit = 'res.config.settings'
|
|
|
|
enable_delivery_option = fields.Boolean(
|
|
related='website_id.enable_delivery_option',
|
|
readonly=False,
|
|
string='Enable Delivery Option'
|
|
)
|