Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Portal Users as Employees

Subscriure's

Get notified when there's activity on this post

This question has been flagged
employeeemployeesgamification
5 Respostes
12118 Vistes
Avatar
Danny Santiago

Hi everyone

I recently encountered an issue while using Odoo Enterprise 16 on Odoo.sh. I have over 100 portal users who are employees, but I couldn't afford the rates for 100+ internal users in the Odoo.sh environment. This implementation of Odoo is being used as a closed system for an intranet, and only user creation is done by Google OAuth for the company domain, with all pages hidden so that only portal users can see the site and content.

While this worked great for the intranet resource, I ran into a limitation when trying to use the gamification tool. I was only able to deploy badges to employees, or internal users. However, I only had a handful of licenses available for internal users, and paying the list price for internal user licenses to make use of the free tool seemed like a cruel joke.

So, I used Odoo Studio to modify the test environment and it worked! I then performed the same update to the live environment and everything is working. The problem stemmed from the HR settings of the employee form view. The 'Related User' was tagged to the internal users, so I updated this to any user with a status of confirmed by doing the following:

  1. Go to your employees and select or create an employee to open the HR.employee view form.
  2. Click on the Odoo Studio in the upper right-hand corner to enter the studio configurator.
  3. Once in the configurator, select the 'HR Settings' tab and then the 'Related User' field.
  4. On the left configuration editor, select the 'Domain' entry filter field and replace with [["user_ids.active","=",True]].
  5. In the builder, you can search for 'users'>'active' set to 'true'. This will compute a list of confirmed portal users, which includes the internal users.

I am not an Odoo developer, so I have no idea if this breaks anything in the backend. However, for me, this seems to have no noticeable impact on my system. I hope this information is helpful to others who may be facing a similar issue.


I hope this helps someone.

5
Avatar
Descartar
Jonathan Mburu Githumbi

This helped me, thank you sir

Jonathan Mburu Githumbi

Will implement this in code

Danny Santiago
Autor

@Jonathan Githumbi
when you do would you mind sharing your code? I am working on a larger module to do this and update the portal page for users to see their badges.

Jonathan Mburu Githumbi

sure thing

Jonathan Mburu Githumbi

Hi there, managed to get the Related users to display portal users as well as internal users by inheriting the hr.view_employee_form and using this code to override the domain rule for the user_id field :
<odoo>
<record id="view_employee_form_inherit_portal_user" model="ir.ui.view">
<field name="name">hr.employee.form.inherit.portal_user</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='hr_settings']//field[@name='user_id']" position="attributes">
<attribute name="domain">[('active', '=', True)]</attribute>
</xpath>
</field>
</record>
</odoo>

https://github.com/JonathanGithumbi/relate_employee_portaluser

Jonathan Mburu Githumbi

I suppose the same strategy can be applied for any field where you need to access both portal and internal users

Avatar
Pedro Dom
Best Answer

https://apps.odoo.com/apps/modules/17.0/odoo_ess_portal



0
Avatar
Descartar
Avatar
Helpad
Best Answer

An alternative approach to achieve the same result is to utilize the import function in the Human Resources module. By preparing an Excel or CSV file with the IDs of the employee records and the corresponding portal user record IDs, you can also accomplish this task.  

In our scenario, the Human Resources department is looking to acknowledge all employees by sending them congratulatory badges via email using the Odoo module. These recognitions range from simple accomplishments such as ‘Consistent Early Arrival’ to significant milestones like ‘Decade-long with Us’.

0
Avatar
Descartar
Avatar
Juan Pablo Gil Galindo
Best Answer

not just for sales gamification but for hr modules

0
Avatar
Descartar
Avatar
Jonathan Mburu Githumbi
Best Answer

Sure thing.

0
Avatar
Descartar
Avatar
Kriswanto
Best Answer

Hi, can you give some screenshots for this ? If followed all your steps, but where to see employees already have access for this ? I have tried to login using the email for portal that I setup with your recommendation, but not seeing any changes on the portal account.

0
Avatar
Descartar
Danny Santiago
Autor

This doesn't change anything in portal. Just in the HR Sheet for granting badges. You can now select users that are not marked as internal ( licensed )

Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
Employee Challenges & Badges in V18
employees gamification badges challenge
Avatar
0
de gen. 25
1816
Attendance for not Odoo users
employee payroll attendance employees
Avatar
Avatar
1
d’ag. 15
4853
Timesheet employees need to be users as well
users employee timesheet employees
Avatar
Avatar
1
de juny 24
5347
Employees without Email Solved
employees
Avatar
Avatar
1
de nov. 25
2302
hr_employee_public.timesheet_manager_id does not exist
employee
Avatar
Avatar
1
d’ag. 25
4527
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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