* [IMP] product: Clean product form view * [IMP] website_sale: Remove old availability functionality * [IMP] website_sale: Fix to get attributes details * [IMP] website_sale_stock: Add inventory availability - Warning messages: - Don't show anything - Show inventory - Only show below a Threshold - Show a custom message - Add Default Inventory availability option in website admin under product catalog setting - Show inventory availability message based on variant - Block add to cart if product not available in stock (Block if Show inventory or Only show below a Threshold option is selected) * [IMP] website_sale_options: Prevent user to buy optional product if stock is not available * [FIX] product,website_sale_stock: details - Corrects the display of the image on the product form when selecting a pre-existing image. It was displaying a template and not the pre-existing one. [FIX] website_sale_stock: sale_order Condition was set on linked_line_id which is pointless as we iterate on each line of the order. [FIX] website_sale_stock: fix import Change import to proper form: from . import * [ADD] website_sale_stock: default threshold - Add available_threshold in website_config_setting view. - Fix availability and threshold values to be directly linked to product template instead of website config settings. - Change custom_message to non-required. * [ADD] Website_sale: Install checkbox for wbs_stock -Add checkbox to install website sale stock as 'Inventory' in Website Settings -Change 'Inventory Availability' to 'Inventory' -Add help and tooltip for 'Inventory' * [IMP] website_sale_stock: website product view - Add Unit of measure in the stock information on the product page. - rework get_attribute_value_ids method. * [IMP] website_sale: Stock and Options - bridge module to allow stock and options to interract together - changes on the field names (follow pad), modifications. * [FIX] product: revert on product_views and cleaning Revert changes suggested on the task as it it scheduled on another one for a big clean-up. Clean comments on code. * [IMP] website_sale_stock: website product view +[FIX] sale_stock: dependency - changed strings and views for website and backend product view. - change dependency of 'sale_management' to 'sale' in 'sale_stock'. We don't actually need the sale menu when managing our stock. Sale if sufficient thix way. * [FIX] website_sale_stock: triggers on js and ajax The function inserting the avalability template in the web page was triggered by too much events, this was triggering a problem with the deferred calls. This was raising an error in the website_sale_tour_buy test. Now only change on data-attribute_value_ids will trigger the function. The test should run smoothly. [FIX] website_sale, website_sale_stock: route tour_buy - The improvements on the branch prevent a user to buy a product when there is no stock. Adapted the route test to the new behaviour in order to add_cart/buy/pay a product. --> now buying iPod (16Gb) instead of iPod (32 Gb) - ajax.loadXML was called to often (each trigger of the function) and was making the runbot crash. Only one call of the loadXML right now.
6 lines
147 B
Python
6 lines
147 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import controllers
|
|
from . import models
|