Browse files

[FIX] point_of_sale: create separate asset backend view

Create an asset for pos where the mail services are disabled

When mail_service is started, if there are any chat sessions running, a
chat_windows is created and opened.

Before this commit, chat windows were displayed in point_of_sale frontend

  • Loading branch information...
msh-odoo authored and mart-e committed Dec 5, 2018
1 parent f75fa0b commit e457b842f2e5984551a8e75c7df88d61f4ffc60f
Showing with 6 additions and 1 deletion.
  1. +6 −1 addons/point_of_sale/views/pos_templates.xml
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<template id="pos_assets_backend" name="POS UI Backend Assets" inherit_id="web.assets_backend" primary="True">
<xpath expr="//script[contains(@src, '/mail/static/src/js/services/mail_service.js')]" position="replace"></xpath>
<xpath expr="//script[contains(@src, '/mail_bot/static/src/js/mailbot_service.js')]" position="replace"></xpath>

<template id="index" name="POS Index">&lt;!DOCTYPE html&gt;
@@ -31,7 +36,7 @@

<t t-call-assets="web.assets_common" t-css="false"/>
<t t-call-assets="web.assets_backend" t-css="false"/>
<t t-call-assets="point_of_sale.pos_assets_backend" t-css="false"/>
<t t-call-assets="web_editor.summernote" t-css="false"/>
<t t-call-assets="web_editor.assets_editor" t-css="false"/>
<t t-call-assets="point_of_sale.assets"/>

0 comments on commit e457b84

Please sign in to comment.