← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 837552] Re: OpenERP 6.0.3 - module base_calendar overrides printing service

 

Ciao Marco,
see http://www.openerp.com/forum/post91875.html#p91875

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/837552

Title:
  OpenERP 6.0.3 - module base_calendar overrides printing service

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  I'm trying to port the PrintJob module to OpenERP 6 and doing this
  work I noticed that module base_calendar is doing something strange
  with the print service.

  The class base_calendar.virtual_report_spool derives from the standard printing service (web_service.report_spool) and do something strange with ids passed to the method exp_report(), is seems that ids passed to the report generation method needs to be translated from base_calendar_id to real_id by the function base_calendar_id2real_id() also it seems this function is applied to ids of every report generated.
  I tried to execute the server in debug mode and placing break points inside the method base_calendar.virtual_report_spool.exp_report() but while the new web service for report generation is correctly registered the method exp_report of the class base_calendar.virtual_report_spool is never executer.

  I think replacing the report generation web service is probably not
  the correct strategy for doing ids translations.

  I'm reporting this bug because I'm trying to port ProntJob module to
  OpenERP 6 and I need to override the default web service for
  generating reports (implemented in the class web_service.report_spool)
  with a new service implemented in PrintJob, now I can't do this
  because base_calendar module overrides the default service for
  printing and classes of this module are instantiated after the classes
  of PrintJob module, the result is an override of the PrintJob printing
  service.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/837552/+subscriptions


References