Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
13370 Ansichten

In my company we need to know if a task/issue is currently in progress or on hold so we would like to have the following kanban states:

  1. On hold
  2. In progress
  3. Blocked
  4. Ready for next stage

Ideally I would like to create a custom module for that purpose but, as a first step, it would be ok to find which files should be modified in order to make such an addition.

Here:

'kanban_state': fields.selection([('normal', 'Normal'),('blocked', 'Blocked'),('done', 'Ready for next stage')], 'Kanban State',

in https://github.com/odoo/odoo/blob/8.0/addons/project_issue/project_issue.py#L247
I think I found a starting point in order to create the extra option for project issues.

Then, I searched for the file that controls the related views and I found this:

<field name="kanban_state" class="oe_inline" widget="kanban_state_selection"/>

for the form view here: https://github.com/odoo/odoo/blob/master/addons/project_issue/project_issue_view.xml#L56
and for the kanban view here: https://github.com/odoo/odoo/blob/master/addons/project_issue/project_issue_view.xml#L221

I can see that a 'widget' is called but from this point some help would save me enough time. Where can I find the code for that 'widget' ?

Which files should I look in order to add an extra kanban_state?

 

--------------------------------------

Edit: Beware! I'm asking for the kanban_state which is something different from the project stages which you can change from configuration options.

Avatar
Verwerfen
Autor

Hello Nicolas, Thanks for your answer but I think you misunderstood me. I don't want to add an extra STAGE. I need an extra STATE like 'blocked', 'ready for next stage' etc.

Beste Antwort

Hello @George Rodopoulos Have you got solution for this issue ?

Avatar
Verwerfen
Beste Antwort

Hello,


did you guys actually figured this out ? I would need to add some kanban_state options with the colored dots ... I would appreciate some guidance on which files actually have to be modified for this

Thank you 

Avatar
Verwerfen
Beste Antwort

Hello, to do this, just add some stage on project task with:

1- Project -> Configuration -> stages -> task stages

2- You can set stage folded by default on kanban view. 

You can select stage you want to use project by project with:

And that is.

thanks,

Avatar
Verwerfen
Autor

Hello Nicolas, Thanks for your answer but I think you misunderstood me. I don't want to add an extra STAGE. I need an extra STATE like 'blocked', 'ready for next stage' etc.

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juli 24
2312
1
Juli 23
4708
0
März 24
3458
1
Sept. 22
6391
1
März 22
6286