Giter Site home page Giter Site logo

tko-addons's Introduction

tko-addons

tko-addons's People

Contributors

cmsalmeida avatar yk2kus avatar zimbora69 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tko-addons's Issues

[8.0] tko_web_sessions_management README - apt-get install libgeoip-dev

@cmsalmeida ,

In Ubuntu 14.04 i've noticed that libgeoip-dev is required in order to successfully pip install GeoIP. I'd like to recommend putting it in the README file.

On another note, are there any plans to extend this module with features like auto-selecting the customer's shipping country, or language based on their IP/Country?

For auto-selecting a shipping country, I think this would be a really useful feature to add. If there are no plans i'll look into building one myself.

Also, just a quick question, how can I get the module to show the user's country as shown in the screenshot here?:

https://cloud.githubusercontent.com/assets/13301885/10918553/3b014d4a-825e-11e5-844b-b49c1d66da3d.png

I'd love to be able to check the not-logged in user's country from my own custom modules, specifically to handle language selection and shipping country among other things.

Thanks again for building such a useful module!

Incompatible with current Odoo V10

Installed it on V10 community and after timeout nothing happens. The log shows:
WARNING ..... odoo.http: returns an invalid response type for an http request

Sign up and Reset Password lost

When install "tko_web_sessions_management" ,Web front "Sign up" and " Reset Password " lost !
11111

When uninstall "tko_web_sessions_management" , Web front "Sign up" and " Reset Password " show .
2222

please help me.

Error messages from chrome Console:
Server application error {"message":"Odoo Session Expired","code":100,"data":{"debug":"Traceback (most recent call last):\n File "/Users/hezhujin/Documents/odoo_apps1/Trunk/odoo/http.py", line 638, in _handle_exception\n return super(JsonRequest, self)._handle_exception(exception)\n File "/Users/hezhujin/Documents/odoo_apps1/Trunk/odoo/addons/base/ir/ir_http.py", line 184, in _dispatch\n auth_method = cls._authenticate(func.routing["auth"])\n File "/Users/hezhujin/Documents/odoo_apps1/Trunk/odoo/addons/base/ir/ir_http.py", line 112, in _authenticate\n getattr(cls, "auth_method%s" % auth_method)()\n File "/Users/hezhujin/Documents/odoo_apps1/Trunk/odoo/addons/base/ir/ir_http.py", line 85, in _auth_method_user\n raise http.SessionExpiredException("Session expired")\nSessionExpiredException: Session expired\n","exception_type":"internal_error","message":"Session expired","name":"odoo.http.SessionExpiredException","arguments":["Session expired"]}}

Logín problem after a login error

Hello,

I have detected a bug. It's complicated that the user replicate it.

Login with one user with blocked multiple sessions in one navigator. Go to other navigator and login again with the same user, it show the error that can't login, don't refresh this login screen with the error message.

Close the first session. Try to login again in the navigator with the login screen with error, the error login message disappear but it return to the standard login page. Checking the session it appear like logged but this user only see the login screen. If you try to login again it show login error message.

I try to find the problem, but I don't find it.

Greetings,
Ignacio Ibeas - Acysos

Proper documentation of tutorial

I was trying to install this module to read pdf files. However, I could not find where is the option to upload pdf and compare it for the accuracy.

Error in install on odoo V10 Enterprise

Hello,

When i want to import this module on odoo Enterprise V10, i've this error :

Error while importing module 'tko_web_sessions_management': u"Impossible de charger le module tko_web_sessions_management \xe9chec : fichier /tmp/tmpyc0sbe/tko_web_sessions_management/security/ir.model.access.csv :\nAucun enregistrement trouv\xe9 pour id externe 'model_ir_sessions' dans le champ 'Object'\nERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne \xab model_id \xbb\nD\xc9TAIL : La ligne en \xe9chec contient (754, null, t, access_ir_sessions, 1, 1, t, 2017-09-29 13:38:53.794477, f, t, 2017-09-29 13:38:53.794477, t, null)\n\nAucun enregistrement trouv\xe9 pour id externe 'model_ir_sessions' dans le champ 'Object'\nERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne \xab model_id \xbb\nD\xc9TAIL : La ligne en \xe9chec contient (757, null, t, access_ir_sessions_erp_manager, 1, 1, t, 2017-09-29 13:38:53.794477, t, t, 2017-09-29 13:38:53.794477, t, 2)\n"

