Hello,
I try to add a new editable column on tree view of payments in POS Orders to add the date of receipt of check method payments.
I already add the column, but I can't edit it.
This is my xml :
<record id="date_receipt_check" model="ir.ui.view">
<field name="name">pos.order.form.view.inherit</field>
<field name="model">pos.order</field>
<field name="inherit_id" ref="point_of_sale.view_pos_pos_form"></field>
<field name="arch" type="xml">
<xpath expr="//tree" position="attributes">
<attribute name="editable">tpo</attribute>
</xpath>
<xpath expr="//field[@name='amount']" position="after">
<field name="date_receipt" readonly="False" />
</xpath>
</field>
</record>
Currently, when I click on the "date_receipt" field in tree, it opens a popup "Open: Payments" and therefore, I can not edit my date.
What I need to do to make it editable ?
Seems like Typo/Spell mistake while making editable treeview .
<attribute name="editable">tpo</attribute>
It should be like <attribute name="editable">top</attribute>
This is an error made when I created this post. My xml does not have this error.