Bem vindo!
This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
Specifying user groups in filters | definindo grupo de acesso para um filtro
seja o filtro em XML:
<search>
<group expand="0" string="Group By">
<filter context="{'group_by':'address'}" name="address"/>
</group>
</search>
O parâmetro groups não ira funcionar no XML diretamente, uma forma de aplicar restrição
de segurança é diretamente no modelo .py:
address = fields.Selection(
[('invoice', 'Invoice Address'),
('delivery', 'Shipping Address'),
('billing', 'Billing Address'),
('other', 'Other Address'),
('private', 'Private Address')], default='invoice', groups="base.group_hr_dept_manager")
Your Answer
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
Fique Informado
Sobre esta Comunidade
Moderation Tools
Ferramentas de Pergunta
Estatísticas
Perguntada: 19/01/23 20:27 |
Visto: 304 vezes |
Última atualização: 19/01/23 20:29 |