Hello !
I’m trying to test the usage of the account_fr_chorus module.
I followed all the tutorials to use Chorus Pro qualification service, creating an account, generating test data, creating an account on AIFE to link Chorus with a PISTE app, creating a technical account. Then I filled the Chorus section in the Financial configuration of Tryton with the login and password of the technical account, I installed the edocument_uncefact module to be able to choose CII as Chorus Syntax. I checked the Chorus Pro option for all the parties I registered and I filled in their SIRET. Then I created a customer invoice and I posted it, which has generated a Chorus invoice.
The problem is that the Chorus invoice is apparently not sent to Chorus Pro. I went on the Administration → Scheduler → Actions menu, I selected the “Send invoices to Chorus” method, and when I click on the “Run once” button, I get the following error :
Traceback (most recent call last):
File "/trytond/wsgi.py", line 117, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 47, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/wsgi.py", line 84, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 156, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 181, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/model/descriptors.py", line 33, in newfunc
return self.func(owner, *args, **kwargs)
File "/trytond/model/modelview.py", line 774, in wrapper
return func(cls, records, *args, **kwargs)
File "/trytond_company-6.0.0-py3.8.egg/trytond/modules/company/ir.py", line 111, in run_once
super(Cron, cls).run_once([cron])
File "/trytond/model/descriptors.py", line 33, in newfunc
return self.func(owner, *args, **kwargs)
File "/trytond/model/modelview.py", line 774, in wrapper
return func(cls, records, *args, **kwargs)
File "/trytond/ir/cron.py", line 141, in run_once
getattr(Model, method)()
File "/trytond/modules/account_fr_chorus/account.py", line 197, in send
records = cls.search(['OR',
File "/trytond/model/modelsql.py", line 1273, in search
tables, expression = cls.search_domain(domain)
File "/trytond/model/modelsql.py", line 1460, in search_domain
expression = convert(domain)
File "/trytond/model/modelsql.py", line 1454, in convert
return Or((convert(d) for d in domain[1:]))
File "/trytond/model/modelsql.py", line 1454, in <genexpr>
return Or((convert(d) for d in domain[1:]))
File "/trytond/model/modelsql.py", line 1446, in convert
field = cls._fields[fname]
KeyError: 'company'
Has someone already experienced this error ? Do you have some tutorial to help me finish to set up the account_fr_chorus module ?
Thanks for help !
PS : here are the tutorials I followed for the Chorus and AIFE part :