Browse Source

[MIG] beesdoo_website_posorder_amount: Adaptation for 12.0

pull/131/head
Cyrille Bollu 5 years ago
parent
commit
0d524f8436
  1. 2
      beesdoo_website_posorder_amount/__manifest__.py
  2. 4
      beesdoo_website_posorder_amount/controllers/main.py
  3. 4
      beesdoo_website_posorder_amount/templates/portal_posorder_amount.xml

2
beesdoo_website_posorder_amount/__manifest__.py

@ -13,6 +13,6 @@
"version": "12.0.1.0.0",
"website": "https://github.com/beescoop/Obeesdoo",
"category": "Website",
"depends": ["website_portal_v10"],
"depends": ["portal", "point_of_sale"],
"data": ["templates/portal_posorder_amount.xml"],
}

4
beesdoo_website_posorder_amount/controllers/main.py

@ -2,11 +2,11 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.website_portal_v10.controllers.main import WebsiteAccount
from odoo.addons.portal.controllers.portal import CustomerPortal
from odoo.http import request
class PortalPosOrderAmount(WebsiteAccount):
class PortalPosOrderAmount(CustomerPortal):
def _prepare_portal_layout_values(self):
values = super(

4
beesdoo_website_posorder_amount/templates/portal_posorder_amount.xml

@ -10,8 +10,8 @@
id="total_pos_order_amount"
name="Portal total POS order amount"
priority="40"
inherit_id="website_portal_v10.portal_layout">
<xpath expr="//div[@class='o_my_details']" position="after">
inherit_id="portal.portal_layout">
<xpath expr="//div[@class='o_portal_my_details']" position="after">
<div class="o_my_details_eater">
<h3 class="page-header">Purchases</h3>
<p>

Loading…
Cancel
Save