2017-04-25 6 views

答えて

0

あなたが選択フィールドキー、以下の方法を介した値のペアを取得することができます。

result=self.env[model].fields_get([field_name]) 
    key=False 
    if result and result.get(field_name) and result.get(field_name).get('selection'): 
     for dict_value in result.get(field_name).get('selection'): 
      print dict_value 

これは役立ちます。