Some help will be great

Regards

about session manager some error

My odoo version is 10, using this module, when installed, there will be error messages:

File "/opt/odoo/odoo/sql_db.py", line 218, in execute
res = self._obj.execute(query, params)
ProgrammingError: operator does not exist: integer = boolean
LINE 6: AND gu.uid = false
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
2017-05-27 06:46:52,574 1181 WARNING cvk odoo.sql_db: Cursor not closed explicitly
Please enable sql debugging to trace the caller.

and Log has a lot of wrong information
2017-05-27 07:54:23,419 10851 WARNING cvk odoo.sql_db: Cursor not closed explicitly
Please enable sql debugging to trace the caller.

and menu xml is not normal

Session Timeout be next to Login Calendar

Doesn't Work with Cloud server (Users Session Management Module )

Hello ,

I've installed on my local machine and it was working well , but after i installed it on my cloud server it seems like session is running but the session time out function or manually close the session didn't work .
i'm using DNS , SSL Certificate and Apache to redirect http to https.

Thanks on advance .

tko_web_sessions_management and web_login problem ??

Hello,

I've installed the sessions management module and it seems breaking another module like web_login !!

The background picture disappeared, the database manager can't be disabled, ...

Is it a known problem due to an imcompatible issue ??

Thanks for your help.

login failed after install

Good evening I detected a failure when you install (either in a working instance o a new one)
The trace says a free leaked connection and after tat you can not load the db.
(I updated yesterday) I had this issued (I did install GeoIP) following http://thelinuxfaq.com/360-how-to-install-and-use-geoip-on-fedora-centos-ubuntu

I rolled back to use the version that used to work.
I would say from this point may be related with some bug on the app.
Hope you have some time to fix this awesome app. If you need further testing drop me a line.
Best regards Humberto @ mexico

the trace:
016-08-22 14:47:51,439 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:51] "GET /web/login HTTP/1.1" 200 -
2016-08-22 14:47:51,688 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:51] "GET /im_livechat/loader/DHARMAUTIL/1 HTTP/1.1" 200 -
2016-08-22 14:47:51,944 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:51] "POST /web/proxy/load HTTP/1.1" 200 -
2016-08-22 14:47:51,947 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:51] "POST /web/proxy/load HTTP/1.1" 200 -
2016-08-22 14:47:52,229 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:52] "POST /im_livechat/available HTTP/1.1" 200 -
2016-08-22 14:47:55,705 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:55] "GET /web/login HTTP/1.1" 200 -
2016-08-22 14:47:55,877 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:55] "GET /web/login HTTP/1.1" 200 -
2016-08-22 14:47:56,402 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:56] "GET /im_livechat/loader/DHARMAUTIL/1 HTTP/1.1" 200 -
2016-08-22 14:48:03,725 1204 ERROR DHARMAUTIL openerp.addons.website.models.ir_http: 500 Internal Server Error:

