Hello everyone,
I want to add a field in my sale order that displays all the states of stock_picking of this sale order which i name delivery_status
Eg: the order S00001 have two stock.picking WH/OUT/00001 which is done and WH/OUT/00002 waiting
delivery_status should display the values done and waiting as a many2many tags widget and i need to be able to group my sale orders according to this value
The only solution i can think of is to make the delivery_status field a computed text field and then i compute the values and display a text, but this method doesn't work for me when it comes to being able to group by the value or the display.
I can't use a related field because the state field is a selection field in stock.picking and related fields should have the same type so my related field in the sale.order should be a selection which only displays one value.
Does any one have an idea or faced a similar situation ?
Thank you very much