Children improvements

This pull request contains :
 - Children informations retrieving from webservice
 - Description generation wizard
 - Moving projects into child_compassion project
Then it would be better to rename it to child_ids…

From: CSester [mailto:notifications@github.com]
Sent: jeudi 28 août 2014 11:03
To: CompassionCH/compassion-modules
Cc: Emanuel Cino (CH-IT)
Subject: Re: [compassion-modules] Children improvements (#6)


In child_compassion/model/child_compassion.py:

> +        'desc_fr': fields.text(_('French description')),

> +        'desc_de': fields.text(_('German description')),

> +        'desc_it': fields.text(_('Italian description')),

> +        'start_date': fields.date(_("Start date")),

> +        'case_study_ids': fields.one2many(

> +            'compassion.child.property', 'child_id', string=_('Case studies'),

> +            readonly=False), #FIXME readonly

> +        'portrait': fields.binary(_('Portrait')),

> +    }

> +

> +    _defaults = {

> +        'type' : 'CDSP'

> +    }

> +

> +    def get_basic_informations(self, cr, uid, child_id, context=None):

> +        child = self.browse(cr, uid, child_id, context)[0]

In this context, child_id is a list. But you're right, a check is always welcome !

—
Reply to this email directly or view it on GitHub<https://github.com/CompassionCH/compassion-modules/pull/6/files#r16828166>.