Refactor some label printing stuff, per rattail changes.
This had to do with some edbob removal.
This commit is contained in:
parent
03c72d850d
commit
9d2a35c8b1
2 changed files with 12 additions and 9 deletions
|
@ -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"}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue