跳至内容
菜单
此问题已终结
2 回复
5790 查看

Hi everyone!

I'm working with Odoo v13 Community and I bought a third party app that doesn't include Kanban View and I want to add it.

I've created the view in Settings --> Technical --> Views



with the following code:


But the Kanban View option in the model is still missing.

am i missing something?

I would really appreciate some help, thanks in advance!

形象
丢弃
最佳答案

Hi,

You have to specify the newly created view inside the action of the corresponding menu.

Thanks

形象
丢弃
编写者

thank you for the answer, I was missing that!!

最佳答案

I guess you are missing the "kanban" keyword in your "r.actions.act_window" (put kanban first if you want to see it once you click on the model)

With developer mode:

You can go Settings --> Technical --> Window actions and add "kanban" keyword to view mode

OR

Do it through code

You can add it like the following with xml:

<record model="ir.actions.act_window" id="yourModel_action">
      <field name="name">Your Model</field>
      <field name="type">ir.actions.act_window</field>
      <field name="res_model">yourModel.yourModel</field>
      <field name="view_mode">kanban,tree,form,graph,pivot</field>
    </record>



形象
丢弃
编写者

Yes!! thank you

相关帖文 回复 查看 活动
1
2月 19
6751
0
1月 19
5800
1
3月 15
6174
0
3月 15
5054
1
3月 15
17532