Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Employee object only editable for current logged employee

By
Stephane
on 3/8/13, 6:03 AM 1,063 views

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...

0

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3883
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 7/22/13, 3:41 AM

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>

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!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/8/13, 6:03 AM
Seen: 1063 times
Last updated: 3/16/15, 8:10 AM