[FIX] sale_project: fix the visibility of billable field

Project Sharing  subtasks view's notebook, hide the Billable field which is an
read-only field

task-3374861

X-original-commit: 2d932181d6c7d86b26a07d10990b453f7b86a938
Part-of: odoo/odoo#132986
This commit is contained in:
Gurupreet Singh
2023-08-28 09:34:01 +00:00
parent f1f4ef1d8f
commit c40b2cff80
@@ -25,7 +25,7 @@
<field name="sale_line_id" string="Sales Order Item" options='{"no_open": True}' readonly="1" invisible="not partner_id" context="{'create': False, 'edit': False, 'delete': False}"/>
</xpath>
<xpath expr="//field[@name='child_ids']/tree/field[@name='partner_id']" position="after">
<field name="allow_billable"/>
<field name="allow_billable" invisible="1"/>
</xpath>
<xpath expr="//field[@name='child_ids']/tree/field[@name='partner_id']" position="attributes">
<attribute name="column_invisible">not parent.allow_billable</attribute>