On 19/06/12 11:42 -0700, TPH wrote:
> Hello
> 
> could someone tell me how to create locations with proteus please.
> 
> I've already tried this:
> 
> #!/usr/bin/python
> # -*- coding: utf8 -*-
> 
> from proteus import config, Model, Wizard
> 
> Location = Model.get('stock.location')
> location = Location()
> location.name = 'Hansa'
> location.type = 'storage'
> location.save
> 
> 
> Bot only got this output after location.save*:*
> 
> <bound method stock.location.save of 
> proteus.Model.get('stock.location')(-6)>

save is a method so you must call it.

    location.save()

-- 
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: pgpyvkfktwYiG.pgp
Description: PGP signature

Reply via email to