Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Customer Portal in Odoo9

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
menuemployeehuman_resourceodoo9
1 Balas
4853 Tampilan
Avatar
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
Avatar
Buang
Avatar
Gavin Yap
Penulis Jawaban Terbai

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
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Mark an employee as having left Diselesaikan
employee human_resource Leaver
Avatar
Avatar
1
Jul 24
1886
Get menu_id of page opened odoo 9
menu url odoo9
Avatar
0
Jan 20
3429
Multi Company Restricting Employee View to Own Company
employee human_resource multicompany
Avatar
Avatar
Avatar
4
Feb 18
10902
Can not save changes after editing menu configuration in odoo 9
configuration menu odoo9
Avatar
0
Jan 16
65
Openerp 7 employee salary increment
employee human_resource salary
Avatar
Avatar
Avatar
2
Nov 15
5027
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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