Skip to Content
Menu
This question has been flagged
1 Reply
1816 Views

In Sales->Quotations the "name" field is working , I need to add my own fields like (x_RDHeight, x_RDLength).

<field name="name"/> is product module variable, automatically working.

<field name="x_RDHeight"/> is customized product module variable, not working giving exceptions like given below


Field(s) `arch` failed against a constraint: Invalid view definition

Error details:

Field `x_RDHeight` does not exist

Error context:

View `sale.order.form`

[view_id: 575, xml_id: sale.view_order_form, model: sale.order, parent_id: n/a]

Avatar
Discard
Best Answer

Sudarsan,

The fields must be pre-existent before you use them in view.

Did you create a custom field and set inside view? Make sure you target the right model. You seem to have added the custom field for product model, and you target sale model.

Thanks.

Avatar
Discard