Thanks, careless mistake...
Am Dienstag, den 19.06.2012, 20:45 +0200 schrieb Cédric Krier:
> 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()
>
--
[email protected] mailing list