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

V16

I am creating a sale order line from the repair module(repair) with a server action.


1/ First i create the sale order: all goes well, the sale order is created.


2/then i create the sale order line:

I add the mandatory fields: customer_lead, name, order_id, price_unit & product_uom_qty

I need to make a section, so I add display_type = line_section


I have done this several times in other dbases and i do the same now.

But i can't figure out which field is missing....


Has anyone had the same problem?


FieldEvaluation TypeRecordValue
Description (sale.order.line)Python expressionrecord.name
Display Type (sale.order.line)Valueline_section
Product Qty (sale.order.line)Value0.0
Unit Price (sale.order.line)Value0.0
Lead Time (sale.order.line)Value1
Order Reference (sale.order.line)Python expressionrecord.sale_order_id.id
Add a line


อวตาร
ละทิ้ง

I have the same problem, You have any solution for v16?

I have the same problem, You have any solution for v16?

Avatar
Sachin Vijay Shelke
15xp
My Posts
Favourites
Followed Posts
Followed Tags

Same!
The operation cannot be completed: Forbidden balance or account on non-accountable line

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

Hi,

It seems you haven't set the value for the unit of measure field and thus you receives this message.

Constrains:

('non_accountable_null_fields',
"CHECK(display_type IS NULL OR (product_id IS NULL AND price_unit = 0 AND product_uom_qty = 0 AND product_uom IS NULL AND customer_lead = 0))",
"Forbidden values on non-accountable sale order line"),

Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
How to add a sequence a field? แก้ไขแล้ว
2
ธ.ค. 24
21832
0
ก.ย. 24
1363
2
ส.ค. 24
1893
3
ส.ค. 24
2689
0
ม.ค. 25
1859