Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

Hi guys,

I added a followers on Work Centers in Manufacturing module. Every work centers have different followers or one work center has many followers.  I want to filter kanban view on Work centers. For example , the admin can see every work centers and admin can add followers on work center but the other user cannot. And every user can only see own work center that permit by admin.


This below code I added just kanban view to see :

<record id="view_workcenter_follow_kanban" model="ir.ui.view">

<field name="name">workcenter.follow.kanban</field>

<field name="model">mrp.workcenter</field>            

<field name="inherit_id" ref="mrp.mrp_workcenter_kanban"/>

<field name="arch" type="xml">

<xpath expr="//div[@t-if='record.oee.raw_value &gt; 0']" position="inside"> 

<label for="message_follower_ids" invisible="1"/>                    

<div class="o_row"> 

<field name="message_follower_ids" widget="mail_followers" invisible="1" />

</div> 

</xpath>

</field>                    

</record>


By the way I added the followers in mrp_workcenter_view it works the admin can add a followers :

<xpath expr="/form/sheet" position="after">

<div class="oe_chatter">

<field name="message_follower_ids" widget="mail_followers" />                        

<field name="message_ids" widget="mail_thread" />                    

</div>                

</xpath>



How can I filter this kanban view by user id ? Every user can only see own work center which is permitted by admin ? Can you help me ? Thanks.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 15
8953
2
maj 20
5816
1
lut 19
6797
0
sty 19
5837
0
mar 15
5096