← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 753337] Re: [5.0] document_file create

 

Hello ignacio,

"portal_project" is part of the extra-addons, which are maintained by
the community, including all the modules created by "OpenERP" or "Tiny",
as none of these are actively developed by our teams anymore.

So if you or anyone from the community would like to work on it, please
mark the bug as "In progress" and assign it to yourself (or ask us or
anyone from OpenERP Drivers to do it for you). In the mean time, I will
mark it as "Won't fix" to indicate that no further progress is expected
at the moment. If you require further assistance with any similar
trouble while updating the module, do not hesitate to ask here or via a
question: https://answers.launchpad.net/openobject-addons

I hope you understand, and perhaps this explanation will be helpful to
you if you start fixing this extra-addon...

Thank you!

PS: For whomever works on fixing this, you probably want to apply/merge
your changes in both the 6.0 and trunk branches of extra-addons:

https://code.launchpad.net/~openerp-commiter/openobject-addons/extra-6.0
https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons


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

** Changed in: openobject-addons
       Status: New => Won't Fix

-- 
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/753337

Title:
  [5.0] document_file create

Status in OpenERP Modules (addons):
  Won't Fix

Bug description:
  In openERP 5.0.10 file bin/addons/portal_project/portal_project.py

  Line 108 the following code is wrong:
  if args[0]['default_res_id'] and args[0]['default_res_model'] == 'project.project':

  As per python manual http://docs.python.org/library/stdtypes.html#typesmapping :
  d[key]
      Return the item of d with key key. Raises a KeyError if key is not in the map.

  So the test will raise an error if default_res_id doesn't exist. It should be changed to:
   key in d
      Return True if d has a key key, else False.

  That is, the line of code should be:
   if 'default_res_id' in args[0] and args[0]['default_res_model'] == 'project.project':

  Kind regards



References