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.
In this below image you can check i have created two class efficiency and test ,in efficiency class there is one field called start_time so i need this field to display the minimum value of all record in start field ,which is present in test class.for this i am writing one function can anyone help,how i should get minimum value of start field and displayed into my start_time field which is present in another model.
An alternative solution. You may try like this:
recs = self.env['test.line'].search()
recs_sorted = recs.sorted(key=lambda r: r.start)
start_time = fields.Many2one('test.line',string="Start Time", default=_get_min_test)
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/16, 3:10 AM|
|Seen: 822 times|
|Last updated: 1/29/17, 11:06 PM|