Hello Jean-Christophe VASSORT,

Thanks for reviewing the branch,

I didn't use the address_get() because it doesn't work according to our 
criteria,

Our criteria of filling address field of stock.picking object was, if there is 
no destination_address(of PO) and there isn't any address specified for 
warehouse(partner_address_id of obj stock.warehouse) then we should consider 
the shipping address of the company and if still it is not the case then the 
default address of the company should be considered otherwise set it to blank.

address_get() will not behave as described above if there isn't any shipping or 
default address specified for the company but has address other then these 
types, in this scenario address_get() will fill the address with 1st address 
found for particular company.

If a company has 2 addresses(default, shipping) defined in this sequence, using 
address_get will not check further for shipping address as it already got the 
default address.

So, for these reasons I didn't use address_get, Correct me if I am missing 
anything,

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-381630-rgo/+merge/90042
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-381630-rgo.

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

Reply via email to