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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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...
its create_uid
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
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.