-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Printing multiple items directly to a printer only prints first item #62
Comments
Although I have not tested the problem, still I do not agree on the solution... Either it is not necessary, or it is useless. ids = context.get('active_ids', ids)
context['active_ids'] = ids |
I wouldn't call this solution elegant either, but it works.
python_code = """
# %s #
report_action_id = %s
context['report_action_id'] = report_action_id
print_actions_obj = self.pool.get('aeroo.print_actions')
printer = print_actions_obj._get_default_printer(cr, uid, context)
print_actions_obj.report_to_printer(cr, uid, [obj.id], report_action_id, printer, context=context)
""" % (md5.md5(str(report_id)).hexdigest(), report_id) In turn, So, to fix the issue w/o touching odoo base code, we either change the generated And of course I would be more than happy if somebody would come with a better one. |
Thank you. I meant that, 'ids' would never be taken unless there is no key 'active_ids' at all. Even the 'active_ids' key is None or empty list, or anything else "type-casted" to boolean False, the value of the key would be taken, even there is something valuable in 'ids'. |
[FIX] aeroo#62: Printing multiple items directly to a printer only prints …
Configure user's default general purpose printer to be e.g. PDF (
sudo apt-get install cups-pdf
+ update Direct printing configuration in Odoo).Pick some Aeroo report (AR) with
client_print_multi
set, and setUser's Default Genreral Purpose Printer
as this report's Printer.Finally, select several items and go Print > AR. Out of all selected items only the 1st item is printed to a PDF file.
The text was updated successfully, but these errors were encountered: