Hello,
In Odoo v11 (both Community and Enterprise), when the user edits/creates a new
customer invoice, the invoice lines are entered in the form of an editable tree.
Clicking "Add and item" inserts a new line in the tree. In non-editable mode of the
Customer Invoice form view, when clicking on the invoice line Odoo opens a form
view for displaying the details of the invoice line.
Desired behaviour: When adding an invoice line in the Customer Invoice form view,
I would like to open directly the same detailed form view, not let the user edit it in the tree.
Steps done:
I've removed the attribute editable="bottom" from the tree view of invoice_line_ids (by extending
the view account.invoice_form):
<xpath expr="//field[@name='invoice_line_ids']//tree" position="attributes">
<attribute name="editable"/>
</xpath>
The effect was:
-When editing an existing invoice line, Odoo opens the form view of the invoice line - OK
-When adding a new invoice line, Odoo raises the following error (assets):
TypeError: fieldInfo is undefined
Does anyone have an idea how to solve this properly? Please note, applying the same procedure for
enabling the editing of Purchase Order Lines in a form view works like a charm.
Thanks!
Ioan.