Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5489 มุมมอง

Hi,

I have an action for a menuitem:

<act_window id="....." name="..." res_model="my_model" domain="[('submitter_id', '=', uid)]"/> 

I created multiple users and logged in as different user but I always get the same records, for uid = id of the admin.

What is happening here?


อวตาร
ละทิ้ง

Same issue here. Did you solve it?

I can also confirm this issue. It also happens when you get the object create_uid. In my case, I wanted to get the user who is sending an email such as a quotation or an invoice. The work around in that case was to use a search in partners using another field (partner_id) which is a key for res.partner. users partner_id = email author_id. You could probably figure such a work around for you.

Related Posts ตอบกลับ มุมมอง กิจกรรม
Odoo9: Dynamic Domain in Window Action แก้ไขแล้ว
5
พ.ย. 16
6932
1
เม.ย. 18
8066
0
ต.ค. 23
1789
Dynamic res_id in action แก้ไขแล้ว
2
มิ.ย. 21
8807
1
เม.ย. 18
13420