跳至内容
菜单
此问题已终结
2 回复
11967 查看

I want to import XML data related to orders into an Odoo setup. What's a good approach for this? Which addon dependencies do I need?

What does a method look like that reads the xml data from my source and converts it into orders into odoo? Is there documentation about this? I want to see the most minimal Odoo addon that adds some data to an installation.

形象
丢弃

What do you know about developing openerp modules themselves? Because if you know that, you are half-way through. Look into xml-parsers in python and use the ORM's "create" method on the records to turn them into sale orders. For scheduler examples (like Serpent is talking about) take a look at the current schedulers, for example the "Run mrp scheduler" from the MRP module.

最佳答案

Kasper,

You should make a method which reads the xml data from your source and converts them into orders into odoo.

This method should be mentioned into the scheduler which will be configured to run every hour. (menu is Settings/Technical/Scheduler/Scheduled Actions)

Thanks.

形象
丢弃
编写者

Cool. What does such a method look like?

You will write a method which will import orders to odoo. That name of method should be defined in the scheduler.

编写者 最佳答案

http://stackoverflow.com/questions/11493578/how-to-write-a-python-script-that-uses-the-openerp-orm-to-directly-upload-to-pos/11499665#11499665 looks promising

形象
丢弃
相关帖文 回复 查看 活动
2
5月 25
1227
4
5月 25
4895
1
8月 24
2191
1
2月 24
3022
3
10月 23
11043