projects
/
OpenERP
/
cmmi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb633b3
)
Évolution : ajout d'un champ calculé pour les charges plan
author
Alicia FLOREZ
<alicflorez@gmail.com>
Thu, 13 Jun 2013 09:50:47 +0000
(11:50 +0200)
committer
Alicia FLOREZ
<alicflorez@gmail.com>
Thu, 13 Jun 2013 09:50:47 +0000
(11:50 +0200)
evolution.py
patch
|
blob
|
history
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
+ 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),