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.
Our warehouse picks from the Delivery order, in order to make their lives a whole lot easier the product listings should be in a consistent order. What is the best way to sort a delivery order move_line list. The intent is to sort according to code. I attempted to add a python sorted() in the repeatIn but it seems it's not available. Any other ideas?
Create a custom module or use an existing one and include the following code:
class stock_move( osv.osv ): _inherit = "stock.move" _order = 'field_name' stock_move()
field_name : the field you want to sort the lines by.
Note: You can use
_order = 'field_name desc' if you want to change the sort direction.
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: 10/11/13, 12:40 PM|
|Seen: 1240 times|
|Last updated: 3/16/15, 8:10 AM|