Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 15
8959
2
kvě 20
5827
1
úno 19
6806
0
led 19
5843
0
bře 15
5105