コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2447 ビュー

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
3331
0
5月 24
46
1
4月 24
3246
4
9月 23
4722
2
9月 23
6935