Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4459 Widoki

Hi, i'm trying to write a python program that automatically imports a csv file to odoo. The csv file contains orders which are exported from magento.

What i am doing now is with the xmlrpc.client i can create a new record models.execute_kw(db, uid, password, 'sale.order', 'create', [{'company_id': "id something"}]). And this is an okay solution, it works but one order has links to multiple models. So this will result in multiple lines of code which seem kind of undue.

Now if i go to the web version of odoo and import a csv file it is correctly formatted in odoo in one click. This is way easier than targeting all the different models in python.

So my question is can i, in python, target quotations->import->validate->import to upload a csv file automatically?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
cze 23
2059
0
lip 19
4571
1
gru 18
4161
1
maj 15
3710
3
kwi 15
6169