Hello,

I try to calling 'find' method in a scenario with this piece of code:

Period = Model.get('account.period')
period = Period.find(company.id)

and when i running the scenario the followikg error appear

File "/home/ccr/Technique/tryton/ate-dev/trytond/trytond/modules/account_asset/tests/scenario_account_asset.rst", line 143, in scenario_account_asset.rst
Failed example:
    period = Period.find(company.id)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest scenario_account_asset.rst[83]>", line 1, in <module>
        period = Period.find(company.id)
File "/home/ccr/Technique/tryton/ate-dev/proteus/proteus/__init__.py", line 765, in find
        cls._config.context)
File "/home/ccr/Technique/tryton/ate-dev/proteus/proteus/config.py", line 172, in __call__
        result = rpc.result(meth(*args, **kwargs))
File "/home/ccr/Technique/tryton/ate-dev/trytond/trytond/modules/account/period.py", line 227, in search
        args = args[:]
    TypeError: 'int' object has no attribute '__getitem__'

it would seem that the method called is that of proteus and not that of the class Period. How to call that of the class?


Regards.
--
Christophe CRIER
Adiczion - http://adiczion.com

--
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/17281a4a-08ef-9b13-53e7-b50a0c620673%40adiczion.net.

Reply via email to