Odoo Help


My requirement is to get the current login user id in the XMl and have to use in the attr

on 6/10/14, 2:12 AM 670 views

My requirement is to get the current login  user id in the XMl and have to use in the attr 

>> user id must get will while create and edit also

create current_uid field and set default value as current user login in python file. In write method update uid field equal to write_uid. In xml file add and use the attr tag.

on 6/11/14, 3:52 AM

Hi, You may use here 2 magical fields provided by openerp,

createa_uid and write_uid,

just declare it in .py then use it any where,

let me know if you got any problen...

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 6/10/14, 2:12 AM
Seen: 670 times
Last updated: 3/16/15, 8:10 AM