Hello Niels Huylebroeck,

I think yes you are right. not only checking backorder id but also with invoice 
state of backorder id.
something like : 

        if partial.picking_id.backorder_id and 
partial.picking_id.backorder_id.invoice_state == '2binvoiced':
            partial_picking_id=partial.picking_id.backorder_id.id
        else:
          partial_picking_id=partial.picking_id.id
Thanks



-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1092211-sejal/+merge/151180
Your team OpenERP Community is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1092211-sejal.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp

Reply via email to