why?

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.6 kB
2
Indexable
Never
2022-03-23 18:25:12,807 42697 INFO develop_latest_new_db ZPL NetsuiteConnection ________.PurchaseOrder: :  QUANTITIES ARE = 10.0 
2022-03-23 18:25:12,807 42697 INFO develop_latest_new_db ZPL NetsuiteConnection ________.PurchaseOrder: :  QUANTITIES_RECEIVED ARE = 0.0 
2022-03-23 18:25:12,807 42697 INFO develop_latest_new_db ZPL NetsuiteConnection ________.PurchaseOrder: :  line is = 1 
2022-03-23 18:25:12,807 42697 INFO develop_latest_new_db ZPL NetsuiteConnection ________.PurchaseOrder: : json payload: {"tranDate": "2022-03-23 18:25:12.243898", "createdfrom": "1672496", "item": {"items": [{"orderline": 1, "quantity": 2.0, "itemReceive": true}]}} 
2022-03-23 18:25:13,485 42697 INFO ? werkzeug: 71.204.170.196 - - [23/Mar/2022 18:25:13] "GET /web/static/src/img/spin.png HTTP/1.1" 304 - - - -
2022-03-23 18:25:14,507 42697 INFO develop_latest_new_db ZPL NetsuiteConnection ________.PurchaseOrder: : status: 204 
2022-03-23 18:25:14,508 42697 INFO develop_latest_new_db odoo.addons.zip_purchase_order.models.stock_picking: response is ___: <Response [204]> 
2022-03-23 18:25:14,508 42697 ERROR develop_latest_new_db odoo.http: Exception during JSON request handling. 
Traceback (most recent call last):
  File "/opt/odoo/odoo-13.0+e.20191114/odoo/tools/safe_eval.py", line 349, in safe_eval
    return unsafe_eval(c, globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/home/khyati/opt/zipline/hardware_info_systems/Odoo/customaddons/zip_purchase_order/models/stock_picking.py", line 79, in send_receipts_to_netsuite
    if response['status'] == 200:
TypeError: 'Response' object is not subscriptable