Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
6 ตอบกลับ
11978 มุมมอง
OwlError: Invalid props for component 'TaxGroupComponent': 'currency' is undefined (should be a value)
    at Object.validateProps (http://localhost:8069/web/assets/111-f749c42/web.assets_common.min.js:1546:67)
    at TaxTotalsComponent.template (eval at compile (http://localhost:8069/web/assets/111-f749c42/web.assets_common.min.js:1894:370), :35:19)
    at Fiber._render (http://localhost:8069/web/assets/111-f749c42/web.assets_common.min.js:1336:96)
    at Fiber.render (http://localhost:8069/web/assets/111-f749c42/web.assets_common.min.js:1335:6)
    at ComponentNode.initiateRender (http://localhost:8069/web/assets/111-f749c42/web.assets_common.min.js:1414:47)

I am getting this error after clicking on a sale order order in sale order tree view.
I am using odoo 16 on docker container with enterprise addons installed. 

อวตาร
ละทิ้ง

I am getting this error when setting a default Sales Quotation Template. As far as I can see this issue renders the default Sales Quotation Template unusable.

ผู้เขียน คำตอบที่ดีที่สุด

So I found two cases these days that works. 

1. Clear cookies. (Sometimes does not work)
2. Turning off debug mode. It works for me. But as you know, as a developer, you can't help turning on debug mode in development stage.  

อวตาร
ละทิ้ง

Had same issue, i solved it by turning off debug mode. Thanks!

Thank you so much, I got stuck with this issue, I solved it by turning off the debug mode. But is it possible to figure out the reason for the issue and the solution? thanks again!

คำตอบที่ดีที่สุด

Faced the similar issue.I also solved it by turning off the debug mode.In my case it was pos in odoo 18.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Dear @OdooNomad
what do you mean by props? and where can I find it,
please can you guide me on where and how to put your code to solve this issue permanently?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I faced a similar issue before. The error message I encountered was:

Uncaught Promise > Invalid props for component 'ExistingOrdersDialog': unknown key 'title', unknown key 'orders'

This error only appeared in DEBUG mode. However, I managed to resolve it by adding the necessary props to the component as follows:

export class ExistingOrdersDialog extends Component {
    static components = { Dialog };
    static props = {
        close: Function,
        onAddOrder: Function,
        onSaveOrder: Function,
        title: String,
        orders: Object
    };
}

After including these props, I restarted Odoo and reloaded the page to ensure the new assets were loaded, and the error disappeared. In your case, I recommend checking if the 'currency' prop is defined in the TaxGroupComponent. If not, define it as a String type.

Best regards


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello, you need to enable currency defined on purchase order. Go to currencies menu and check if all currencies used on purchase orders are active.

Hope this helps.

BR

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I have been able to observe simillar problem recently on SH. And what have been able to identify is that will happen when I start to pickup products without set Client at first. 

Behavior is strange and should be handled without error as values should not be computed until Client is pickedup...

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 25
2451
1
เม.ย. 25
3470
1
เม.ย. 25
4299
1
เม.ย. 25
1780
4
มี.ค. 25
6889