【发布时间】:2016-09-02 07:41:24
【问题描述】:
我已经扩展了 hr_attendance 模块,我想获取当前登录用户的“action”的最后一个值(可以是“sign_in”或“sign_out”)
我不知道如何访问该值。
考勤模块有以下功能:
def _altern_si_so(self, cr, uid, ids, context=None):
...
def _state(self, cr, uid, ids, name, args, context=None)
...
但我不知道如何在扩展模块中调用该函数,或者是否有其他方法可以获取该值。
【问题讨论】: