Skip to Content
Menu
This question has been flagged

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


Avatar
Discard

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

Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 24
20511
0
Sep 24
580
2
Aug 24
882
3
Aug 24
1422
0
Jan 25
818