Well the thing is that I asked how to print a ticket with the address on but not the hole address. Then I got an email telling me this code: ------------------------- You might have to split the address_display like {{ doc.address_display.split("\n")[0] }}
Posted by rmehta on 08/06/2015 ----------------------------- So lets say you pick a customer that didn’t have the complete address and then we tried to print and the printing form Accounts->Sales Invoice-> customer “JOE SMITH” then select last one, and then print form “Pos Ticket INNYEC” did not print because of this error on a blank pop up window:
Message
Close
Server Error: Please check your server logs or contact tech support.
Traceback (innermost last):
File “/home/frappe/v5press/benches/1512081119/apps/frappe/frappe/app.py”, line 67, in application
response = frappe.handler.handle()
File “/home/frappe/v5press/benches/1512081119/apps/frappe/frappe/handler.py”, line 77, in handle
execute_cmd(cmd)
File “/home/frappe/v5press/benches/1512081119/apps/frappe/frappe/handler.py”, line 94, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/v5press/benches/1512081119/apps/frappe/frappe/init.py”, line 788, in call
return fn(*args, **newargs)
File “/home/frappe/v5press/benches/1512081119/apps/frappe/frappe/templates/pages/print.py”, line 139, in get_html_and_style
no_letterhead=no_letterhead, trigger_print=trigger_print),
I compared the ones that document didn’t show the error and was because the ones with error didn’t have the complete address. Then I check all addresses and completed information that was missing hoping the error would`t show again. But then I have a sell to the same customer and the error appears again.
Any ideas? thanks for your help.
Regards,
Gilberto