コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2216 ビュー

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()'

関連投稿 返信 ビュー 活動
2
8月 22
4015
1
8月 23
2750
1
10月 22
7009
0
7月 22
2663
1
2月 22
5182