Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
12478 Zobrazení
Who can helps me for this error, it produce when i click on account entry thx a lot. 
behold the error :
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 242, in _dispatch result = request.dispatch() File "/usr/lib/python3/dist-packages/odoo/http.py", line 702, in dispatch result = self._call_function(**self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 368, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/http.py", line 357, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 925, in __call__ return self.method(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 546, in response_wrap response = f(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1282, in search_read return self.do_search_read(model, fields, offset, limit, domain, sort) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1301, in do_search_read return Model.web_search_read(domain, fields, offset=offset, limit=limit, order=sort) File "/usr/lib/python3/dist-packages/odoo/addons/web/models/models.py", line 62, in web_search_read records = self.search_read(domain, fields, offset=offset, limit=limit, order=order) File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account_move.py", line 4480, in search_read return super(AccountMoveLine, self.with_context(domain_cumulated_balance=to_tuple(domain or []), order_cumulated_balance=order)).search_read(domain, fields, offset, limit, order) File "/usr/lib/python3/dist-packages/odoo/models.py", line 5091, in search_read result = records.read(fields, **read_kwargs) File "/usr/lib/python3/dist-packages/odoo/models.py", line 3232, in read raise ValueError("Invalid field %r on model %r" % (name, self._name)) Exception The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 658, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 301, in _handle_exception raise exception.with_traceback(None) from new_cause ValueError: Invalid field 'contra_accounts' on model 'account.move.line'

Avatar
Zrušit
Nejlepší odpověď

Hi,

Ensure that the module defining the contra_accounts is properly installed and that its dependencies are correctly set up?


Check the Python model where contra_accounts is defined. Ensure that the field is correctly declared and follows the correct syntax. For One2many and Many2many fields, ensure the relation and inverse names are correctly specified.


Hope it helps

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
5
čvn 18
5228
2
dub 17
4345
1
srp 23
4068
0
srp 19
3486
0
dub 17
4683