mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] isinstance(printer, (str,unicode)):
replaced by isinstance(printer, basestring)
This commit is contained in:
@@ -240,7 +240,7 @@ class report_xml(osv.osv):
|
||||
os.close(fd)
|
||||
printer_system_name = ''
|
||||
if printer:
|
||||
if isinstance(printer, (str,unicode)):
|
||||
if isinstance(printer, (basestring)):
|
||||
printer_system_name = printer
|
||||
else:
|
||||
printer_system_name = printer.system_name
|
||||
|
||||
Reference in New Issue
Block a user