openerp - Way to get specific user's ID -


there self-made timesheet module. using few digital signatures (tableman, division boss, accountants , on) sign timesheets. users respective roles can see timesheets of specific states (unsigned, signed, signed division boss , on).

as now, accountants making timesheets tablemen, went on vacation. due restriction rules, after returning, tablemen can't see timesheets of divisions, made accountants.

is there way id of specific user? can add accountant's id domain_force make timesheets visible respective division's tablemen. know, admin's id = 0, rest?

that's how looks now:

<record id="inf3" model="ir.rule">         <field name="name">tableman can 'unsigned' documents, made himself or admin (0)</field>         <field name="model_id" ref="model_tabel_tabel"/>         <field name="groups" eval="[(4, ref('tabel_inf_division'))]"/>         <field name="perm_read" eval="1"/>         <field name="perm_write" eval="1"/>         <field name="perm_create" eval="1"/>         <field name="perm_unlink" eval="1"/>         <field name="domain_force">             [('state','not in',['signed','signed2','done']),('create_uid' ,'in',[user.id,0])]         </field>     </record> 


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -