Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
2812 Lượt xem

hi iam using odoo 17,when i try to create new quation in sale.order model it shows an error like,UncaughtPromiseError > OwlError

Uncaught Promise > An error occured in the owl lifecycle (see this Error's "cause" property)

OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)

    at handleError (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:916:101)

    at App.handleError (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:1542:29)

    at ComponentNode.initiateRender (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:1006:19)


Caused by: Error: "sale.order"."purchase_order_count" field is undefined.

    at Field.parseFieldNode (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:7669:231)

    at http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:8546:865

    at visit (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4227:51)

    at visitChildren (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4226:171)

    at visit (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4227:129)

    at visitChildren (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4226:171)

    at visit (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4227:129)

    at visitChildren (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4226:171)

    at visit (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4227:129)

    at visitChildren (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4226:171),and when i create new purchase order in purchase.order model it shows an error like,UncaughtPromiseError > OwlError

Uncaught Promise > An error occured in the owl lifecycle (see this Error's "cause" property)

OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)

    at handleError (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:916:101)

    at App.handleError (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:1542:29)

    at ComponentNode.initiateRender (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:1006:19)


Caused by: Error: "purchase.order"."sale_order_count" field is undefined.

    at Field.parseFieldNode (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:7669:231)

    at http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:8546:865

    at visit (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4227:51)

    at visitChildren (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4226:171)

    at visit (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4227:129)

    at visitChildren (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4226:171)

    at visit (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4227:129)

    at visitChildren (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4226:171)

    at visit (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4227:129)

    at visitChildren (http://localhost:8070/web/assets/dd858b2/web.assets_web.min.js:4226:171),then i uninstall the purchase.order model and reinstalled then error gone is this is the right way to solve this problem? how can i solve without uninstall the purchase.order model

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I got a similar error: 

Caused by: Error: "mrp.production"."purchase_order_count" field is undefined.


Fixed by installing module "mrp_subcontracting_purchase", hope it will help you.


If the problem's still there, please install modules starts with 'mrp_' one by one, I am not quite sure which one or some will fix it :(

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I had the same issue when installing my customised module, the issue was solved by including the module 'sale_purchase' in the depends area 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,
Remove the view from the db that add purchase_order_count field in sale.order model or install the app that brings this field to sale.order model


Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 25
1020
2
thg 2 25
9820
1
thg 6 24
1540
1
thg 5 24
2063
0
thg 2 20
3