Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I want to get the Manager id of the current Logged in user in OpenERP.
I also need how to develop Serial number generator like HTK-001,HTK-002 etc for each row in a table.
Thanks in advance for your valuable help.
For the first you can try something like that (in python) :
users = self.pool.get('res.users').browse(cr, uid, uid) manager_id = users.default_section_id.user_id.id
For the second, you can take a look on the sequence system already in use in OpenERP (Configuration > Technical > Sequence and Id > Sequences) and add your own.
Both items needs more flushing out to give you a good answer but:
You can use the uid passed to a function to get any other information associated with the user that you need.
This can be done with serial numbers, you can enable them in settings > User > Access Rights > Manage Serial Numbers and then enable them in the product Sales > Products > click on a product or add a new one > inventory tab > Track manufacturing lots.
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
|Asked: 8/27/13, 5:22 AM|
|Seen: 2296 times|
|Last updated: 3/16/15, 8:10 AM|