Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4152 Visualizzazioni

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
Abbandona

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

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
dic 24
21867
0
set 24
1376
2
ago 24
1909
3
ago 24
2723
0
gen 25
1878