Jun 26, 2019

SOLVED MAP odoo "Requests to the server have been blocked by an extension"

check your nginx config...

remove

#add_header X-Frame-Options SAMEORIGIN;
#add_header X-Content-Type-Options nosniff;
#add_header X-XSS-Protection "1; mode=block";

#add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://ssl.google-analytics.com https://assets.zendesk.com https://connect.facebook.net; img-src 'self' https://ssl.google-analytics.com https://s-static.ak.facebook.com https://assets.zendesk.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://assets.zendesk.com; font-src 'self' https://themes.googleusercontent.com; frame-src https://assets.zendesk.com https://www.facebook.com https://s-static.ak.facebook.com https://tautt.zendesk.com; object-src 'none'";
Read more ...

odoo nginx ssl error 499 or 304


Secure Connection Failed

An error occurred during a connection to kolaboratorium.com. SSL received an unexpected New Session Ticket handshake message. Error code: SSL_ERROR_RX_UNEXPECTED_NEW_SESSION_TICKET

    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the website owners to inform them of this problem.

Learn more…

or sometimes showing error
ERR_SSL_PROTOCOL_ERROR

This site can’t provide a secure connection

kolaboratorium.com sent an invalid response.

ERR_SSL_PROTOCOL_ERROR



the solution is : 

proxy_ignore_client_abort on;
ssl_session_tickets on;




Read more ...

Jun 25, 2019

just cleaning dashboard


sudo vim ./web_settings_dashboard/static/src/xml/dashboard.xml

<t t-name="DashboardApps">
        <div class="text-center o_web_settings_dashboard_apps">
            <i class="fa fa-cog fa-4x text-muted o_browse_apps" style="cursor: pointer;"></i>
            <div class="o_web_settings_dashboard_header">
                <t t-set="installed_apps" t-value="widget.data.installed_apps"/>
                <t t-if="installed_apps">
                    <t t-esc="installed_apps"></t>
                    <t t-if="installed_apps == 1">Installed App</t>
                    <t t-if="installed_apps > 1">Installed Apps</t>
                </t>
                <t t-if="! installed_apps">
                    No app installed
                </t>
            </div>
            <div>
                <a class="btn btn-primary btn-block o_browse_apps" role="button"><strong>Browse Apps</strong></a>
            </div>
            <!-- div class="o_web_settings_dashboard_pills">
                <a href="https://www.odoo.com/apps/modules" target="_blank" class="pull-left"><i class="fa fa-rocket fa-2x text-muted"/> App store</a>
                <a href="https://www.odoo.com/apps/themes" target="_blank" class="pull-right"><i class="fa fa-picture-o fa-2x text-muted"/> Theme store</a>
            </div -->
            <div class="clearfix"/>
        </div>
    </t>



kedua 

 <t t-name="DashboardPlanner">
        <div class="text-center o_web_settings_dashboard_planner">
            <i class="fa fa-check-square-o fa-4x text-muted"></i>
            <div class="o_web_settings_dashboard_header">
                <span class="o_web_settings_dashboard_planner_overall_progress"><t t-esc="widget.overall_progress"></t></span>%
                Implementation
            </div>
            <div>
                <small class="text-muted text-center o_web_settings_dashboard_compact_subtitle">
                    Follow these implementation guides to get the most.
                </small>
            </div>
            <hr/>
            <t t-set="planners" t-value="widget.planners"/>
            <t t-call="DashboardPlanner.PlannersList"/>
            <hr/>
            <!-- 
            Need more help? <a target="_blank" href="https://www.odoo.com/documentation/user">Browse the documentation.</a>
            -->
        </div>
    </t>


