diff --git a/erpnext/demo/user/hr.py b/erpnext/demo/user/hr.py index fb38db93d0..e18a123ec4 100644 --- a/erpnext/demo/user/hr.py +++ b/erpnext/demo/user/hr.py @@ -118,6 +118,7 @@ def make_timesheet_records(): employees = get_timesheet_based_salary_slip_employee() for e in employees: ts = make_timesheet(e.employee, simulate = True, billable = 1, activity_type=get_random("Activity Type")) + frappe.db.commit() rand = random.random() if rand >= 0.3: @@ -137,7 +138,8 @@ def make_sales_invoice_for_timesheet(name): sales_invoice = make_sales_invoice(name) sales_invoice.customer = get_random("Customer") sales_invoice.append('items', { - 'item_code': get_random("Item", {"has_variants": 0, "is_stock_item": 0, "is_fixed_asset": 0}), + 'item_code': get_random("Item", {"has_variants": 0, "is_stock_item": 0, + "is_fixed_asset": 0}), 'qty': 1, 'rate': 1000 }) diff --git a/erpnext/setup/doctype/sales_partner/sales_partner.js b/erpnext/setup/doctype/sales_partner/sales_partner.js index df8d23f7af..1bfba98b27 100644 --- a/erpnext/setup/doctype/sales_partner/sales_partner.js +++ b/erpnext/setup/doctype/sales_partner/sales_partner.js @@ -5,7 +5,7 @@ frappe.ui.form.on('Sales Partner', { refresh: function(frm) { frappe.dynamic_link = {doc: frm.doc, fieldname: 'name', doctype: 'Sales Person'} - if(doc.__islocal){ + if(frm.doc.__islocal){ hide_field(['address_html', 'contact_html']); erpnext.utils.clear_address_and_contact(frm); } diff --git a/erpnext/templates/pages/task_info.html b/erpnext/templates/pages/task_info.html index 7cc5594aed..f386ce891a 100644 --- a/erpnext/templates/pages/task_info.html +++ b/erpnext/templates/pages/task_info.html @@ -86,7 +86,8 @@
{{comment.sender_full_name}} : {{comment.subject}} on {{comment.communication_date.strftime('%Y-%m-%d')}}
+{{comment.sender_full_name}}: + {{comment.subject}} on {{comment.creation.strftime('%Y-%m-%d')}}
{% endfor %}