← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 704347] Re: [6.0RC2] can not overwrite def __compute in account/account.py

 

Converting to a question, as this is mainly a Python FAQ

** Changed in: openobject-server
       Status: New => Invalid

** Converted to question:
   https://answers.launchpad.net/openobject-server/+question/141967

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

Title:
  [6.0RC2] can not overwrite def __compute in account/account.py

Status in OpenObject Server:
  Invalid

Bug description:
  I want to enhance the def __compute in account/account.py which is not
  possible as the original __compute is always executed.

  see attached test module

  for test purpose it should print 
  'my __compute'
  in the syslog, instead of computing 

  BTW  account.py
              self.logger.notifyChannel('addons.'+self._name, netsvc.LOG_DEBUG,
                                        'Filters: %s'%filters)
  should be removed for final v6





References