Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating subvention #7

Open
Maurice67205 opened this issue Feb 14, 2020 · 4 comments
Open

Error when creating subvention #7

Maurice67205 opened this issue Feb 14, 2020 · 4 comments

Comments

@Maurice67205
Copy link

Dear all when trying to configure a subvention with Odoo 12 Community I get the following error Odoo Server (see attached screen shots, could not upload a video)
Step3
Step2
Step 1

Regards
Maurice

@cubells
Copy link

cubells commented Feb 14, 2020

@Maurice67205 can you paste the last lines that are not seen in first capture where you click on "Voire les détails"?

Thanks.

@Maurice67205
Copy link
Author

@cubells here you go

Odoo Server Error

Traceback (most recent call last):
File "/home/tempo/odoo12/odoo/http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/tempo/odoo12/odoo/http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/tempo/odoo12/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/home/tempo/odoo12/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/home/tempo/odoo12/odoo/http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/tempo/odoo12/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/home/tempo/odoo12/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/home/tempo/odoo12/odoo/http.py", line 941, in call
return self.method(*args, **kw)
File "/home/tempo/odoo12/odoo/http.py", line 519, in response_wrap
response = f(*args, **kw)
File "/home/tempo/odoo12/addons/web/controllers/main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/tempo/odoo12/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/tempo/odoo12/odoo/api.py", line 755, in call_kw
return _call_kw_model(method, model, args, kwargs)
File "/home/tempo/odoo12/odoo/api.py", line 728, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/home/tempo/odoo12/odoo/models.py", line 1644, in name_search
return self._name_search(name, args, operator, limit=limit)
File "/home/tempo/odoo12/addons/account/models/account.py", line 204, in _name_search
account_ids = self._search(expression.AND([domain, args]), limit=limit, access_rights_uid=name_get_uid)
File "/home/tempo/odoo12/odoo/models.py", line 4110, in _search
query = self._where_calc(args)
File "/home/tempo/odoo12/odoo/models.py", line 3902, in _where_calc
e = expression.expression(domain, self)
File "/home/tempo/odoo12/odoo/osv/expression.py", line 673, in init
self.parse()
File "/home/tempo/odoo12/odoo/osv/expression.py", line 854, in parse
raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf)))
ValueError: Invalid field 'type' in leaf "<osv.ExtendedLeaf: ('type', '!=', 'view') on account_account (ctx: )>"

@rlizana
Copy link
Contributor

rlizana commented Feb 17, 2020

Hi @Maurice67205 , I have uploaded a few changes to solve the problem, please try it.

@Maurice67205
Copy link
Author

HI @rlizana , I can now create a subvention but don't understand how the whole thing works
Attached is my subvention and an invoice related to it but I don't see anything registrered
Regards
Maurice
Subvention
Invoice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants