[MIG] website_search_products: Migration to 16.0

This commit is contained in:
Luis 2024-01-11 10:42:00 +01:00
parent 8fb784bdc3
commit 9846c183ec
5 changed files with 23 additions and 23 deletions

View file

@ -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': [
],
}

View file

@ -1,21 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-extend="PosTicket">
<t t-jquery="table.receipt-orderlines" t-operation="before">
<t t-if="order.get_client()">
<t t-if="order.get_client().property_product_pricelist">
<t t-esc="order.get_client().property_product_pricelist[1]" /><br />
</t>
<br /><br />
<t
t-name="OrderReceipt"
t-inherit="point_of_sale.OrderReceipt"
t-inherit-mode="extension"
owl="1"
>
<xpath expr='//t[@t-if="receipt.cashier"]' position="after">
<t t-if="props.order.pricelist">
<t t-esc="props.order.pricelist.name" /><br />
</t>
</t>
</xpath>
<xpath expr='//t[@t-if="receipt.company.website"]' position="attributes">
<attribute name="t-att-class">{'oe_hidden': True}</attribute>
</xpath>
</t>
<t t-extend="XmlReceipt">
<t t-jquery="[t-if='receipt.header_xml']" t-operation="after">
<t t-if="order.get_client()">
<t t-esc="order.get_client().property_product_pricelist[1] ? order.get_client().property_product_pricelist[1] : ''"/><br />
</t>
</t>
</t>
</templates>

View file

@ -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',

View file

@ -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

View file

@ -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: