← Back to team overview

openerp-expert-service team mailing list archive

[Bug 655316] Re: [6.0][project_long_term] Signature error for _compute function

 

** Changed in: openobject-addons
       Status: Confirmed => Triaged

** Changed in: openobject-addons
       Status: Triaged => Opinion

-- 
[6.0][project_long_term] Signature error for _compute function
https://bugs.launchpad.net/bugs/655316
You received this bug notification because you are a member of OpenERP
Services Experts, which is a bug assignee.

Status in OpenObject Addons Modules: Opinion

Bug description:
the function _compute, defined like this in project_long_term.py (line 95 in last revision): 
    def _compute(self, cr, uid, ids, context=None):
Raise an error because it is called from a fields.function which needs a signature like : 
    def _compute(self, cr, uid, ids, field_name, arg, context=None):

This error is reproductible only if asking for the field total_hours because it is not displayed right now.