Indeed hijacking a service is a one-shot possibility if we don't want to
brake the previous one. Currently the server doesn't provide any way to
have multiple, independent inheriting classes. Something similar to the
Model class _inherit is needed for services.

** Project changed: openobject-addons => openobject-server

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

Title:
  OpenERP 6.0.3 - module base_calendar overrides printing service

Status in OpenERP Server:
  Confirmed

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-server/+bug/837552/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to