P03665 - 102864

mail@pastecode.io avatar
unknown
plain_text
2 years ago
11 kB
0
Indexable
Never
2022-04-06 20:39:58,562 23886 INFO Production ZPL NetsuiteConnection ________: Initializing Class: NetsuiteConnection 
2022-04-06 20:39:58,562 23886 INFO Production ZPL NetsuiteConnection ________.NonInventoryPurchaseItem: : 

 
2022-04-06 20:39:58,562 23886 INFO Production ZPL NetsuiteConnection ________.NonInventoryPurchaseItem: : Initialized Class: NonInventoryPurchaseItem 
2022-04-06 20:39:58,562 23886 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : 

 
2022-04-06 20:39:58,562 23886 INFO Production ZPL NetsuiteConnection ________.InventoryItem: : Initialized Class: InventoryItem 
2022-04-06 20:39:58,562 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : 

 
2022-04-06 20:39:58,562 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : Initialized Class: PurchaseOrder 
2022-04-06 20:39:58,562 23886 INFO Production ZPL NetsuiteConnection ________.AssemblyItem: : 

 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.AssemblyItem: : Initialized Class: AssemblyItem 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.Employee: : 

 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.Employee: : Initialized Class: Employee 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.Vendor: : Initialized Class: Vendor 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.Term: : 

 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.Term: : Initialized Class: Term 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.Currency: : 

 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.Currency: : Initialized Class: Currency 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : 

 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : Check if item exists in Netsuite ____ 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : po_number: P03665 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : 

 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : Get item by transaction Id ____ 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : tranId: P03665 
