Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Customer Portal in Odoo9

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
menuemployeehuman_resourceodoo9
1 Odpowiedz
4849 Widoki
Awatar
Gavin Yap

Updated

I wanted to create a customized sign in page that would allow 2 type of customer to create an account with different roles.

It turns out that even when I use the inbuilt auth_signup module, the user_navbar is not visible as well. 

I then found out that you actually need to add the website.user_navbar under the group's view if using auth_signup module.

But my problem still remains that my user still cannot view the website.user_navbar and nagivate to the respective application when login. 



BR,
Gavin

1
Awatar
Odrzuć
Awatar
Gavin Yap
Autor Najlepsza odpowiedź

There a 2 discoveries I made:

1) if auth_signup is ever used, you need to manually add the website.user_navbar to the view of the group that the user is created. For signup users using the auth_signup process, the user will be assigned to the  group_portal user group. So adding the nav_bar there, would allow the black navigation bar to appear, allow the user to navigate to other modules, e.g. customer portal

) The other discovery I made was either 2 accounts Hr.employee (and the rest of the groups) or user_portal (with website.navbar) will be able to see the navigation bar and navigate to the respective custom modules I create. Now if I would copy and clone either the account for my customized signup user. It would not work, and I could figure out why? As a part of my work around, my signup process includes assign the user with group_portal and then a customized group type that I intended for the customer.


    @http.route('/market/signup/customer/', auth='public', website=True)
def customer_sign_up(self, **kw):
# GET Request
if http.request.httprequest.method == 'GET':
return http.request.render('elm.customer_sign_up')
# POST Request
if http.request.httprequest.method == 'POST':
print "POST"
self.do_signup_customer(http.request.params)
return "Customer user created"
    def do_signup_customer(self, values):
# Retrieve all fields from values
email = values.get('login')
name = values.get('name')
password = values.get('password')
confirm_password = values.get('confirm_password')
# Check if password and confirmation match
assert password == confirm_password, "Passwords do not match; please retype them."
# Check login field for valid email
assert re.match(r"^[A-Za-z0-9\.\+_-]+@[A-Za-z0-9\._-]+\.[a-zA-Z]*$", email), "%s is not a valid email address." % email
# Check if login(email) exist
count = http.request.env['res.users'].search_count([['login', '=', email]])
assert count == 0, "User already exist, please try reset password"
# create the user if all assertion passed
 
# Get the reference of customer group and portal group
customer = http.request.env.ref('elm.group_customer')
portal = http.request.env.ref('base.group_portal')

# Create User
http.request.env['res.users'].sudo().create({
'name': name,
'login': email,
'password': password,
'groups_id': [(6, 0, [customer.id, portal.id])],
})



0
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Mark an employee as having left Rozwiązane
employee human_resource Leaver
Awatar
Awatar
1
lip 24
1880
Get menu_id of page opened odoo 9
menu url odoo9
Awatar
0
sty 20
3422
Multi Company Restricting Employee View to Own Company
employee human_resource multicompany
Awatar
Awatar
Awatar
4
lut 18
10894
Can not save changes after editing menu configuration in odoo 9
configuration menu odoo9
Awatar
0
sty 16
65
Openerp 7 employee salary increment
employee human_resource salary
Awatar
Awatar
Awatar
2
lis 15
5016
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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