Browse Source

Apr 4 [UPDT] : Bug Fixed 'login_pos_direct'

pull/313/head
AjmalCybro 1 year ago
parent
commit
e127536c04
  1. 3
      login_pos_direct/__manifest__.py
  2. 3
      login_pos_direct/controllers/direct_pos_login.py
  3. 4
      login_pos_direct/doc/RELEASE_NOTES.md

3
login_pos_direct/__manifest__.py

@ -19,10 +19,9 @@
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
{
'name': 'POS Direct Login',
'version': '17.0.1.0.0',
'version': '17.0.1.0.1',
'category': 'Point of Sale',
'summary': 'Helps to directly login to POS.',
'description': 'Log in to configured POS shop to save time without backend.',

3
login_pos_direct/controllers/direct_pos_login.py

@ -28,7 +28,8 @@ from odoo.addons.web.controllers.main import home
class PosScreen(home.Home):
"""The class PosScreen is used to log in pos session directly"""
@http.route('/web/login', type='http', auth="none")
@http.route('/web/login', type='http', auth="public", website=True,
sitemap=False)
def web_login(self, redirect=None, **kw):
"""Override to add direct login to POS"""
res = super().web_login(redirect=redirect, **kw)

4
login_pos_direct/doc/RELEASE_NOTES.md

@ -5,3 +5,7 @@
#### ADD
- Initial commit for Pos Direct Login
#### 29.03.2024
#### Version 17.0.1.0.1
#### BUGFIX
- Added a website parameter to the login route to solve the issue related to the website login.
Loading…
Cancel
Save