problems :
ERROR: source database "targetDB" is being accessed by other users
DETAIL: There are 6 other sessions using the database.
Solutions
postgres=> REVOKE CONNECT ON DATABASE targetDB FROM public;
REVOKE
postgres=> SELECT pg_terminate_backend(pg_stat_activity.pid)
postgres-> FROM pg_stat_activity
postgres-> WHERE pg_stat_activity.datname = 'targetDB';
pg_terminate_backend
----------------------
t
t
t
t
t
t
(6...
Oct 1, 2019
Sep 9, 2019
SOLVED auth_session_timeout redirection looping issue
Related : https://github.com/OCA/server-tools/issues/1482
@api.model_cr_context
def _auth_timeout_check(self):
"""Perform session timeout validation and expire if needed."""
if not http.request:
return
session = http.request.session
# Calculate...
Aug 14, 2019
odoo add followers when task change followers
just a simple automation
partners_who_are_users = []
users = env['res.users'].search([])
for user in users:
partners_who_are_users.append(user.partner_id.id)
followers = []
for partner in record.project_id.message_follower_ids.ids:
if partner in partners_who_are_users:
followers.append(partner)
followers.append(record.user_id.partner_id.id)
record.project_id.message_subscribe(followers)...
SOLVED odoo 11 Domains no longer working with dynamic dates
regarding to :
https://github.com/odoo/odoo/issues/22956
on V10, we can use :
[["create_date","<",time.strftime('%Y-%m-%d')]]
this is a simple solution,
update base_automation set filter_pre_domain='[["write_date","<=", datetime.datetime.now().replace(microsecond=0).replace(hour=0).replace(minute=0).replace(second=0).isoformat(" ").partition("+")[0] ]]', filter_domain='[["write_date","<=", datetime.datetime.now().replace(microsecond=0).replace(hour=0).replace(minute=0).replace(second=0).isoformat("...
Aug 9, 2019
all about followers odoo
just as your inspiration only.
Automatically add follower to Sales Order if user(s) is a follower of the Contact - Odoo 10
10/18/18, 3:53 AM 1,075 views
How do I automatically add all followers from the partner to any new Sales Order with the same Partner?
So when a sales order is placed it will add all users following the...
Jul 12, 2019
solved odoo redirect loop nginx ssl
This summary is not available. Please
click here to view the pos...
Jul 5, 2019
SOLVED, odoo 11, It is not possible to unreserve more products of than you have in stock
just copy paste from Julia,
i had a similar problem, Odoo send me this fix:
ARM created a fix for this. In order to implement it you need to follow these steps:
1.debug mode
2.technical/server actions
3.create
4.action name: e.g. fix unreserved qty
5.model: ir.actions.server
6.action to do: "execute python code"
7.copy/paste the fix underneath the pre-existing code
8."save"
9."create contextual action"
10.refresh page
11.action/fix...
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...
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...
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">
...
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...
Subscribe to:
Posts (Atom)