Hello, I am using odoo v14.
 
I'm trying to apply a dynamic domain to a view displayed by
a menuitem.menuitem can only trigger window action, but window actions can't
have dynamic domain.How can i user server action with menuitem please .for my
domain i'm trying to access my current user( uid) attributes ( like name,
company_id,..).
Thanks in advance  :)
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
I think, you should call custom method from your model, which will return nessesary view. In custom method you can get access to fields you need. For example:
Leave Filter
          code
action = env.get('hr.holidays').leave_filter_act()
More info here: https://www.odoo.com/ru_RU/forum/pomoshch-1/how-to-call-ir-actions-act-window-from-python-to-menuitem-142855
See:  How To Call Python Function From Menu Item in Odoo
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|  | 1 พ.ย. 23  | 3227 | ||
| 
            
                How does Odoo's action manager work?
            
            
                    แก้ไขแล้ว
            
         |  | 1 เม.ย. 23  | 3797 | |
|  | 3 มี.ค. 22  | 10008 | ||
|  | 1 ธ.ค. 21  | 4563 | ||
|  | 1 ม.ค. 20  | 4908 | 