2022-04-06 20:39:58,563 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : params: {'q': 'tranId IS "P03665"'} 
2022-04-06 20:39:58,898 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : status: 200 
2022-04-06 20:39:58,898 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : result count: 1 
2022-04-06 20:39:58,899 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : found purchase order with po_number: P03665 
2022-04-06 20:39:58,899 23886 INFO Production Purchase_Order:___ : picking id: 102864, purchase line id: 16715 
2022-04-06 20:39:58,904 23886 INFO Production Purchase_Order:___ : stock_move_data: [{'id': 846942, 'purchase_line_id': (16715, '[09634-000] SPARROW, WING, CENTER, BONDED STRUCTURE'), 'state': 'done', 'product_id': (1018, '[09634-000] SPARROW, WING, CENTER, BONDED STRUCTURE'), 'quantity_done': 5.0, 'location_dest_id': (3573, 'AVRY/Input')}] 
2022-04-06 20:39:58,905 23886 INFO Production Purchase_Order:___ : uom_ratio: 1.0 
2022-04-06 20:39:58,906 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : 

 
2022-04-06 20:39:58,906 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : receive purchase order ___ 
2022-04-06 20:39:58,906 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : netsuite payload: {'terms_name': False, 'purchaser_id': False, 'purchaser_email': 'Kyle.Hickey@flyzipline.com', 'creater_id': False, 'department': '15', 'requester': 'Kyle Hickey', 'requester_email': 'kyle.hickey@flyzipline.com', 'requester_name': 'Kyle Hickey', 'shipping_method': '69', 'currency': 'USD', 'project': False, 'empl_requester': 706865, 'requester_employee_id': 1788, 'odoo_department': 15, 'team': 0, 'creator_empl': 0, 'purchaser_empl': 0, 'creator_email': 'Kyle.Hickey@flyzipline.com', 'po_type_id': 4, 'po_type_name': 'Discrete Production PO', 'vendor_name': 'SMI Composites', 'vendor_id': '585433', 'po_number': 'P03665', 'id': 5382, 'date_order': '2021-12-06T20:15:59', 'line_items': [{'id': 16715, 'qty': 150.0, '_is_closed': False, 'price_unit': 75.43, 'type': 'product', 'barcode': '09634-000', 'part_name': 'SPARROW, WING, CENTER, BONDED STRUCTURE', 'netsuite_id': '170131', 'qty_received': 5.0}]} 
2022-04-06 20:39:58,906 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : po: {'links': [{'rel': 'self', 'href': 'https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseOrder?q=tranId+IS+%22P03665%22'}], 'count': 1, 'hasMore': False, 'items': [{'links': [{'rel': 'self', 'href': 'https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseorder/1579506'}], 'id': '1579506'}], 'offset': 0, 'totalResults': 1} 
2022-04-06 20:39:58,906 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : Get purchase order line items 
2022-04-06 20:39:58,906 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : po_id: 1579506 
2022-04-06 20:39:59,052 23633 INFO Production werkzeug: 172.18.1.29 - - [06/Apr/2022 20:39:59] "POST /web/dataset/call_kw/stock.location/name_search HTTP/1.0" 200 - 19 0.015 0.006
2022-04-06 20:39:59,255 23736 INFO Production werkzeug: 152.44.135.26 - - [06/Apr/2022 20:39:59] "POST /web/dataset/call_kw/mrp.workorder/read HTTP/1.0" 200 - 230 1.046 0.167
2022-04-06 20:39:59,310 23901 INFO Production werkzeug: 172.18.1.29 - - [06/Apr/2022 20:39:59] "POST /web/dataset/call_kw/stock.location/name_search HTTP/1.0" 200 - 6 0.007 0.005
2022-04-06 20:39:59,312 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : status: 200 
2022-04-06 20:39:59,312 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : netsuite_po_line_items = [{'links': [{'rel': 'self', 'href': 'https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseorder/1579506/item/1'}], 'amount': 11314.5, 'custcol5': {'links': [{'rel': 'self', 'href': 'https://3606935.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.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.suitetalk.api.netsuite.com/services/rest/record/v1/department/15'}], 'id': '15', 'refName': 'Operations'}, 'description': 'SPARROW, WING, CENTER, BONDED STRUCTURE', 'inventoryDetail': {'links': [{'rel': 'self', 'href': 'https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseorder/1579506/item/1/inventoryDetail'}], 'inventoryassignment': {'links': [{'rel': 'self', 'href': 'https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseorder/1579506/item/1/inventoryDetail/inventoryassignment'}], 'items': [], 'totalResults': 0}}, 'isBillable': False, 'isClosed': False, 'isOpen': True, 'item': {'links': [{'rel': 'self', 'href': 'https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/inventoryitem/273129'}], 'id': '273129', 'refName': '09634-000'}, 'itemType': {'id': 'InvtPart', 'refName': 'InvtPart'}, 'leadTime': 24, 'line': 1, 'linked': True, 'location': {'links': [{'rel': 'self', 'href': 'https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/location/14'}], 'id': '14', 'refName': 'US-Aviary-Facility (INC)'}, 'marginal': False, 'matchBillToReceipt': False, 'printItems': False, 'quantity': 150.0, 'quantityBilled': 0.0, 'quantityReceived': 150.0, 'rate': 75.43}] 
2022-04-06 20:39:59,312 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: :  QUANTITIES ARE = 150.0 
2022-04-06 20:39:59,312 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: :  QUANTITIES_RECEIVED ARE = 150.0 
2022-04-06 20:39:59,312 23886 INFO Production ZPL NetsuiteConnection ________.PurchaseOrder: : json payload: {"tranDate": "2022-04-06 20:39:58.906257", "createdfrom": "1579506", "item": {"items": []}} 
2022-04-06 20:39:59,488 23886 ERROR Production ZPL NetsuiteConnection ________.PurchaseOrder: : error processing purchase order receipt: 400 Client Error: Bad Request for url: https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseOrder/1579506/!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 can not initialize itemreceipt: invalid reference 1579506.', 'o:errorCode': 'USER_ERROR'}]} 
2022-04-06 20:39:59,488 23886 ERROR Production ZPL NetsuiteConnection ________.PurchaseOrder: : Traceback (most recent call last):
  File "/var/lib/odoo/custom/addons/zip_common_utils/api/netsuite/services/purchase_order.py", line 276, in receive
    response.raise_for_status()
  File "/usr/local/lib/python3.6/dist-packages/requests/models.py", line 953, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://3606935.suitetalk.api.netsuite.com/services/rest/record/v1/purchaseOrder/1579506/!transform/itemreceipt
 
2022-04-06 20:39:59,489 23886 INFO Production odoo.addons.zip_purchase_order.models.stock_picking: response is ___: {'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 can not initialize itemreceipt: invalid reference 1579506.', 'o:errorCode': 'USER_ERROR'}]} 
2022-04-06 20:39:59,489 23886 ERROR Production odoo.addons.zip_purchase_order.models.stock_picking: NS receipt error: 'dict' object has no attribute 'raise_for_status', 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 can not initialize itemreceipt: invalid reference 1579506.', 'o:errorCode': 'USER_ERROR'}]}