I've created a kanban view in a module,
I set the default_group_by property in kanban with the state field.
The state contains:
[('new','Waiting Queue'),('in_progress','In Progress'),('done','Finished')]
but where's there's no data in specific state,the column for the state will not appear until I create a data with that state.
is there any way to workaround this problem guy ?thanks..
You can use a _group_by_full method. This method must return the (name_get of records, {id: fold}) to include in the _read_group, if grouped on this field. Of course, you can return all values of column you want, even if there is not yet data for this column. You can see clear examples of _group_by_full in project.py and crm_lead.py.