Refactor some label printing stuff, per rattail changes.

This had to do with some edbob removal.
This commit is contained in:
Lance Edgar 2014-09-13 19:15:40 -07:00
parent 03c72d850d
commit 9d2a35c8b1
2 changed files with 12 additions and 9 deletions

View file

@ -25,6 +25,8 @@
Product Views
"""
from __future__ import unicode_literals
import os
from sqlalchemy import and_
@ -326,7 +328,7 @@ def print_labels(request):
return {'error': "Quantity must be numeric"}
quantity = int(quantity)
printer = profile.get_printer()
printer = profile.get_printer(request.rattail_config)
if not printer:
return {'error': "Couldn't get printer from label profile"}