在odoo中隐藏和显示文本区域

Hide and show textarea in odoo

我有一些问题:

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
  <template id="product_configurator_configure" 
    inherit_id="sale.product_configurator_configure">
    <xpath expr="//div[@class='js_product main_product']" 
      position="replace">
      some code
    <div>
       <input type="checkbox" id="check_comment" class="o_website_form_input"> Option development 
          request</input>
       <textarea name="comment"  id="comment" class="o_website_form_input" cols="65" rows="4" 
          placeholder="Add new option"></textarea>
    </div>
  </xpath>
 </template>

如何在 odoo 中创建一个 javascript 文件(其结构),以便通过单击“复选框”显示字段