コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3557 ビュー

i can't find source of this error, in my code there is no such as "not in" but this error appears :


Uncaught Error: Unknown field state in domain [["state","not in",["draft"]]]
http://localhost:8071/web/content/899-6aca18d/web.assets_backend.js:1767
Traceback:
Error: Unknown field state in domain [["state","not in",["draft"]]]
    at Object.compute_domain (http://localhost:8071/web/content/899-6aca18d/web.assets_backend.js:1767:42)
    at Class.compute_domain (http://localhost:8071/web/content/899-6aca18d/web.assets_backend.js:2189:344)
    at Class.process_modifiers (http://localhost:8071/web/content/899-6aca18d/web.assets_backend.js:2224:60)
    at Class.trigger (http://localhost:8071/web/content/252-d7ceee3/web.assets_common.js:3105:180)
    at Class.trigger (http://localhost:8071/web/content/252-d7ceee3/web.assets_common.js:3109:148)
    at Class.on_form_changed (http://localhost:8071/web/content/899-6aca18d/web.assets_backend.js:2139:98)
    at Array. (http://localhost:8071/web/content/899-6aca18d/web.assets_backend.js:2136:6)
    at Array. (http://localhost:8071/web/content/252-d7ceee3/web.assets_common.js:547:681)
    at fire (http://localhost:8071/web/content/252-d7ceee3/web.assets_common.js:541:299)
    at Object.add [as done] (http://localhost:8071/web/content/252-d7ceee3/web.assets_common.js:542:467)


thank for suggest solution

_rahman_

アバター
破棄
著作者

Thanks, Mehjabin Farsana(Metalinks IT Consulting&Solutions)

i will try to add new field 'state',

next i will inform this later

最善の回答

Hi,

The error message indicates that there is a domain filter in your Odoo code that references a field called "state" and uses the "not in" operator with a value of "draft". However, the "state" field is not recognized by Odoo or is not defined in the model or view that you are working on.

To resolve this issue, you can try the following steps:

  1. Check the model or view that you are working on and make sure that the "state" field is defined and available. You can do this by checking the model definition or the view definition in the Odoo source code.

  2. If the "state" field is defined and available, check if it has a different name or if it is defined in a different module or addon. Make sure to import the module or addon that defines the "state" field in your code.

  3. If the "state" field is not defined or available, you can define it in the model or view that you are working on. You can do this by adding a new field to the model or view definition in the Odoo source code.

Hope this will help you

Thanks

アバター
破棄
関連投稿 返信 ビュー 活動
3
5月 21
9138
1
6月 18
5124
3
7月 25
3909
0
5月 25
749
1
12月 24
3646