Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4525 Widoki

Hi, I am looking for allowing employees to edit their own profile.

For example, an employee can see all others employees but he can't edit them. When he goes to his employee form he can update it.

Does someone know how to do this.

For the time being I use rules and an employee can edit its own profile but he can't see other employees anymore...

Awatar
Odrzuć
Najlepsza odpowiedź

make perm_read field in the rule as false like below

<field name="perm_read" eval="True" />

In my case:

I have a rule for showing all customers including senior citizens but cannot create, edit or delete records other than senior citizens.

    <record id="senior_citizen_rule_id" model="ir.rule">
        <field name="name">senior_citizen rule</field>
        <field name="model_id" ref="model_res_partner" />
        <field name="domain_force">[('age','>=',60)]</field>
        <field name="groups" eval="[(4, ref('bms.group_bms_senior_citizen'))]" />
        <field name="perm_read" eval="False" />
        <field name="perm_write" eval="True" />
        <field name="perm_unlink" eval="True" />
        <field name="perm_create" eval="True" />
    </record>
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
sty 24
38835
2
mar 15
5026
1
mar 15
5895
0
mar 15
4241
0
mar 15
3689