On 05 Feb 13:17, Nick Hall wrote: > Thank you. I figured out how to run the picking list report like you > suggested. I've been looking at the report syntax, I modified it to be > conceptually like: > > <for each="shipment in objects"> > <for each="move in moves[shipment.id]"> > > Product Code: <move.product.rec_name> > Order #: <shipment.code> > (other stuff) > > </for> > </for> > > This works but is of course sorted by shipment still. I would like a > similar report but sorted by product code instead. I'm trying to figure out > if this is possible by changing the report. Since the move object is > contained within the shipment, it would seem like I would need to save the > results to an array and then do a different sort and output the result. Is > this possible with the report syntax,
It is probably possible but it will be complicate and so not really recommanded. > or do I need to modify > shipment.py::PickingList in order to do this (I realize for practical > purposes I would create a new module or something, I'm just getting a feel > for Tryton's code at this time to see how easily I can change things)? Yes you can but of course the best is to extend or duplicate the report from a custom module. -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
