mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 04:59:18 +00:00
[fix] company listing context
This commit is contained in:
@@ -135,7 +135,7 @@ def get_details(hub_sync_id=None, doctype='Hub Item'):
|
||||
connection = get_client_connection()
|
||||
details = connection.get_doc(doctype, hub_sync_id)
|
||||
reviews = details.get('reviews')
|
||||
if len(reviews):
|
||||
if reviews and len(reviews):
|
||||
for r in reviews:
|
||||
r.setdefault('pretty_date', frappe.utils.pretty_date(r.get('modified')))
|
||||
details.setdefault('reviews', reviews)
|
||||
|
||||
@@ -10,12 +10,10 @@ from frappe import _
|
||||
from erpnext.utilities.product import get_price, get_qty_in_stock
|
||||
from six import string_types
|
||||
|
||||
# hub_url = "https://hubmarket.org"
|
||||
hub_url = "http://159.89.175.122"
|
||||
hub_url = "https://hubmarket.org"
|
||||
# hub_url = "http://159.89.175.122"
|
||||
# hub_url = "http://erpnext.hub:8000"
|
||||
|
||||
# test_hub_url = "https://hubmarket.org"
|
||||
|
||||
class OAuth2Session():
|
||||
def __init__(self, headers):
|
||||
self.headers = headers
|
||||
|
||||
0
erpnext/hub_node/page/__init__.py
Normal file
0
erpnext/hub_node/page/__init__.py
Normal file
Reference in New Issue
Block a user