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


Portretas
Atmesti

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
gruod. 24
21832
0
rugs. 24
1363
2
rugp. 24
1893
3
rugp. 24
2689
0
saus. 25
1859