+
+ def _get_charge_init(self, cr, uid, ids, field, arg, context=None):
+ result = {}
+ for chantier in self.browse(cr, uid, ids, context=context):
+ result[chantier.id] = sum([e.charge_init for e in chantier.evolutions])
+ return result
+
+
+ def _get_charge_plan(self, cr, uid, ids, field, arg, context=None):
+ result = {}
+ for chantier in self.browse(cr, uid, ids, context=context):
+ result[chantier.id] = sum([e.charge_plan for e in chantier.evolutions])
+ return result
+
+