跳至內容
選單
此問題已被標幟
5016 瀏覽次數

Hi,

I'm having popup wizard from "More" Button to do perform Bulk Create. Now i want to hide this Action Window based on login user and I'll achieve this by using fields_view_get Method.

I'm tried to change group in fields_view_get method. But No solutions?

Any possible to achieve this?

Sample Code

<record id="action_approve_disapprove_customers" model="ir.actions.act_window">
        <field name="name">Approve/Reject</field>
        <field name="res_model">partner.approve</field>
        <field name="view_type">form</field>
        <field name="view_mode">form</field>
        <field name="view_id" ref="view_customers"/>
        <field name="target">new</field>
        <field name="groups_id" eval="[(6, 0, [ref('group_manager')])]"/>
        <field name="binding_model_id" ref="base.model_res_partner" />
</record>

Need to Change group_manger based on login User  

Thanks.


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
6月 20
4216
1
3月 15
5270
4
6月 22
6479
2
6月 20
3628
3
1月 24
8918