콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2541 화면

i inherit hr.employee module in my custom module. i want when user login it only show his profile page not other. how can i in odoo python ?

아바타
취소
베스트 답변

Hi

You can easily achieve this by adding a domain into the action, just follow the code given below,

<?xml version="1.0" encoding="UTF-8" ?>

<!--TO VIEW THE RECORD OF LOGGED USER-->

<odoo>

<data>

<record id="my_logs_action" model="ir.actions.act_window">

<field name="name">My Model</field>

<field name="type">ir.actions.act_window</field>

<field name="res_model">hr.employee</field>

<field name="view_mode">kanban,tree,form</field>

<field name="domain">[('user_id','=',uid)]</field>

</record>

</data>

</odoo>

Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
3
2월 25
3571
0
5월 24
46
1
4월 24
3360
4
9월 23
4859
2
9월 23
7089