On 12/12/11 08:46 -0800, vuk wrote:
> Hello everybody, I have a Function field into a model that emulates an
> Integer field.
> 
> duration =
> fields.Function(fields.Integer(string='Duration',readonly=True,depends
> = ['start','stop'],on_change_with =
> ['start','stop']),'compute_duration')
> 
> into the tree view i set the sum attribute
> 
> <field name="duration" sum="tot hours"/>
> 
> The string 'tot hours' appears at the bottom of the view with no sum
> 
> tot hours: -
> 
> I also tried to force the widget setting widget="integer" but without
> success
> 
> any idea?

It sums only the selected records.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpAxo67fEr0v.pgp
Description: PGP signature

Reply via email to