hi -
I am able to get a list of current orders via XML-RPC using the sales.order and search.read function
is there any way of returning the extended order information including the order shipping address ?
many thanks
Danny Green
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hi -
I am able to get a list of current orders via XML-RPC using the sales.order and search.read function
is there any way of returning the extended order information including the order shipping address ?
many thanks
Danny Green
Hi,
You can make a XML-RPC Call on a python function called for exemple get_orders(self)
in this function you search for all orders you want. ( you may want only orders that satisfy some conditions ).
then if you have a positive result, you loop on them like this :
for order in orders :
adrress = self._get_order_infos(order)
print order, adress
return True
Then in get_order_infos(self, order):
// if u only want shipping address:
return order.shipping_addre_field // you may need to check the relation between the models to get the adress
// if you need to get other infos, you better create a list to return.
Hope this helps.
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
2
فبراير 24
|
5230 | ||
|
2
سبتمبر 21
|
3102 | ||
|
3
يوليو 25
|
2745 | ||
|
3
فبراير 25
|
1768 | ||
|
1
ديسمبر 24
|
1979 |