Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Login feature in odoo

Odebírat

Get notified when there's activity on this post

This question has been flagged
loginodoo8.0
4 Odpovědi
11807 Zobrazení
Avatar
Anand Prasanth

I would like to create a module/app to use the login authentication. I am not sure how to proceed. But registration is necessary which I have already kept ready.

The design for the login is not a matter but How to check whether the user is registered and to give separate functionalities depending upon the type of user who logins the module/website.


And also how to carry the credentials till the users logout.

0
Avatar
Zrušit
Michael Watchorn

Are you talking about the backend, or a front-end website?

Anand Prasanth
Autor

@Michael Watchhorn, front end is not at all a problem right? I am talking about the backend.

Avatar
Axel Mendoza
Nejlepší odpověď

I think that the solution of what you want is more simple than what you are thinking about. 

If you wanna ensure that an user is authenticated before do something you just need to do something like this into the controller of the url for that something, like the following scenario:

#making sure that the user is registered and authenticated before checkout in the shop:

from openerp import http

from openerp.http import request

from openerp.addons.website_sale.controllers.main import website_sale

class solt_website_sale(website_sale):

@http.route(['/shop/checkout'], type='http', auth="user", website=True)

def checkout(self, **post):

return super(solt_website_sale, self).checkout(**post)

For the separation of features depending of the type of users, you will need to get more familiar with Odoo security stuffs like groups, and how to use it to restrict the content that you deliver to your users


1
Avatar
Zrušit
Avatar
Annadurai
Nejlepší odpověď

In .PY

fields-->

user_name=fields.Char(string="User name",required=True,help="This field has ADMIN authenticity, Provide valid user name and password")

password_login=fields.Char(string="Password",required=True,help="This field has ADMIN authenticity, Provide valid user name and password")

check_valid=fields.Char(compute="check_user_password",string=" Login",help="If USER NAME and PASSWORD are Matched, Then it will show you LOGIN BUTTON")

@api.one

@api.depends('user_name','password_login')

def check_user_password(self):

    if self.user_name=='vicky' and self.password_login=='vicky':

    self.check_valid=True 

AND in XML

<field name="user_name" style="width:60%%;height:5%%;font-size:15px" placeholder=" USER NAME"/>

<field name="password_login" style="width:60%%;height:5%%;font-size:15px" placeholder=" PASSWORD" password="1"/>


<field name="check_valid" />

<button name="%(customer_action_window)d" type="action"

class="oe_highlight oe_stat_info oe_right o_wow" style="background-color:#32CD32"

icon="fa-sign-in" attrs="{'invisible':[('check_valid','=',False)]}" />

 You may fetch records from db and check it for login... whenever the condition is "True", it automaticlly Shows the Button to login... Hope this will give some Idea to u...

0
Avatar
Zrušit
Avatar
Anand Prasanth
Autor Nejlepší odpověď

Axel Mendoza thanks for the reply. This is also required for me. But I am asking for the basic authentication. i.e., the login process itself. You are saying about the process after the login for holding up the authentication.

0
Avatar
Zrušit
Ermin Trevisan

The login process itself is already handled by Odoo out of the box.

Anand Prasanth
Autor

How to make a custom registration form to add users to the database then?

Anand Prasanth
Autor

@Annadurai Thank you for your reply. I have made this design already with a different scenario. But I need to check the database for the user name and the password which is in a different table. But inside the same project.

Avatar
Alaa
Nejlepší odpověď

You can use these apps (search apps in odoo apps by names provided below) to change the whole login page style.

Moreover, these apps provide the ability to define your own favicon and logo as you wish.

Apps Name:

Minimalist Login Form

Creative Login Form

Advanced Login Form


-1
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Login username with space at end cannot login
login
Avatar
Avatar
1
zář 24
1943
how to implement joint piece in odoo 8 in one view
odoo8.0
Avatar
0
dub 24
2758
what is the reason behind extra move? in stock
odoo8.0
Avatar
Avatar
Avatar
Avatar
4
lis 23
6933
How to solve fields.function issue in odoo 8
odoo8.0
Avatar
0
říj 23
2758
how to restrict create and delete access in one2many field tree view
odoo8.0
Avatar
0
pro 22
3500
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now