projects
/
OpenERP
/
cmmi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Évolution : ajout d'un champ calculé pour les charges plan
[OpenERP/cmmi.git]
/
evolution.py
diff --git
a/evolution.py
b/evolution.py
index
05426ed
..
485ef59
100644
(file)
--- a/
evolution.py
+++ b/
evolution.py
@@
-31,6
+31,13
@@
class Evolution(osv.Model):
return result
return result
+ def _get_charge_plan(self, cr, uid, ids, field, arg, context=None):
+ result = {}
+ for evo in self.browse(cr, uid, context=context):
+ result[evo.id] = sum([p.charge_plan for p in evo.phases])
+ return result
+
+
_columns = {
"pid": fields.integer(string="PID"),
"name": fields.char(string="Title", size=64, required=True),
_columns = {
"pid": fields.integer(string="PID"),
"name": fields.char(string="Title", size=64, required=True),