1
カスタムモジュールには2つのクラスがあります。どのようにクラスtest
@api.one
でtest2_func
ボタンをクリックして呼び出すことができますか?他のクラスの関数呼び出しoodoo 9
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")
を書くべき
test2.class
モデルで機能test2_func
を呼び出します。myfunction' – yorodm