Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2234 มุมมอง

How create a dictionary data geting from an API with Rabbit mq in odoo.

I got data and I can displaye the data using print in the terminal but if pass obj.create(data) I got an error

data is a dictionnary decoding from json format

อวตาร
ละทิ้ง
ผู้เขียน

see my data dictionnary getting from api using rabbitmq :
data = {"employee_id": 25408, "salary_rule_id": 416, "amount": 150000.0, "company_id": 1, "ref": false, "date_from": "06/06/2023", "date_to": "06/30/2023"}

ผู้เขียน

see my error in odoo when excecute cron : ValueError: <class 'ValueError'>: "dictionary update sequence element #0 has length 1; 2 is required" while evaluating
'model.api()'

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 22
4018
1
ส.ค. 23
2754
1
ต.ค. 22
7015
0
ก.ค. 22
2664
1
ก.พ. 22
5188