base_report_to_printer wrong import statement

Bug #876895 reported by ViktorNagy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Domsense Agile BG OpenERP Addons
Fix Released
Undecided
Unassigned

Bug Description

your base_report_to_printer writes

from addons.base_calendar import base_calendar

but this raises an ImportError if someone specifies the addons_path as a list in server config file
the solution is to simply write

from base_calendar import base_calendar as every addons directory is added to the PYTHONPATH

the attached merge directive corrects this

Revision history for this message
ViktorNagy (viktor-nagy) wrote :
Revision history for this message
Lorenzo Battistini (elbati) wrote :

Thanks for reporting.
Fixed with http://bazaar.launchpad.net/~domsense/domsense-agilebg-addons/6.0/revision/41
I hope sooner or later we won't need to use base_calendar anymore ( https://bugs.launchpad.net/openobject-server/+bug/837552 )

Changed in domsense-agilebg-addons:
status: New → Fix Released
no longer affects: report-print-send
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.