Demo entry 4085531

print "hello"

   

Submitted by anonymous on Mar 18, 2016 at 07:06
Language: Python. Code size: 245 Bytes.

    @api.depends('picking_ids', 'picking_ids.state')
    def _compute_shipped(self):
        for order in self:
            if order.picking_ids and all([x.state == 'done' for x in order.picking_ids]):
                order.is_shipped = True

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).