From 9846c183ec76d7421cedc29d5efc2b44759ecf1c Mon Sep 17 00:00:00 2001 From: luis Date: Thu, 11 Jan 2024 10:42:00 +0100 Subject: [PATCH] [MIG] website_search_products: Migration to 16.0 --- pos_ticket_pricelist/__manifest__.py | 9 ++++-- pos_ticket_pricelist/static/src/xml/pos.xml | 31 +++++++++---------- website_search_products/__manifest__.py | 2 +- .../controllers/controller.py | 3 +- website_search_products/models/stock_move.py | 1 - 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/pos_ticket_pricelist/__manifest__.py b/pos_ticket_pricelist/__manifest__.py index 73c962f..3c64ab3 100644 --- a/pos_ticket_pricelist/__manifest__.py +++ b/pos_ticket_pricelist/__manifest__.py @@ -10,12 +10,15 @@ 'author': 'Criptomart', 'website': 'https://criptomart.net', 'depends': [ + "point_of_sale" ], 'data': [ ], - 'qweb': [ - 'static/src/xml/pos.xml', - ], + 'assets': { + 'point_of_sale.assets': [ + 'pos_ticket_pricelist/static/src/xml/pos.xml' + ], + }, 'demo': [ ], } diff --git a/pos_ticket_pricelist/static/src/xml/pos.xml b/pos_ticket_pricelist/static/src/xml/pos.xml index 4aa5aee..ff511c6 100644 --- a/pos_ticket_pricelist/static/src/xml/pos.xml +++ b/pos_ticket_pricelist/static/src/xml/pos.xml @@ -1,21 +1,20 @@ - - - - -
-
-

+ + + + +
-
-
- - - - -
-
-
+ + + {'oe_hidden': True} +
+
diff --git a/website_search_products/__manifest__.py b/website_search_products/__manifest__.py index 9f95ae0..dc4a66d 100644 --- a/website_search_products/__manifest__.py +++ b/website_search_products/__manifest__.py @@ -5,7 +5,7 @@ 'name': 'Website Search Products', 'description': """ Allows portal users to search products in a table with filters.""", - 'version': '12.0.1.0.0', + 'version': "16.0.1.0.0", 'license': 'AGPL-3', 'author': 'Criptomart', 'website': 'https://criptomart.net', diff --git a/website_search_products/controllers/controller.py b/website_search_products/controllers/controller.py index 463cb5e..62d49f1 100644 --- a/website_search_products/controllers/controller.py +++ b/website_search_products/controllers/controller.py @@ -1,5 +1,4 @@ - # -*- coding: utf-8 -*- -from odoo import http + from odoo import http from odoo.http import request from odoo.addons.website.controllers.main import Website diff --git a/website_search_products/models/stock_move.py b/website_search_products/models/stock_move.py index 81f9b07..892f915 100644 --- a/website_search_products/models/stock_move.py +++ b/website_search_products/models/stock_move.py @@ -10,7 +10,6 @@ _logger = logging.getLogger(__name__) class StockMove(models.Model): _inherit = 'stock.move' - @api.multi def get_stock_moves_by_product(self, date_begin, date_end, location): if date_begin and date_end: