在自定义模块中,我有两个类。@api.one中的类test如何在单击按钮时调用test2_func?
我应该在def call_test2_func(self)中放什么?
例如:
class test(models.Model):
_name = "test.class"
_description = "TEST"
@api.one
def call_test2_func(self):
"""call test2_func here"""
class test2(models.Model):
_name = "test2.class"
_description = "TEST 2"
@api.one
def test2_func(self):
print("TEST 2")https://stackoverflow.com/questions/41245572
复制相似问题