On Wednesday, July 29, 2015 at 11:10:34 AM UTC+2, kitpulap talurs wrote:
>
> Hallo,
>
> ich wollte mit proteus neue Berichte anlegen.
> Bekomme aber immer ein TypeErrror wenn ich ein neues Objekt erzeugen 
> möchte.
>
> Das sollte doch eigentlich so gehen?
>
> from proteus import Model
> from proteus import config as pconfig
>
> def set_config(database):
>     return pconfig.set_trytond(database)
>
> config = set_config('postgresql://postgres:postgres@localhost/demo3')
>
> Report = Model.get('ir.action.report')
> einkauf_pdf = Report()
>
> Traceback (most recent call last):
>   File "proteus_create_report.py", line 12, in <module>
>     einkauf_pdf = Report()
>   File "/usr/local/lib/python2.7/dist-packages/proteus/__init__.py", line 
> 644, in __init__
>     self._default_get()
>   File "/usr/local/lib/python2.7/dist-packages/proteus/__init__.py", line 
> 857, in _default_get
>     self._config.context))
>   File "/usr/local/lib/python2.7/dist-packages/proteus/config.py", line 
> 173, in __call__
>     result = rpc.result(meth(*args, **kwargs))
>   File "/usr/local/lib/python2.7/dist-packages/trytond/model/model.py", 
> line 133, in default_get
>     value[field_name] = cls._defaults[field_name]()
> TypeError: default_action() takes exactly 1 argument (0 given)
>
>  
See https://bugs.tryton.org/issue4979
 

-- 
Sie erhalten diese Nachricht, weil Sie Mitglied der Google Groups-Gruppe 
"tryton-de" sind.
Weitere Optionen: https://groups.google.com/d/optout

Antwort per Email an