Hi,
I wrote an onchange_line() method in the sale_order class.
The method works well, but the problem is that I can't call it in the xml file:
<field name="arch" type="xml">
<xpath expr="//page[@string='Order Lines']" position="replace">
<field name="order_line" on_change="onchange_line(order_line)" />
</xpath>
</field>
I get the error:
AttributeError: View definition error for inherited view 'sale.view_order_form_editable_list' on model 'sale.order': Element '<xpath expr="//field[@name='order_line']/tree">' not found in parent view 'sale.view_order_form'
I've tried many expressions for xpath but none works.
Just asking to make sure the question is for v7 or v8?
It's for v7, I'm sorry, I forgot to mention it.
specify the path correctly for "Order Lines"