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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 8 22
|
4003 | ||
|
1
thg 8 23
|
2741 | ||
|
1
thg 10 22
|
6996 | ||
|
0
thg 7 22
|
2657 | ||
|
1
thg 2 22
|
5173 |
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()'