2017-09-25 6 views
2

은 내가 로 용어를 변경하려고했습니다boolean_button 용어를 어떻게 바꿀 수 있습니까?

<button name="toggle_enable" type="object" class="oe_stat_button" icon="fa-unlink"> 
    <field name="enabled" widget="boolean_button" options='{"terminology": "active"}'/> 
</button> 

boolean_button 위젯 버튼을 정의한 수출/ 수출하지하지만 성공하지 않았습니다. 누군가 새로운 용어를 정의 할 수 있는지 말해 줄 수 있습니까?

<div class="oe_button_box" name="button_box"> 
    <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-check-square" > 
     <field name="active" widget="boolean_button" options='{"terminology": { 
      "string_true": "Production Environment", 
      "hover_true": "Switch to test environment", 
      "string_false": "Test Environment", 
      "hover_false": "Switch to production environment" 
     }}'/> 
    </button> 
</div> 

을하지만 Odoo의 V9에서, 기본적으로이되지 않습니다 :

Odoo의 V10에서

답변

2

, 당신은 다음과 같은 그것을 할 수 있습니다.