Hi,
I have a treeview with a button column.
How can I add a header title to that column? String doesn't seem to work...
My code:
Python:
ck = fields.Boolean(string='Checked', default=False, compute='_compute_ck')
XML:
≤tree string="Ordem de Compra"≥
≤field name="name" readonly="1"/≥
≤field name="partner_id" readonly="1"/≥
≤field name="z_data_oc" readonly="1"/≥
≤field name="ck" invisible="1"/≥
≤button string="Checked" icon="fa-check" attrs="{'invisible': [('ck', '=', False)]}"/≥
≤field name="amount_total" readonly="1"/≥
≤/tree≥
-------------------------------------------------------------------
Edit: Tried S.M Firoz Ahmed's solution
------------------------------------------------------------------- Colspan did not work. Maybe I'm doing something wrong. My code:
Result: