Pular para o conteúdo
Odoo Menu
  • Entrar
  • Experimente grátis
  • Aplicativos
    Finanças
    • Financeiro
    • Faturamento
    • Despesas
    • Planilhas (BI)
    • Documentos
    • Assinar Documentos
    Vendas
    • CRM
    • Vendas
    • PDV Loja
    • PDV Restaurantes
    • Assinaturas
    • Locação
    Websites
    • Criador de Sites
    • e-Commerce
    • Blog
    • Fórum
    • Chat ao Vivo
    • e-Learning
    Cadeia de mantimentos
    • Inventário
    • Fabricação
    • PLM - Ciclo de Vida do Produto
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Funcionários
    • Recrutamento
    • Folgas
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Redes Sociais
    • Marketing por E-mail
    • Marketing por SMS
    • Eventos
    • Automação de Marketing
    • Pesquisas
    Serviços
    • Projeto
    • Planilhas de Horas
    • Serviço de Campo
    • Central de Ajuda
    • Planejamento
    • Compromissos
    Produtividade
    • Mensagens
    • Aprovações
    • Internet das Coisas
    • VoIP
    • Conhecimento
    • WhatsApp
    Aplicativos de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Varejo
    • Loja de livros
    • Loja de roupas
    • Loja de móveis
    • Mercearia
    • Loja de ferramentas
    • Loja de brinquedos
    Comida e hospitalidade
    • Bar e Pub
    • Restaurante
    • Fast Food
    • Hospedagem
    • Distribuidor de bebidas
    • Hotel
    Imóveis
    • Imobiliária
    • Escritório de arquitetura
    • Construção
    • Administração de propriedades
    • Jardinagem
    • Associação de proprietários de imóveis
    Consultoria
    • Escritório de Contabilidade
    • Parceiro Odoo
    • Agência de marketing
    • Escritório de advocacia
    • Aquisição de talentos
    • Auditoria e Certificação
    Fabricação
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Presentes corporativos
    Saúde e Boa forma
    • Clube esportivo
    • Loja de óculos
    • Academia
    • Profissionais de bem-estar
    • Farmácia
    • Salão de cabeleireiro
    Comércio
    • Handyman
    • Hardware e Suporte de TI
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência Ambiental
    • Aluguel de outdoors
    • Fotografia
    • Aluguel de bicicletas
    • Revendedor de software
    Navegar por todos os setores
  • Comunidade
    Aprenda
    • Tutoriais
    • Documentação
    • Certificações
    • Treinamento
    • Blog
    • Podcast
    Empodere a Educação
    • Programa de educação
    • Scale Up! Jogo de Negócios
    • Visite a Odoo
    Obtenha o Software
    • Baixar
    • Comparar edições
    • Releases
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Cadastre seu escritório contábil
    Obtenha os serviços
    • Encontre um parceiro
    • Encontre um Contador
    • Conheça um consultor
    • Serviços de Implementação
    • Referências de Clientes
    • Suporte
    • Upgrades
    Github YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Faça uma demonstração
  • Preços
  • Ajuda

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

  • CRM
  • e-Commerce
  • Financeiro
  • Inventário
  • PoS
  • Projeto
  • MRP
All apps
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
Ajuda

How can i give only one user a read permission in specific field without giving the whole model?

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
fieldsrightsOdoo 18
1 Responder
2599 Visualizações
Avatar
Anton

There's only one user that actually needs some read permission on fields. Now, without giving him the whole view or model of the module.


Like this one. We need to add the user to the 'Employees / Officer: Manage all employees' group to access that specific field. So, adding the user to that group got all the access on other HR modules.

0
Avatar
Cancelar
Avatar
Yatrik Chauhan
Melhor resposta

Hello Anton,

To grant a user read access to the hr.employee model, follow these steps:

  1. Create a new user group, such as Only Employee Access.
  2. Assign read permissions for the hr.employee model to this group.
  3. Add the specific user to this group.

Steps to Configure Read Access:

  • Navigate to Settings > Technical > Models.
  • Search for hr.employee and open its form view.
  • Go to the Access Rights tab.
  • Define the newly created group and grant it read access.

Now, any user assigned to this group will have read-only access to the hr.employee model. 
This method ensures that the user receives read access only to the hr.employee model without gaining access to other parts of the HR module.

Thanks
Yatrik Chauhan

0
Avatar
Cancelar
Anton
Autor

Here's the steps I followed from you.

-Goes to Settings > Technical > Models.
-Searched for hr.employee, hit enter, and opened
-Goes to Access Right tab.
-Added the group where the user added.
-Ticked read, write, and create.

But still it didn't work. Still getting the error in my post.

Yatrik Chauhan

Have you created a group in `res.groups`?

To create a group:
1. Go to **Settings > Users & Companies > Groups**.
2. Click Create and name the group "Only Employee Access".

Then, assign this group in the access rights and apply it to the specific user.

Have you tried this too?

Anton
Autor

Yes. The user is already in group with res.group external identifier.

Yatrik Chauhan

Hello Anton,

I tried to replicate the issue you're facing, but in my case, it seems that assigning the "'Employees / Officer: Manage all employees'" group to the user isn't necessary to access *hr.employee*. Odoo already provides read access to internal users through the *hr.employee.public* model.

If you could share a screenshot or a video of the problem, it would help us understand the issue more clearly.

Thanks!

Anton
Autor

Here's the video, sir: https://1drv.ms/v/c/d2f676abf9fef047/EZCWU3qHShRBrIaao2qJyb4BsUDcKILXxLlB73fRC_tHyw?e=Z9h4zW

Yatrik Chauhan

Hello,

Are users able to open any contacts, or are they encountering the same error?
- If the same error appears, it could be related to **Employee** access rights.
- If no error pops up for other contacts, the issue might be from the **code side**, possibly due to a customized module.

Thanks!

Anton
Autor

All the users can access contacts, and we are using Odoo Online. So, customization is impossible.

Yatrik Chauhan

Hello,
Please log in to your database using the admin account and follow these steps:
1. Go to Settings > Users.
2. Click on the username where you're encountering the error [in your video user name is Chique Montesa].
3. At the top, you'll see two important smart buttons: "Access Rights" and "Record Rules".

- First, click on "Access Rights", search for "hr.employee", and share a screenshot or video.
- Then, click on "Record Rules", search for "hr.employee", and share that screenshot as well.
This will help me better understand how the access rights have been configured.

Thanks!

Anton
Autor

I also tried duplicating 'Employees / Officer: Manage all employees' and inheriting the group.

Still getting errors.

Here's the link tho: https://1drv.ms/v/c/d2f676abf9fef047/EfOgg7NIxSVOrOdXV62Jwz4BgJNKeTKN7I4GoMtzFKUYjQ?e=8CVgGu

Yatrik Chauhan

Hello Anton,
I watched your video and didn’t notice any issues with the access rights. You can connect with me on Skype so I can take a closer look and identify the exact problem.
Here’s my Skype ID: live:yatrikc360_1
Thanks!

Está gostando da discussão? Não fique apenas lendo, participe!

Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!

Inscreva-se
Publicações relacionadas Respostas Visualizações Atividade
I cannot see custom field in lead form
fields
Avatar
Avatar
Avatar
2
dez. 25
3643
trying to match fields for products
fields
Avatar
Avatar
Avatar
2
dez. 25
227
How to Delete a Stale Project Folder?
Odoo 18
Avatar
Avatar
2
out. 25
957
Custom code: Value is empty in the list view when it is equal to 0
Odoo 18
Avatar
Avatar
1
jun. 25
2023
Help using Cloudflare as CDN for Odoo SaaS Resolvido
Odoo 18
Avatar
Avatar
1
jun. 25
3986
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Open Source
  • Baixar
  • Github
  • Runbot
  • Traduções
Serviços
  • Odoo.sh Hosting
  • Suporte
  • Upgrade
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um Contador
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • Nossa empresa
  • Ativos da marca
  • Contato
  • Empregos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidade
  • Segurança
الْعَرَبيّة 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 é um conjunto de aplicativos de negócios em código aberto que cobre todas as necessidades de sua empresa: CRM, comércio eletrônico, contabilidade, estoque, ponto de venda, gerenciamento de projetos, etc.

A proposta de valor exclusiva Odoo é ser, ao mesmo tempo, muito fácil de usar e totalmente integrado.

Site feito com

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