Ketiga

    <t t-name="DashboardShare">
        <div class="text-center o_web_settings_dashboard_share">
            <i class="fa fa-share-alt fa-4x text-muted"/>
            <div class="o_web_settings_dashboard_header">Share the Love</div>
            <div>
                <small class="text-muted text-center o_web_settings_dashboard_compact_subtitle">
                    Help us spread the word: Share App's awesomeness with your friends!
                </small>
            </div>
            <div class="row mt16">
                <div class="col-xs-4"><a href="#"><i class="fa fa-twitter-square fa-4x tw_share"/></a></div>
                <div class="col-xs-4"><a href="#"><i class="fa fa-facebook-square fa-4x fb_share"/></a></div>
                <div class="col-xs-4"><a href="#"><i class="fa fa-linkedin-square fa-4x li_share"/></a></div>
            </div>
            <hr/>
            <t t-set="server_version" t-value="widget.data.server_version"/>
            <t t-set="debug" t-value="widget.data.debug"/>
            <!-- div class="row">
                <div class="text-center">
                    <div class="user-heading">
                        <h3>
                            Odoo <t t-esc="server_version"/>
                            (Community Edition)
                        </h3>
                    </div>
                    <div>
                        <div class="tab-content">
                            <div id="settings" class="tab-pane active text-muted text-center o_web_settings_dashboard_compact_subtitle">
                                <small>Copyright © 2004-2016 <a target="_blank" href="https://www.odoo.com" style="text-decoration: underline;">Odoo S.A.</a> <a target="_blank" href="http://www.gnu.org/licenses/lgpl.html" style="text-decoration: underline;">GNU LGPL Licensed</a></small>
                            </div>
                        </div>
                    </div>
                </div>
            </div -->
            <hr/>
            <div class="row">
                <div class="col-md-12">
                    <a t-if="debug != true" class="oe_activate_debug_mode pull-right" href="?debug" >Activate the developer mode</a>
                    <br t-if="debug != true"/>
                    <a t-if="debug != 'assets'" class="oe_activate_debug_mode pull-right" href="?debug=assets" >Activate the developer mode (with assets)</a>
                    <br t-if="debug != 'assets'"/>
                    <a t-if="debug != false" class="oe_activate_debug_mode pull-right" href="/web" >Deactivate the developer mode</a>
                </div>
            </div>
        </div>
    </t>

ke empat

  <t t-name="DashboardEnterprise">
        <hr class="mt16"/>
        <!-- div class="text-center o_web_settings_dashboard_enterprise">
            <div class="text-center o_web_settings_dashboard_enterprise">
                <div class="text-center o_web_settings_dashboard_header">Odoo Enterprise</div>
                <div class="mb16"><a href="http://www.odoo.com/editions" target="_blank">Get more features with the Enterprise Edition!</a></div>
                <div><img class="img img-responsive" t-att-src='_s + "/web/static/src/img/enterprise_upgrade.jpg"'/></div>
                <div>
                    <a class="btn btn-primary btn-block o_confirm_upgrade" role="button"><strong>Upgrade Now</strong></a>
                </div>
            </div>
        </div -->
    </t>

vim ./addons/mail/static/src/js/client_action.js

see  :
_onRequestNotificationPermission: function (event)

then
sudo vim ./addons/mail/static/src/xml/client_action.xml

see : <span class="o_mail_request_permission">

untuk dialog box title dlsb ada di sini

sudo vim addons/web/static/src/js/services/crash_manager.js
dan sudo vim addons/web/static/src/js/core/dialog.js
Read more ...

aerolib aero report and openoffice odoo 11


INSTALL AEROOLIB

cd ~
wget https://launchpad.net/aeroolib/trunk/1.0.0/+download/aeroolib.tar.gz
tar xfvz aeroolib.tar.gz 
cd aeroolib
sudo python setup.py install

*https://github.com/Numigi/aeroo_reports 

INSTALL OPENOFFICE

sudo add-apt-repository ppa:libreoffice/ppa

apt-get install libreoffice libreoffice-writer 
OR
sudo apt-get install openoffice.org-headless openoffice.org-writer openoffice.org-draw
sudo nano /etc/init.d/openoffice.sh
Paste the following code into that file:

