.py:
colon_data = fields.Boolean('Colon Data',store=True,default=True) count_data = fields.Integer(string='Data check') @api.onchange('plot_colonization_ids') def compute_count_data(self): for rec in self: total_plot_no = 0 for line in rec.plot_colonization_ids: if line.plot_no: rec.count_data += int(line.plot_no) if rec.count_data > 0: self.colon_data = True elif rec.count_data == 0: self.colon_data = False
i use the following code for a graph in kanban card if there is data graph will be shown otherwise graph will not visible but there are few issue first i need the colonization heading should be invisble for those kanban card which has no data in graph, second thing is if there is no data in graph then the remaining graphs should be adjustable which is not adjust right now in sense of space occupying in kanban card
```Colonization
```