Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
13 kB
3
Indexable
Never
2022-02-18 05:43:43,382 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: : found purchase order with po_number: P00023BEN
2022-02-18 05:43:43,385 7 INFO new Purchase_Order:___ : picking id: 48, purchase line id: 43
2022-02-18 05:43:43,416 7 INFO new Purchase_Order:___ : stock_move_data: [{'id': 93, 'purchase_line_id': (43, '[01107-001] MOTOR, POD, CONNECTOR TUB'), 'state': 'confirmed', 'product_id': (58, '[01107-001] MOTOR, POD, CONNECTOR TUB'), 'quantity_done': 0.0, 'location_dest_id': (8, 'WH/Stock')}]
2022-02-18 05:43:43,419 7 INFO new Purchase_Order:___ : picking id: 48, purchase line id: 44
2022-02-18 05:43:43,444 7 INFO new Purchase_Order:___ : stock_move_data: [{'id': 92, 'purchase_line_id': (44, '[Prototyping and Supplies - Hardware] Prototyping and Supplies - Hardware'), 'state': 'confirmed', 'product_id': (61, '[Prototyping and Supplies - Hardware] Prototyping and Supplies - Hardware'), 'quantity_done': 0.0, 'location_dest_id': (8, 'WH/Stock')}]
2022-02-18 05:43:43,446 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: :


2022-02-18 05:43:43,448 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: : receive purchase order ___
2022-02-18 05:43:43,450 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: : netsuite payload: {'terms_name': False, 'purchaser': 'Benson Kwek', 'creater': 'Benson Kwek', 'department': '9', 'requester': False, 'shipping_method': False, 'currency': 'USD', 'po_type_id': 1, 'po_type_name': 'Generic', 'vendor_name': 'Tipalti Test', 'vendor_id': '558336', 'po_number': 'P00023BEN', 'id': 23, 'date_order': '2022-02-18T03:19:12', 'line_items': [{'id': 43, 'qty': 10.0, '_is_closed': False, 'price_unit': 0.0, 'type': 'product', 'barcode': '01107-001', 'part_name': 'MOTOR, POD, CONNECTOR TUB', 'netsuite_id': '7718', 'qty_received': 0.0}, {'id': 44, 'qty': 100.0, '_is_closed': False, 'price_unit': 0.0, 'type': 'consu', 'barcode': 'Prototyping and Supplies - Hardware', 'part_name': 'Prototyping and Supplies - Hardware', 'netsuite_id': '288532', 'qty_received': 0.0}]}
2022-02-18 05:43:43,451 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: : po: {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseOrder?q=tranId+IS+%22P00023BEN%22'}], 'count': 1, 'hasMore': False, 'items': [{'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseorder/1668993'}], 'id': '1668993'}], 'offset': 0, 'totalResults': 1}
2022-02-18 05:43:43,453 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: : Get purchase order line items
2022-02-18 05:43:43,454 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: : po_id: 1668993
2022-02-18 05:43:43,585 7 INFO ? werkzeug: 172.19.0.1 - - [18/Feb/2022 05:43:43] "GET /web/static/src/img/spin.png HTTP/1.1" 304 - - - -
2022-02-18 05:43:44,404 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: : status: 200
2022-02-18 05:43:44,406 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: : netsuite_po_line_items = [{'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseorder/1668993/item/1'}], 'amount': 0.0, 'custcol5': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/customlist218/26'}], 'id': '26', 'refName': 'General (Not Engineering)'}, 'custcol_statistical_value_base_curr': 0.0, 'custcol_zl_item_numb_po': '01107-001', 'department': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/department/9'}], 'id': '9', 'refName': 'Go-to-market'}, 'description': 'MOTOR, POD, CONNECTOR TUB', 'inventoryDetail': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseorder/1668993/item/1/inventoryDetail'}], 'inventoryassignment': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseorder/1668993/item/1/inventoryDetail/inventoryassignment'}], 'items': [], 'totalResults': 0}}, 'isBillable': False, 'isClosed': False, 'isOpen': True, 'item': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/inventoryitem/7718'}], 'id': '7718', 'refName': '01107-001'}, 'itemType': {'id': 'InvtPart', 'refName': 'InvtPart'}, 'leadTime': 10, 'line': 1, 'linked': True, 'location': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/location/14'}], 'id': '14', 'refName': 'US-Aviary-Facility (INC)'}, 'marginal': False, 'matchBillToReceipt': False, 'printItems': False, 'quantity': 10.0, 'quantityBilled': 0.0, 'quantityReceived': 5.0, 'rate': 0.0}, {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseorder/1668993/item/2'}], 'amount': 0.0, 'custcol5': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/customlist218/26'}], 'id': '26', 'refName': 'General (Not Engineering)'}, 'custcol_soap_alt_gl_accnt': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/account/735'}], 'id': '735', 'refName': '6115 Research and Development Expenses : Expensed R&D Supplies (excl. prototypes)'}, 'custcol_statistical_value_base_curr': 0.0, 'department': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/department/9'}], 'id': '9', 'refName': 'Go-to-market'}, 'description': 'Prototyping and Supplies - Hardware', 'inventoryDetail': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseorder/1668993/item/2/inventoryDetail'}], 'inventoryassignment': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseorder/1668993/item/2/inventoryDetail/inventoryassignment'}], 'items': [], 'totalResults': 0}}, 'isBillable': False, 'isClosed': False, 'isOpen': True, 'item': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/inventoryitem/288532'}], 'id': '288532', 'refName': 'Prototyping and Supplies - Hardware'}, 'itemType': {'id': 'InvtPart', 'refName': 'InvtPart'}, 'leadTime': 30, 'line': 2, 'linked': True, 'location': {'links': [{'rel': 'self', 'href': 'https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/location/14'}], 'id': '14', 'refName': 'US-Aviary-Facility (INC)'}, 'marginal': False, 'matchBillToReceipt': False, 'printItems': False, 'quantity': 100.0, 'quantityBilled': 0.0, 'quantityReceived': 50.0, 'rate': 0.0}]
2022-02-18 05:43:44,409 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: :  QUANTITIES ARE = 10.0
2022-02-18 05:43:44,412 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: :  QUANTITIES_RECEIVED ARE = 5.0
2022-02-18 05:43:44,414 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: :  line is = 1
2022-02-18 05:43:44,416 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: :  QUANTITIES ARE = 100.0
2022-02-18 05:43:44,418 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: :  QUANTITIES_RECEIVED ARE = 50.0
2022-02-18 05:43:44,419 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: :  line is = 2
2022-02-18 05:43:44,422 7 INFO new ZPL NetsuiteConnection ________.PurchaseOrder: : json payload: {"tranDate": "2022-02-18 05:43:43.453117", "createdfrom": "1668993", "item": {"items": [{"orderline": 1, "itemReceive": false}, {"orderline": 2, "itemReceive": false}]}}
2022-02-18 05:43:45,373 7 ERROR new ZPL NetsuiteConnection ________.PurchaseOrder: : error processing purchase order receipt: 400 Client Error: Bad Request for url: https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseOrder/1668993/!transform/itemreceipt, response error: {'type': 'https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1', 'title': 'Bad Request', 'status': 400, 'o:errorDetails': [{'detail': 'Error while accessing a resource. You must enter at least one line item for this transaction.', 'o:errorCode': 'USER_ERROR'}]}
2022-02-18 05:43:45,386 7 ERROR new ZPL NetsuiteConnection ________.PurchaseOrder: : Traceback (most recent call last):
  File "/opt/odoo/customaddons/Zipline-Odoo/odoo/customaddons/zip_common_utils/api/netsuite/services/purchase_order.py", line 276, in receive
    response.raise_for_status()
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseOrder/1668993/!transform/itemreceipt

2022-02-18 05:43:45,388 7 ERROR new odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/opt/odoo/customaddons/Zipline-Odoo/odoo/customaddons/zip_common_utils/api/netsuite/services/purchase_order.py", line 276, in receive
    response.raise_for_status()
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseOrder/1668993/!transform/itemreceipt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/http.py", line 619, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo/odoo/http.py", line 309, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo/odoo/odoo/tools/pycompat.py", line 14, in reraise
    raise value
  File "/opt/odoo/odoo/odoo/http.py", line 664, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo/odoo/http.py", line 345, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/service/model.py", line 93, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/http.py", line 338, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/odoo/odoo/http.py", line 909, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo/odoo/http.py", line 510, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 1323, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 1311, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/odoo/odoo/api.py", line 395, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo/odoo/odoo/api.py", line 382, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/odoo/addons/stock/wizard/stock_backorder_confirmation.py", line 28, in process
    self._process()
  File "/opt/odoo/odoo/addons/stock/wizard/stock_backorder_confirmation.py", line 25, in _process
    confirmation.pick_ids.with_context(cancel_backorder=cancel_backorder).action_done()
  File "/opt/odoo/customaddons/Zipline-Odoo/odoo/customaddons/zipline_material_consumption/models/stock_picking.py", line 37, in action_done
    res = super(StockPicking, self).action_done()
  File "/opt/odoo/customaddons/Zipline-Odoo/odoo/customaddons/zip_stock_putaway/models/stock_picking.py", line 52, in action_done
    rec = super(StockPicking, self).action_done()
  File "/opt/odoo/customaddons/Zipline-Odoo/odoo/customaddons/zip_purchase_order/models/purchase_order.py", line 765, in action_done
    purchase_id.receive_items(picking_id)
  File "/opt/odoo/customaddons/Zipline-Odoo/odoo/customaddons/zip_purchase_order/models/purchase_order.py", line 272, in receive_items
    net_con.purchase_order.receive(data, po)
  File "/opt/odoo/customaddons/Zipline-Odoo/odoo/customaddons/zip_common_utils/api/netsuite/services/purchase_order.py", line 283, in receive
    raise ValueError(error, response_error)
ValueError: (HTTPError('400 Client Error: Bad Request for url: https://3606935-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseOrder/1668993/!transform/itemreceipt'), {'type': 'https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1', 'title': 'Bad Request', 'status': 400, 'o:errorDetails': [{'detail': 'Error while accessing a resource. You must enter at least one line item for this transaction.', 'o:errorCode': 'USER_ERROR'}]})