#!/bin/bash
# openoffice.org headless server script
#
# chkconfig: 2345 80 30
# description: headless openoffice server script
# processname: openoffice
#
# Author: Vic Vijayakumar
# Modified by Federico Ch. Tomasczik
#
OOo_HOME=/usr/bin
SOFFICE_PATH=$OOo_HOME/soffice
PIDFILE=/var/run/openoffice-server.pid

set -e

case "$1" in
start)
if [ -f $PIDFILE ]; then
echo "OpenOffice headless server has already started."
sleep 5
exit
fi
echo "Starting OpenOffice headless server"
$SOFFICE_PATH -headless -nologo -nofirststartwizard -accept="socket,host=127.0.0.1,port=8100;urp" & > /dev/null 2>&1
touch $PIDFILE
;;
stop)
if [ -f $PIDFILE ]; then
echo "Stopping OpenOffice headless server."
killall -9 soffice && killall -9 soffice.bin
rm -f $PIDFILE
exit
fi
echo "Openoffice headless server is not running."
exit
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0

 Exit the nano text editor saving the file as you do. 

Now make the script executable:

sudo chmod 0755 /etc/init.d/openoffice.sh
Make it start automatically on reboot by executing this command:

sudo update-rc.d openoffice.sh defaults
Now start the service by running

sudo /etc/init.d/openoffice.sh start

INSTALL AEROREPORT

sudo apt-get install python-setuptools

sudo apt-get install python-genshi python-cairo python-lxml -y

sudo apt-get install libreoffice-script-provider-python -y

sudo mkdir /opt/aeroo

cd /opt/aeroo

git clone https://github.com/aeroo/aeroolib.git

cd /opt/aeroo/aeroolib

sudo python3 setup.py install

wget git clone https://github.com/aeroo/currency2text.git

cd /opt/aeroo/currency2text

sudo python3 setup.py install

sudo apt-get install python3-pip

sudo pip3 install jsonrpc2 daemonize

cd /opt/aeroo

sudo git clone https://github.com/aeroo/aeroo_docs.git

sudo python3 /opt/aeroo/aeroo_docs/aeroo-docs start -c /etc/aeroo-docs.conf

sudo cp /opt/aeroo/aeroo_docs/aeroo-docs /etc/init.d/aeroo-docs

sudo update-rc.d aeroo-docs defaults

sudo service aeroo-docs start



sudo chmod 0755 /etc/init.d/openoffice.sh
sudo chmod 0755 /etc/init.d/aeroo-docs 

TESTING

goto  setting, technical, Aerodoc connection, test connect

taraaaa.....





refs : 
*http://weltbilder.forumnews.com/cBUZZ.IO/aeroo_reports/src/branch/master?lang=zh-CN 
*https://serpentcs.com/serpentcs-setup-aeroo-report-engine-for-openerp-272
*http://www.hitechnologia.com/forum/odoo-forum-1/question/odoo-openerp-how-to-setup-install-configure-aeroo-reports-in-odoo-openerp-v8-148 



Read more ...

Jun 15, 2019

odoo chat without refresh

its just reminder about the chat on odoo use 8072

first please check port services by netstat, if still none, just do as this reference

Longpolling

 Longpolling is a way to deliver instant notification to web client (e.g. in chats).

 To activate longpolling:

 install dependencies

 odoo 11.0

 python -c "import gevent" || sudo pip3 install gevent

odoo 10.0

 python -c "import gevent" || sudo pip install gevent
 python -c "import psycogreen" || sudo pip install psycogreen
 set non-zero value for workers parameter
 configure nginx

 location /longpolling {
     proxy_pass http://127.0.0.1:8072;
 }
 location / {
     proxy_pass http://127.0.0.1:8069;
 }



refs : https://odoo-development.readthedocs.io/en/latest/admin/longpolling.html

Read more ...