[6.0][project_long_term] Signature error for _compute function
Bug #655316 reported by
Vianney - www.akretion.com.br
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Opinion
|
Undecided
|
OpenERP Services Experts |
Bug Description
the function _compute, defined like this in project_
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.
Related branches
security vulnerability: | yes → no |
visibility: | private → public |
summary: |
- [6.0][project_long_term] Signature error for _compute fonction + [6.0][project_long_term] Signature error for _compute function |
Changed in openobject-addons: | |
status: | Fix Released → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → Triaged |
status: | Triaged → Opinion |
To post a comment you must log in.
Actually the definition of the function is wrong because even the res dictionary returned by the function is wrong.
Here comes a patch which solves the problem.
(Remembering that the problem is hidden because right now the function is never called because the total_hours field is not displayed in the view. By the way, it is a very interesting field!)