[MIG] website_search_products: Migration to 16.0
This commit is contained in:
parent
8fb784bdc3
commit
9846c183ec
5 changed files with 23 additions and 23 deletions
|
|
@ -10,12 +10,15 @@
|
||||||
'author': 'Criptomart',
|
'author': 'Criptomart',
|
||||||
'website': 'https://criptomart.net',
|
'website': 'https://criptomart.net',
|
||||||
'depends': [
|
'depends': [
|
||||||
|
"point_of_sale"
|
||||||
],
|
],
|
||||||
'data': [
|
'data': [
|
||||||
],
|
],
|
||||||
'qweb': [
|
'assets': {
|
||||||
'static/src/xml/pos.xml',
|
'point_of_sale.assets': [
|
||||||
|
'pos_ticket_pricelist/static/src/xml/pos.xml'
|
||||||
],
|
],
|
||||||
|
},
|
||||||
'demo': [
|
'demo': [
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,20 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<templates id="template" xml:space="preserve">
|
<templates id="template" xml:space="preserve">
|
||||||
<t t-extend="PosTicket">
|
|
||||||
<t t-jquery="table.receipt-orderlines" t-operation="before">
|
<t
|
||||||
<t t-if="order.get_client()">
|
t-name="OrderReceipt"
|
||||||
<t t-if="order.get_client().property_product_pricelist">
|
t-inherit="point_of_sale.OrderReceipt"
|
||||||
<t t-esc="order.get_client().property_product_pricelist[1]" /><br />
|
t-inherit-mode="extension"
|
||||||
</t>
|
owl="1"
|
||||||
<br /><br />
|
>
|
||||||
</t>
|
<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 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>
|
</templates>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
'name': 'Website Search Products',
|
'name': 'Website Search Products',
|
||||||
'description': """
|
'description': """
|
||||||
Allows portal users to search products in a table with filters.""",
|
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',
|
'license': 'AGPL-3',
|
||||||
'author': 'Criptomart',
|
'author': 'Criptomart',
|
||||||
'website': 'https://criptomart.net',
|
'website': 'https://criptomart.net',
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from odoo import http
|
from odoo import http
|
||||||
from odoo.http import request
|
from odoo.http import request
|
||||||
from odoo.addons.website.controllers.main import Website
|
from odoo.addons.website.controllers.main import Website
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ _logger = logging.getLogger(__name__)
|
||||||
class StockMove(models.Model):
|
class StockMove(models.Model):
|
||||||
_inherit = 'stock.move'
|
_inherit = 'stock.move'
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def get_stock_moves_by_product(self, date_begin, date_end, location):
|
def get_stock_moves_by_product(self, date_begin, date_end, location):
|
||||||
|
|
||||||
if date_begin and date_end:
|
if date_begin and date_end:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue