跳至内容
菜单
此问题已终结
1 回复
12149 查看
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'

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
5
6月 18
4875
2
4月 17
4136
1
8月 23
3661
0
8月 19
3181
0
4月 17
4429