Odoo Help

0

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

By
khudrath
on 6/10/14, 2:12 AM 706 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.

Prakash
on 6/11/14, 3:52 AM
0

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...

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.

Register

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)

Stats

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