์ฝ˜ํ…์ธ ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ
Odoo ๋ฉ”๋‰ด
  • ๋กœ๊ทธ์ธ
  • ๋ฌด๋ฃŒ ์ฒดํ—˜ํ•˜๊ธฐ
  • ์•ฑ
    ์žฌ๋ฌด ๊ด€๋ฆฌ
    • ํšŒ๊ณ„
    • ์ฒญ๊ตฌ์„œ ๊ด€๋ฆฌ
    • ๋น„์šฉ ๊ด€๋ฆฌ
    • ์Šคํ”„๋ ˆ๋“œ์‹œํŠธ (BI)
    • ๋ฌธ์„œ
    • ์ „์ž ์„œ๋ช…
    ํŒ๋งค
    • CRM
    • ํŒ๋งค
    • POS ์Šคํ† ์–ด
    • POS ๋ ˆ์Šคํ† ๋ž‘
    • ๊ตฌ๋…
    • ๋ Œํƒˆ
    ์›น์‚ฌ์ดํŠธ
    • ์›น์‚ฌ์ดํŠธ ๋นŒ๋”
    • ์ด์ปค๋จธ์Šค
    • ๋ธ”๋กœ๊ทธ
    • ํฌ๋Ÿผ
    • ์‹ค์‹œ๊ฐ„ ์ฑ„ํŒ…
    • ์˜จ๋ผ์ธ ํ•™์Šต ๊ด€๋ฆฌ
    ๊ณต๊ธ‰๋ง
    • ์žฌ๊ณ  ๊ด€๋ฆฌ
    • ์ œ์กฐ ๊ด€๋ฆฌ
    • ์ œํ’ˆ ์ˆ˜๋ช…์ฃผ๊ธฐ ๊ด€๋ฆฌ (PLM)
    • ๋งค์ž…
    • ์œ ์ง€๊ด€๋ฆฌ
    • ํ’ˆ์งˆ
    ์ธ์ ์ž์› ๊ด€๋ฆฌ
    • ์ง์›
    • ์ฑ„์šฉ
    • ํœด๊ฐ€ ๊ด€๋ฆฌ
    • ์ธ์‚ฌ ํ‰๊ฐ€
    • ์ธ์žฌ ์ถ”์ฒœ
    • ์ฐจ๋Ÿ‰ ๊ด€๋ฆฌ
    ๋งˆ์ผ€ํŒ…
    • ์†Œ์…œ ๋งˆ์ผ€ํŒ…
    • ์ด๋ฉ”์ผ ๋งˆ์ผ€ํŒ…
    • SMS ๋งˆ์ผ€ํŒ…
    • ํ–‰์‚ฌ
    • ๋งˆ์ผ€ํŒ… ์ž๋™ํ™”
    • ์„ค๋ฌธ ์กฐ์‚ฌ
    ์„œ๋น„์Šค
    • ํ”„๋กœ์ ํŠธ
    • ์ž‘์—… ๊ธฐ๋ก
    • ํ˜„์žฅ ์„œ๋น„์Šค
    • ํ—ฌํ”„๋ฐ์Šคํฌ
    • ์ผ์ • ๊ด€๋ฆฌ
    • ์ผ์ • ์˜ˆ์•ฝ
    ์ƒ์‚ฐ์„ฑ
    • ๋ฉ”์ผ ๋ฐ ์ฑ„ํŒ…
    • ์ „์ž ๊ฒฐ์žฌ
    • IoT
    • VoIP
    • ์ง€์‹ ์„ผํ„ฐ
    • WhatsApp
    ํƒ€์‚ฌ ์•ฑ Odoo ์ŠคํŠœ๋””์˜ค Odoo ํด๋ผ์šฐ๋“œ ํ”Œ๋žซํผ
  • ์ธ๋”์ŠคํŠธ๋ฆฌ
    ๋ฆฌํ…Œ์ผ
    • ์„œ์ 
    • ์˜๋ฅ˜ ๋งค์žฅ
    • ๊ฐ€๊ตฌ์ 
    • ์‹๋ฃŒํ’ˆ์ 
    • ์ฒ ๋ฌผ์ 
    • ์žฅ๋‚œ๊ฐ ๊ฐ€๊ฒŒ
    ์‹์Œ๋ฃŒ & ์ˆ™๋ฐ•์—…
    • ๋ฐ” & ํŽ
    • ๋ ˆ์Šคํ† ๋ž‘
    • ํŒจ์ŠคํŠธํ‘ธ๋“œ
    • ๊ฒŒ์ŠคํŠธ ํ•˜์šฐ์Šค
    • ์Œ๋ฃŒ ์œ ํ†ต์—…์ฒด
    • ํ˜ธํ…”
    ๋ถ€๋™์‚ฐ
    • ๋ถ€๋™์‚ฐ ์ค‘๊ฐœ์—…์ฒด
    • ๊ฑด์ถ• ํšŒ์‚ฌ
    • ๊ฑด์„ค
    • ๋ถ€๋™์‚ฐ ๊ด€๋ฆฌ
    • ๊ฐ€๋“œ๋‹
    • ๋ถ€๋™์‚ฐ ์†Œ์œ ์ž ํ˜‘ํšŒ
    ์ปจ์„คํŒ…
    • ํšŒ๊ณ„ ๋ฒ•์ธ
    • Odoo ํŒŒํŠธ๋„ˆ
    • ๋งˆ์ผ€ํŒ… ๋Œ€ํ–‰์‚ฌ
    • ๋ฒ•๋ฅ  ์‚ฌ๋ฌด์†Œ
    • ์ธ์žฌ ์˜์ž…
    • ๊ฐ์‚ฌ ๋ฐ ์ธ์ฆ
    ์ œ์กฐ ๊ด€๋ฆฌ
    • ํ…์Šคํƒ€์ผ
    • ๋ฉ”ํƒˆ
    • ๊ฐ€๊ตฌ
    • ํ‘ธ๋“œ
    • ์–‘์กฐ์žฅ
    • ๊ธฐ์—…์šฉ ์„ ๋ฌผ
    ๊ฑด๊ฐ• & ํ”ผํŠธ๋‹ˆ์Šค
    • ์Šคํฌ์ธ  ํด๋Ÿฝ
    • ์•ˆ๊ฒฝ์ 
    • ํ”ผํŠธ๋‹ˆ์Šค ์„ผํ„ฐ
    • ์›ฐ๋‹ˆ์Šค ์ „๋ฌธ๊ฐ€
    • ์•ฝ๊ตญ
    • ๋ฏธ์šฉ์‹ค
    ์‚ฌ์—…
    • ํ•ธ๋””๋งจ
    • IT ํ•˜๋“œ์›จ์–ด ๋ฐ ์ง€์› ์„œ๋น„์Šค
    • ํƒœ์–‘ ์—๋„ˆ์ง€ ์‹œ์Šคํ…œ
    • ์ œํ™”์—…์ฒด
    • ํด๋ฆฌ๋‹ ์„œ๋น„์Šค
    • HVAC ์„œ๋น„์Šค
    ๊ธฐํƒ€
    • ๋น„์˜๋ฆฌ ๋‹จ์ฒด
    • ํ™˜๊ฒฝ ์—์ด์ „์‹œ
    • ๊ด‘๊ณ ํŒ ์ž„๋Œ€
    • ์‚ฌ์ง„
    • ์ž์ „๊ฑฐ ์ž„๋Œ€
    • ์†Œํ”„ํŠธ์›จ์–ด ๋ฆฌ์…€๋Ÿฌ
    ์ „์ฒด ์ธ๋”์ŠคํŠธ๋ฆฌ ์ฐพ์•„๋ณด๊ธฐ
  • ์ปค๋ฎค๋‹ˆํ‹ฐ
    ํ•™์Šต
    • ํŠœํ† ๋ฆฌ์–ผ
    • ๋ฌธ์„œ
    • ์ธ์ฆ
    • ํ›ˆ๋ จ
    • ๋ธ”๋กœ๊ทธ
    • ํŒŸ์บ์ŠคํŠธ
    ๊ต์œก ์—ญ๋Ÿ‰ ๊ฐ•ํ™”
    • ๊ต์œก ํ”„๋กœ๊ทธ๋žจ
    • Scale-Up! ๊ฒฝ์˜๊ด€๋ฆฌ ๊ฒŒ์ž„
    • Odoo์— ๋ฐฉ๋ฌธํ•ด๋ณด์„ธ์š”
    ์†Œํ”„ํŠธ์›จ์–ด ์‹ ์ฒญ
    • ๋‹ค์šด๋กœ๋“œ
    • ๋ฒ„์ „ ์‚ดํŽด๋ณด๊ธฐ
    • ๋ฆด๋ฆฌ์ฆˆ ๋‚ด์—ญ
    ํ˜‘์—…
    • Github
    • ํฌ๋Ÿผ
    • ํ–‰์‚ฌ
    • ๋ฒˆ์—ญ
    • ํŒŒํŠธ๋„ˆ ๋“ฑ๋ก
    • ํŒŒํŠธ๋„ˆ ๋Œ€์ƒ ์„œ๋น„์Šค
    • ํšŒ๊ณ„ ๋ฒ•์ธ ์ •๋ณด ๋“ฑ๋ก
    ์„œ๋น„์Šค ์‹ ์ฒญ
    • ํŒŒํŠธ๋„ˆ ๊ฒ€์ƒ‰
    • ํšŒ๊ณ„์‚ฌ ๊ฒ€์ƒ‰
    • ์ „๋ฌธ ์ƒ๋‹ด ์˜ˆ์•ฝ
    • ๊ตฌํ˜„ ์„œ๋น„์Šค
    • ๊ณ ๊ฐ ์ •๋ณด
    • ๊ณ ๊ฐ ์ง€์›
    • ์—…๊ทธ๋ ˆ์ด๋“œ
    Github ์œ ํŠœ๋ธŒ ํŠธ์œ„ํ„ฐ ๋งํฌ๋“œ์ธ ์ธ์Šคํƒ€๊ทธ๋žจ ํŽ˜์ด์Šค๋ถ ์Šคํฌํ‹ฐํŒŒ์ด
    +1 (650) 691-3277
    ๋ฐ๋ชจ ์˜ˆ์•ฝํ•˜๊ธฐ
  • ์š”๊ธˆ์ œ
  • ๊ณ ๊ฐ ์ง€์›

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

  • CRM
  • e-Commerce
  • ํšŒ๊ณ„
  • ์žฌ๊ณ  ๊ด€๋ฆฌ
  • PoS
  • ํ”„๋กœ์ ํŠธ
  • MRP
All apps
์ปค๋ฎค๋‹ˆํ‹ฐ์— ์ฐธ์—ฌํ•˜๋ ค๋ฉด ํšŒ์› ๊ฐ€์ž…์„ ํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.
๋ชจ๋“  ๊ฒŒ์‹œ๋ฌผ ์‚ฌ์šฉ์ž ๋ฐฐ์ง€
ํƒœ๊ทธ (๋ชจ๋‘ ๋ณด๊ธฐ)
odoo accounting v14 pos v15
๊ฒŒ์‹œํŒ ์ •๋ณด
์ปค๋ฎค๋‹ˆํ‹ฐ์— ์ฐธ์—ฌํ•˜๋ ค๋ฉด ํšŒ์› ๊ฐ€์ž…์„ ํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.
๋ชจ๋“  ๊ฒŒ์‹œ๋ฌผ ์‚ฌ์šฉ์ž ๋ฐฐ์ง€
ํƒœ๊ทธ (๋ชจ๋‘ ๋ณด๊ธฐ)
odoo accounting v14 pos v15
๊ฒŒ์‹œํŒ ์ •๋ณด
๋„์›€๋ง

Restrict ecommerce website signup to certain email domain

๊ตฌ๋…

์ด ๊ฒŒ์‹œ๋ฌผ์— ํ™œ๋™์ด ์žˆ์œผ๋ฉด ์•Œ๋ฆผ ๋ฐ›๊ธฐ

์‹ ๊ณ ๋œ ์งˆ๋ฌธ์ž…๋‹ˆ๋‹ค
developmentshop
2 ๋‹ต๊ธ€
1853 ํ™”๋ฉด
์•„๋ฐ”ํƒ€
Admin matprotect

Hello,

I would like to only allow users from my own company to signup to my ecommerce website. They all have an email address ending with MyCompany domain name like this "XXXX@MyCompany.com" so I would like to restrict new signups based on the email address.

How to best implement this?

Any help would be much appreciated ๐Ÿ™

1
์•„๋ฐ”ํƒ€
์ทจ์†Œ
Josep Anton Belchi Riera

You can restrict the creation of new users in Odoo.



With this setting, only users with your invitation can create an account in Odoo.

Odiware Technologies

1. Override the Signup Controller

Modify Odooโ€™s auth_signup controller to check the email domain before allowing registration.

๐Ÿ“Œ Steps:

  1. Create a new module or update your existing custom module.
  2. Extend the AuthSignupHome controller to restrict email domains.

๐Ÿ“Œ Example Code (Python - Controller Override):

python

CopyEdit

from odoo import http from odoo.http import request from odoo.addons.auth_signup.controllers.main import AuthSignupHome ALLOWED_DOMAIN = "mycompany.com" class CustomAuthSignup(AuthSignupHome): def do_signup(self, qcontext): email = qcontext.get('email', '').strip().lower() if not email.endswith(f"@{ALLOWED_DOMAIN}"): raise ValueError("Signup is restricted to MyCompany employees only.") return super(CustomAuthSignup, self).do_signup(qcontext)

2. Modify Signup Form to Show Error Message

You can customize the signup page template to display a warning message if users enter an invalid email.

๐Ÿ“Œ Steps:

  1. Edit the views/auth_signup_login.xml file in your custom module.
  2. Add a validation script to check the email before submission.

๐Ÿ“Œ Example (JavaScript - Client-Side Validation):

javascript

CopyEdit

document.addEventListener("DOMContentLoaded", function () { document.querySelector("#signup_form").addEventListener("submit", function (event) { var email = document.querySelector("input[name='email']").value; if (!email.endsWith("@mycompany.com")) { alert("Signup is restricted to MyCompany employees only."); event.preventDefault(); } }); });

3. Hide Signup Option for Non-Company Emails

If you want to completely disable signup for external users, you can restrict the โ€œSign Upโ€ button in the website settings:

๐Ÿ“Œ Steps:

  1. Go to Website > Configuration > Settings.
  2. Under Customer Accounts, select โ€œCustomers Onlyโ€.
  3. Enable Login Required to prevent public users from accessing the signup page.

์•„๋ฐ”ํƒ€
Abhay Singh
๋ฒ ์ŠคํŠธ ๋‹ต๋ณ€

If you're not developer than this is the easiest solution you can implement by yourself:

  1. Go to Automated Actions:
    • In Odoo, navigate to "Settings" (or "Technical Settings" if you don't see Settings).
    • Search for "Automated Actions" and open it.
  2. Create a New Automated Action:
    • Click "Create".
  3. Configure the Automated Action:
    • Model:ย Select "Users" (res.users).
    • Trigger:ย Select "On Creation".
    • Apply on:ย Leave as "All Records" (or you can add a condition if needed).
    • Action To Do:ย Select "Execute Python Code".
  4. Python Code:
    • In the "Python Code" section, enter the following code:
# Allow only users with email ending in "@mycompany.com"
allowed_domain = "@mycompany.com"
user_email = record.email or record.loginย  # fallback to login if email is not set

if user_email and not user_email.lower().endswith(allowed_domain.lower()):
ย  ย  raise UserError("Signup is restricted to users with @mycompany.com email addresses.")

5. Save and Close


If you know how to code then use this solution:
Add this code in some module or create your own custom module and add this code to fix it.

from odoo import models, fields, api
from odoo.exceptions import ValidationError

class ResUsers(models.Model):
    _inherit = 'res.users'

    @api.model
    def create(self, vals):
        if 'login' in vals and not vals['login'].endswith('@MyCompany.com'):
            raise ValidationError("Only users with @MyCompany.com email addresses can sign up.")
        return super(ResUsers, self).create(vals)


I hope it helps.

Thanks,
Abhay

1
์•„๋ฐ”ํƒ€
์ทจ์†Œ
์•„๋ฐ”ํƒ€
Admin matprotect
์ž‘์„ฑ์ž ๋ฒ ์ŠคํŠธ ๋‹ต๋ณ€

Hello,

Thank you for your answer, it is very helpful.

I am going the automated action way, howeverย your code raises an error:

forbidden opcode(s) in '# Available variables:\n#  - env: environment on which the action is triggered\n#  - model: model of the record on which the action is triggered; is a void recordset\n#  - record: record on which the action is triggered; may be void\n#  - records: recordset of all records on which the action is triggered in multi-mode; may be void\n#  - time, datetime, dateutil, timezone: useful Python libraries\n#  - float_compare: utility function to compare floats based on specific precision\n#  - b64encode, b64decode: functions to encode/decode binary data\n#  - log: log(message, level=\'info\'): logging function to record debug information in ir.logging table\n#  - _logger: _logger.info(message): logger to emit messages in server logs\n#  - UserError: exception class for raising user-facing warning messages\n#  - Command: x2many commands namespace\n# To return an action, assign: action = {...}\n\nif record.login and "@MyCompany.com" not in record.login:\n    record.active = False\n    tag_id = env[\'ir.model.data\']._xmlid_to_res_id(\'your_module.invalid_email_tag\')  # Replace with your tag\'s XML ID\n    if tag_id:\n        record.write({\'category_id\': [(4, tag_id)]})\n    record.message_post(body="User deactivated and tagged: Invalid email domain. Only @MyCompany.com emails are allowed.")': STORE_ATTR

Any help with that?

0
์•„๋ฐ”ํƒ€
์ทจ์†Œ
Abhay Singh

I updated my code in the original comment, try now and let me know if it works for you

ํ† ๋ก ์ด ์žฌ๋ฏธ์žˆ์œผ์‹ ๊ฐ€์š”? ์ง์ ‘ ์ฐธ์—ฌํ•ด๋ณด์„ธ์š”!

์ง€๊ธˆ ๋ฐ”๋กœ ๊ฐ€์ž…ํ•˜์—ฌ ๋…์  ์„œ๋น„์Šค๋ฅผ ์ด์šฉํ•ด๋ณด๊ณ  ํŠน๋ณ„ํ•œ ์ปค๋ฎค๋‹ˆํ‹ฐ์™€ ์†Œํ†ตํ•˜์„ธ์š”!

๊ฐ€์ž…
๊ด€๋ จ ๊ฒŒ์‹œ๋ฌผ ๋‹ต๊ธ€ ํ™”๋ฉด ํ™œ๋™
E-Commerce
development shop
์•„๋ฐ”ํƒ€
์•„๋ฐ”ํƒ€
2
3์›” 25
1906
Change the Checkout name in Odoo 18 ํ•ด๊ฒฐ ์™„๋ฃŒ
development workflow shop
์•„๋ฐ”ํƒ€
์•„๋ฐ”ํƒ€
2
7์›” 25
2083
customizing print label
development system shop
์•„๋ฐ”ํƒ€
0
3์›” 25
1482
Feature Request: Native โ€œDialog Filtersโ€ in Search Panel
development
์•„๋ฐ”ํƒ€
0
11์›” 25
102
Solution to the Getting Started tutorial from the official Odoo 16 documentation
development
์•„๋ฐ”ํƒ€
์•„๋ฐ”ํƒ€
์•„๋ฐ”ํƒ€
2
11์›” 25
1475
์ปค๋ฎค๋‹ˆํ‹ฐ
  • ํŠœํ† ๋ฆฌ์–ผ
  • ๋ฌธ์„œ
  • ํฌ๋Ÿผ
์˜คํ”ˆ ์†Œ์Šค
  • ๋‹ค์šด๋กœ๋“œ
  • Github
  • Runbot
  • ๋ฒˆ์—ญ
์„œ๋น„์Šค
  • Odoo.sh ํ˜ธ์ŠคํŒ…
  • ๊ณ ๊ฐ ์ง€์›
  • ์—…๊ทธ๋ ˆ์ด๋“œ
  • ๋งž์ถค ๊ฐœ๋ฐœ
  • ํ•™์Šต
  • ํšŒ๊ณ„์‚ฌ ๊ฒ€์ƒ‰
  • ํŒŒํŠธ๋„ˆ ๊ฒ€์ƒ‰
  • ํŒŒํŠธ๋„ˆ ๋“ฑ๋ก
ํšŒ์‚ฌ ์†Œ๊ฐœ
  • ํšŒ์‚ฌ ์†Œ๊ฐœ
  • ๋ธŒ๋žœ๋“œ ์ž์‚ฐ
  • ์ƒ๋‹ด ๋ฌธ์˜
  • ์ธ์žฌ ์ฑ„์šฉ
  • ํ–‰์‚ฌ
  • ํŒŸ์บ์ŠคํŠธ
  • ๋ธ”๋กœ๊ทธ
  • ๊ณ ๊ฐ ์‚ฌ๋ก€
  • ๋ฒ•์ ๊ณ ์ง€ โ€ข ๊ฐœ์ธ์ •๋ณด
  • ๋ณด์•ˆ
ุงู„ู’ุนูŽุฑูŽุจูŠู‘ุฉ 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๋Š” CRM, ์ด์ปค๋จธ์Šค, ํšŒ๊ณ„, ์žฌ๊ณ , POS, ํ”„๋กœ์ ํŠธ ๊ด€๋ฆฌ ๋“ฑ ๊ธฐ์—…์˜ ๋ชจ๋“  ์š”๊ตฌ ์‚ฌํ•ญ์„ ์ถฉ์กฑํ•˜๋„๋ก ์„ค๊ณ„๋œ ์˜คํ”ˆ ์†Œ์Šค ๊ธฐ๋ฐ˜์˜ ํ†ตํ•ฉ ๋น„์ฆˆ๋‹ˆ์Šค ์•ฑ ์ œํ’ˆ๊ตฐ์ž…๋‹ˆ๋‹ค.

Odoo์˜ ๊ฐ„ํŽธํ•œ UI์™€ ์™„๋ฒฝํ•˜๊ฒŒ ํ†ตํ•ฉ๋œ ๊ธฐ๋Šฅ์„ ์ง์ ‘ ํ™•์ธํ•ด ๋ณด์„ธ์š”.

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