0

我正在创建一个新模块,我想在button其中kanban放置Contact screen. 当任何用户单击button我需要active_id的所选联系人时。可以获得树和表单视图,但我不知道如何为kanban视图执行此操作。

有人可以在这里帮忙吗?

谢谢

4

1 回答 1

0

contex为此,您需要可变地使用字典,

如果你点击bu

<button string="Click Me" type="object" name="my_func" context="{'active' : active_id}" />

方法

def my_func(self, cr, uid, ids, context={}):
    # do stuff using the info passed in the context variable...
于 2014-01-27T17:13:20.457 回答