Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
4148 มุมมอง

hi

 In odoo 12, when we try to add additional fields to SO line, it is throwing an error.

This is happening only when there is a Quotation Template present with line items. 

It actually says field in not there in domain.

If we set a default quotation template (Template A with line items), it will show field qty_invoiced is not present in domain

If we set a default quotation template (Template B without line items) and if we try to change quotation template, it will show field product_updatable is not present in domain

I tried inheriting the view and adding additional fields as well as directly adding the sale module. Nothing seems to be working

Looks like this issue in the Odoo JS framework

Any suggestions how to fix this issue?


อวตาร
ละทิ้ง

Please post your custom code to get more idea about your issue.

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

Its a js error just replace the chunk of code in /addons/web/static/src/js/core/domain.js
This:

if (!(this._data[0] in values) && !(isParentField)) {
throw new Error(_.str.sprintf(
"Unknown field %s in domain",
this._data[0]
));
}

From
if (!(this._data[0])) {
throw new Error(_.str.sprintf(
"Unknown field %s in domain",
this._data[0]
));
}
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Do you use the latest build of Odoo? If not, please update first. If the error still exists, please try to reproduce it on runbot and report an issue on Github.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 20
4765
Manually assign a quotation number แก้ไขแล้ว
3
ก.ค. 24
2967
0
ส.ค. 23
1866
Can't save custom settings แก้ไขแล้ว
2
ธ.ค. 22
6562
0
เม.ย. 24
1498