Welcome!
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!
Keep Informed
About This Community
Moderation Tools
Question tools
Stats
Asked: 1/19/23, 8:27 PM |
Seen: 302 times |
Last updated: 1/19/23, 8:29 PM |