如何获得“价值”;活动“U id”;对于openerp看板视图
我正在创建一个新模块,希望在如何获得“价值”;活动“U id”;对于openerp看板视图,openerp,kanban,Openerp,Kanban,我正在创建一个新模块,希望在联系人屏幕的视图中放置一个按钮。当任何用户单击该按钮时,我需要所选联系人的活动id。可以获取树视图和表单视图,但我不知道如何在看板视图中获取 有人能帮忙吗 谢谢为此,您需要可变地使用contex字典 如果你点击bu <button string="Click Me" type="object" name="my_func" context="{'active' : active_id}" /> def my_func(self, cr, uid, ids
联系人屏幕的视图中放置一个按钮。当任何用户单击该按钮时,我需要所选联系人的活动id
。可以获取树视图和表单视图,但我不知道如何在看板
视图中获取
有人能帮忙吗
谢谢为此,您需要可变地使用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...