Traceback (most recent call last):
File "/opt/odoo/odoo-server/addons/website/models/ir_http.py", line 199, in _handle_exception
response = super(ir_http, self)._handle_exception(exception)
File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_http.py", line 145, in _handle_exception
return request._handle_exception(exception)
File "/opt/odoo/odoo-server/openerp/http.py", line 673, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_http.py", line 171, in _dispatch
result = request.dispatch()
File "/opt/odoo/odoo-server/openerp/http.py", line 691, in dispatch
r = self._call_function(*_self.params)
File "/opt/odoo/odoo-server/openerp/http.py", line 317, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/service/model.py", line 118, in wrapper
return f(dbname, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/http.py", line 314, in checked_call
return self.endpoint(_a, *_kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 810, in call
return self.method(_args, *_kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 410, in response_wrap
response = f(_args, *_kw)
File "/opt/odoo/odoo-server/addons/auth_oauth/controllers/main.py", line 93, in web_login
response = super(OAuthLogin, self).web_login(_args, *_kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 410, in response_wrap
response = f(_args, *_kw)
File "/opt/odoo/odoo-server/addons/auth_signup/controllers/main.py", line 38, in web_login
response = super(AuthSignupHome, self).web_login(_args, *_kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 410, in response_wrap
response = f(_args, *_kw)
File "/opt/odoo/custom/addons/tko_web_sessions_management/main.py", line 154, in web_login
context=request.context)
File "/opt/odoo/custom/addons/tko_web_sessions_management/main.py", line 189, in save_session
if request.httprequest.headers.environ['HTTP_X_FORWARDED_FOR']:
KeyError: 'HTTP_X_FORWARDED_FOR'

2016-08-22 14:48:03,816 1204 WARNING DHARMAUTIL openerp.sql_db: Cursor not closed explicitly
Please enable sql debugging to trace the caller.
2016-08-22 14:48:03,820 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:48:03] "POST /web/login HTTP/1.1" 500 -
2016-08-22 14:48:11,391 1204 WARNING DHARMAUTIL openerp.sql_db: ConnectionPool(used=1/count=5/max=64): Free leaked connection to 'user=odoo dbname=DHARMAUTIL'

Programming error: relation "account_invoice_report" does not exist after

After making an update from module "tko_account_contract_report_template" in 'version': '0.046', to 'version': '0.050', on a server in version 8.0 commit 545cb3907a99b979a0d3428d3ad8edee1ccdecc5

Leads, contacts, Sales Team... are not accesible at all without an error on screen :

ProgrammingError: relation "account_invoice_report" does not exist <<<<

and this below error in logs :
Logs : --//
2015-09-07 19:50:10,661 2392 ERROR PROD openerp.sql_db: Programming error: relation "account_invoice_report" does not exist
LINE 11: FROM account_invoice_report account_...
^
, in query WITH currency_rate (currency_id, rate, date_start, date_end) AS (
SELECT r.currency_id, r.rate, r.name AS date_start,
(SELECT name FROM res_currency_rate r2
WHERE r2.name > r.name AND
r2.currency_id = r.currency_id
ORDER BY r2.name ASC
LIMIT 1) AS date_end
FROM res_currency_rate r
)
SELECT SUM(price_total * cr.rate) as total
FROM account_invoice_report account_invoice_report, currency_rate cr
WHERE (("account_invoice_report"."partner_id" in (%s,%s)) AND (("account_invoice_report"."state" not in (%s,%s)) OR "account_invoice_report"."state" IS NULL))
AND cr.currency_id = %s
AND (COALESCE(account_invoice_report.date, NOW()) >= cr.date_start)
AND (COALESCE(account_invoice_report.date, NOW()) < cr.date_end OR cr.date_end IS NULL)
//...

Thanks for your help..

/web/session/authenticate not supported

Context:

odoorpc and other external tools that use json+rpc, use web/session/authenticate to create new sessions . This is useful for accessing custom web controllers with authentications.

This module currently overwrite the web_login method to register the new sessions in the ir.sessions model using the save_sessions method.

Problem:

Those sessions are the only ones allowed in further requests. That excludes additional requests from the sessions initiated via web/session/authenticate.

Desired result:

Register ir.sessions also for the sessions opened via web/session/authenticate, allowing this alternate authentication method for rpc tools, devices, etc that currently use it.

Proposed solution:

The web_login module currently makes a call to request.session.authenticate the same way that the default web controller for that method.

That code can be factorized to a method authenticate and bound to the route web/session/authenticate. The web_login method can then call the new method in that point.

Problem with IP Request with apache proxy

Hello,

I have detected other problem. When you use Apache Proxy, always return 127.0.0.1. I have solved with this code.

ip = request.httprequest.headers.environ['REMOTE_ADDR'] if ip == '127.0.0.1' or ip == 'localhost': ip = load(urlopen('https://api.ipify.org/?format=json'))['ip']

if geo_ip_resolver: ip_location = (str(geo_ip_resolver.country_name_by_addr( ip)) or "")

I know that is because I use a proxy, do you want that I send a PR with this change?

Greetings

tko_web_sessions_management - 500: Internal Server Error

Error issued after installing module and then re-start odoo service, steps followed:

1- Initiate server
2- Access Odoo host with Admin user.
3- Enable the Developer Mode.
4- Install the tko_web_sessions_management and try to setup module by defining the policy on Employees' group,
5- Try to test different settings: 1 Hour limit session, No multiple login, etc....
6- Restart Odoo service.
7- Try again to test the module, but could not access to http://localhost, this is what Linux log show up:

odoo.addons.website.models.ir_http: 500 Internal Server Error:

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/odoo/addons/website/models/ir_http.py", line 273, in _handle_exception
response = super(Http, cls)._handle_exception(exception)
File "/usr/lib/python2.7/site-packages/odoo/addons/base/ir/ir_http.py", line 169, in _handle_exception
return request._handle_exception(exception)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 766, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/site-packages/odoo/addons/base/ir/ir_http.py", line 195, in _dispatch
result = request.dispatch()
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 825, in dispatch
r = self._call_function(**self.params)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 331, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/odoo/service/model.py", line 119, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 324, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 933, in call
return self.method(*args, **kw)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 504, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/site-packages/odoo/addons/website/controllers/main.py", line 84, in web_login
if not redirect and request.params['login_success']:
KeyError: 'login_success'

Key Facts:

  • Find that tko_web_sessions_management failed with No multiple login.
  • After re-starting the Odoo service can not access to
    http://localhost/web/login, with message 500: Internal Server Error
  • There is not feature on company form to setup Odoo Company wise settings for tko_web_sessions_management, it exists only for user's Groups.

Thanks for sharing your module, it is great!!.

About Correction of landing prompt information

After installing session manager v10, all the login errors are prompted :Login failed due to one of the following reasons:
'- Wrong login/password'
'- User not allowed to have multiple logins'
'- User not allowed to login at this specific time or day'
Can not distinguish the reasons for the error is which one

Session timeout hint for module session manager

Odoo10 installs this module, when the session timeout does not prompt the session timeout, it prompts a string of English errors, and then goes to the login interface, suggesting that the session timeout has a normal timeout reminder

NameError: global name 'email' is not defined

Hello, how i can fix this issue ?


2017-05-23 09:46:46,383 548 ERROR XXXXX odoo.addons.mail.models.mail_mail: failed sending mail (id: 642) due to global name 'email' is not defined
Traceback (most recent call last):
  File "/odoo/odoo-server/addons/mail/models/mail_mail.py", line 277, in send
    res = IrMailServer.send_email(msg, mail_server_id=mail.mail_server_id.id)
  File "/odoo/custom/addons/tko_mail_smtp_per_user/models/mail_mail.py", line 26, in send_email
    from_rfc2822 = extract_rfc2822_addresses(message['From'])[-1]
`NameError: global name 'email' is not defined`

tko_web_sessions_management expired session

Enhance a better, user friendly message on expired session event.
Instead showing a raised message, redirect user to login page with hash.
Enhancements for version 8.0, 9.0 and 10.0.

Error in install session manager on odoo V10 Community

Hello,
Thank you for providing such a good application, but I encountered a problem, users often encounter this error when landing:
odoo.addons.website.models.ir_http: 500 Internal Server Error:

Traceback (most recent call last):
File "/opt/odoo/addons/website/models/ir_http.py", line 273, in _handle_exception
response = super(Http, cls)._handle_exception(exception)
File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 169, in _handle_exception
return request._handle_exception(exception)
File "/opt/odoo/odoo/http.py", line 768, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 195, in _dispatch
result = request.dispatch()
File "/opt/odoo/odoo/http.py", line 827, in dispatch
r = self._call_function(**self.params)
File "/opt/odoo/odoo/http.py", line 333, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/http.py", line 326, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/http.py", line 935, in call
return self.method(*args, **kw)
File "/opt/odoo/odoo/http.py", line 506, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/auth_signup/controllers/main.py", line 18, in web_login
response = super(AuthSignupHome, self).web_login(*args, **kw)
File "/opt/odoo/odoo/http.py", line 506, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/website/controllers/main.py", line 84, in web_login
if not redirect and request.params['login_success']:
KeyError: 'login_success'

What's the solution ?

Regards

login failed after install

Good evening I detected a failure when you install (either in a working instance o a new one)
The trace says a free leaked connection and after tat you can not load the db.
(I updated yesterday) and that what happened.
I ve changed back to the previous version and (worked as expected)
I would say from this point may be related with some bug on the app.
Hope you have some time to fix this awesome app. If you need further testing drop me a line.
Best regards Humberto @ mexico

the trace:
016-08-22 14:47:51,439 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:51] "GET /web/login HTTP/1.1" 200 -
2016-08-22 14:47:51,688 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:51] "GET /im_livechat/loader/DHARMAUTIL/1 HTTP/1.1" 200 -
2016-08-22 14:47:51,944 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:51] "POST /web/proxy/load HTTP/1.1" 200 -
2016-08-22 14:47:51,947 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:51] "POST /web/proxy/load HTTP/1.1" 200 -
2016-08-22 14:47:52,229 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:52] "POST /im_livechat/available HTTP/1.1" 200 -
2016-08-22 14:47:55,705 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:55] "GET /web/login HTTP/1.1" 200 -
2016-08-22 14:47:55,877 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:55] "GET /web/login HTTP/1.1" 200 -
2016-08-22 14:47:56,402 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:47:56] "GET /im_livechat/loader/DHARMAUTIL/1 HTTP/1.1" 200 -
2016-08-22 14:48:03,725 1204 ERROR DHARMAUTIL openerp.addons.website.models.ir_http: 500 Internal Server Error:

Traceback (most recent call last):
File "/opt/odoo/odoo-server/addons/website/models/ir_http.py", line 199, in _handle_exception
response = super(ir_http, self)._handle_exception(exception)
File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_http.py", line 145, in _handle_exception
return request._handle_exception(exception)
File "/opt/odoo/odoo-server/openerp/http.py", line 673, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_http.py", line 171, in _dispatch
result = request.dispatch()
File "/opt/odoo/odoo-server/openerp/http.py", line 691, in dispatch
r = self._call_function(*_self.params)
File "/opt/odoo/odoo-server/openerp/http.py", line 317, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/service/model.py", line 118, in wrapper
return f(dbname, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/http.py", line 314, in checked_call
return self.endpoint(_a, *_kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 810, in call
return self.method(_args, *_kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 410, in response_wrap
response = f(_args, *_kw)
File "/opt/odoo/odoo-server/addons/auth_oauth/controllers/main.py", line 93, in web_login
response = super(OAuthLogin, self).web_login(_args, *_kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 410, in response_wrap
response = f(_args, *_kw)
File "/opt/odoo/odoo-server/addons/auth_signup/controllers/main.py", line 38, in web_login
response = super(AuthSignupHome, self).web_login(_args, *_kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 410, in response_wrap
response = f(_args, *_kw)
File "/opt/odoo/custom/addons/tko_web_sessions_management/main.py", line 154, in web_login
context=request.context)
File "/opt/odoo/custom/addons/tko_web_sessions_management/main.py", line 189, in save_session
if request.httprequest.headers.environ['HTTP_X_FORWARDED_FOR']:
KeyError: 'HTTP_X_FORWARDED_FOR'

2016-08-22 14:48:03,816 1204 WARNING DHARMAUTIL openerp.sql_db: Cursor not closed explicitly
Please enable sql debugging to trace the caller.
2016-08-22 14:48:03,820 1204 INFO DHARMAUTIL werkzeug: 189.219.123.100 - - [22/Aug/2016 14:48:03] "POST /web/login HTTP/1.1" 500 -
2016-08-22 14:48:11,391 1204 WARNING DHARMAUTIL openerp.sql_db: ConnectionPool(used=1/count=5/max=64): Free leaked connection to 'user=odoo dbname=DHARMAUTIL'

Self signed up user lost access to front web shop access after they logged in

Hi,

After installed this module, all self signed up user lost access to front web shop access rights after they logged in, shows 403 after login.

From the log: Only
Human Resources/Employee\n\t- Administration/Access Rights groups has the rights to access the shop.

Is there a config need to be done after the installation to restore the normal access rights?

Thanks.

tko_web_sessions_management - access right

Hi everyone,

Thx for this nice work,

i got the error bellow when i tried to log in with demo user (with admin user there is no problem)

2015-11-01 18:39:24,080 13995 ERROR 7000DemoSession werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
execute(self.server.app)
File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
application_iter = app(environ, start_response)
File "/home/inovativ/workspace/odoo8/openerp/service/server.py", line 290, in app
return self.app(e, s)
File "/home/inovativ/workspace/odoo8/openerp/service/wsgi_server.py", line 216, in application
return application_unproxied(environ, start_response)
File "/home/inovativ/workspace/odoo8/openerp/service/wsgi_server.py", line 202, in application_unproxied
result = handler(environ, start_response)
File "/home/inovativ/workspace/odoo8/openerp/http.py", line 1290, in call
return self.dispatch(environ, start_response)
File "/home/inovativ/workspace/odoo8/openerp/http.py", line 1264, in call
return self.app(environ, start_wrapped)
File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in call
return self.app(environ, start_response)
File "/home/inovativ/workspace/odoo8/openerp/http.py", line 1264, in call
return self.app(environ, start_wrapped)
File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in call
return self.app(environ, start_response)
File "/home/inovativ/workspace/odoo8/openerp/http.py", line 1435, in dispatch
result = ir_http._dispatch()
File "/home/inovativ/workspace/odoo8/openerp/addons/base/ir/ir_http.py", line 175, in _dispatch
return self._handle_exception(e)
File "/home/inovativ/workspace/odoo8/openerp/addons/base/ir/ir_http.py", line 145, in _handle_exception
return request._handle_exception(exception)
File "/home/inovativ/workspace/odoo8/openerp/http.py", line 666, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/home/inovativ/workspace/odoo8/openerp/addons/base/ir/ir_http.py", line 171, in _dispatch
result = request.dispatch()
File "/home/inovativ/workspace/odoo8/openerp/http.py", line 684, in dispatch
r = self._call_function(*_self.params)
File "/home/inovativ/workspace/odoo8/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/home/inovativ/workspace/odoo8/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/home/inovativ/workspace/odoo8/openerp/http.py", line 307, in checked_call
return self.endpoint(_a, *_kw)
File "/home/inovativ/workspace/odoo8/openerp/http.py", line 803, in call
return self.method(_args, *_kw)
File "/home/inovativ/workspace/odoo8/openerp/http.py", line 403, in response_wrap
response = f(_args, *_kw)
File "/home/inovativ/workspace/odoo8/custom/telecom/tko_web_sessions_management/main.py", line 88, in web_login
context=None)
File "/home/inovativ/workspace/odoo8/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/home/inovativ/workspace/odoo8/openerp/models.py", line 1644, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/inovativ/workspace/odoo8/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/home/inovativ/workspace/odoo8/openerp/models.py", line 4655, in _search
self.check_access_rights(cr, access_rights_uid or user, 'read')
File "/home/inovativ/workspace/odoo8/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/home/inovativ/workspace/odoo8/openerp/models.py", line 3502, in check_access_rights
return self.pool.get('ir.model.access').check(cr, uid, self._name, operation, raise_exception)
File "/home/inovativ/workspace/odoo8/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "", line 2, in check

File "/home/inovativ/workspace/odoo8/openerp/tools/cache.py", line 122, in lookup
value = d[key] = self.method(_args, *_kwargs)
File "/home/inovativ/workspace/odoo8/openerp/addons/base/ir/ir_model.py", line 800, in check
raise openerp.exceptions.AccessError(msg % msg_params)
AccessError: ('AccessError', u'Sorry, you are not allowed to access this document. Please contact your system administrator if you think this is an error.\n\n(Document model: ir.sessions)')

Error in Odoo V10 ..... TypeError: unbound method search() must be called

I installed the module and having the issue with the calendar system. After assigning the calendar to a user getting this error. When the user tries to log in 500 internal server error occurs and in the log this shows:

File "/Users/user/odoo/custom_addons/tko_web_sessions_management/main.py", line 113, in web_login context=request.context)

TypeError: unbound method search() must be called with resource.calendar.attendance instance as first argument (got list instance instead)

Import Module Error

When i go to import the module into my odoo online i have this error:
Error while importing module 'security': u'depends' Error while importing module 'static': u'depends'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.