Odoo Help

Welcome!

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

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

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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