Javascript 在ODOO 13的对账模型中添加新的Char字段

Javascript 在ODOO 13的对账模型中添加新的Char字段,javascript,odoo,qweb,odoo-13,Javascript,Odoo,Qweb,Odoo 13,我在account.bank.statement.line中添加了一个名为(statement\u user\u id)的多个新字段和字符字段关系(user\u statement\u name): class AccountBankStatementLine(models.Model): _inherit = 'account.bank.statement.line' statement_user_id = fields.Many2one('account.user.stat

我在account.bank.statement.line中添加了一个名为(statement\u user\u id)的多个新字段和字符字段关系(user\u statement\u name):

class AccountBankStatementLine(models.Model):
    _inherit = 'account.bank.statement.line'

    statement_user_id = fields.Many2one('account.user.statement')
    user_statement_name = fields.Char(relared="statement_user_id.name", string="User Statement Name")
然后,我在要显示的“base”QWEB XML文件中添加了(user_statement_name)字段

  <t t-name="reconciliation.line.mv_line">
<tr t-if="line.display !== false" t-attf-class="mv_line #{line.already_paid ? ' already_reconciled' : ''} #{line.__invalid ? 'invalid' : ''} #{line.is_tax ? 'is_tax' : ''}" t-att-data-line-id="line.id" t-att-data-selected="selected">
    <td class="cell_account_code"><t t-esc="line.account_code"/>&#8203;</td> <!-- zero width space to make empty lines the height of the text -->
    <td class="cell_due_date">
        <t t-if="typeof(line.id) != 'number' &amp;&amp; line.id">
            <span class="badge badge-secondary">New</span>
        </t>
        <t t-else="" t-esc="line.date_maturity || line.date"/>
    </td>
    <td class="cell_label">
        <t t-if="line.partner_id &amp;&amp; line.partner_id !== state.st_line.partner_id">
            <t t-if="line.partner_name.length">
                <span class="font-weight-bold" t-esc="line.partner_name"/>:
            </t>
        </t>
        <t t-esc="line.label || line.name"/>
        <t t-if="line.ref &amp;&amp; line.ref.length"> : </t>
        <t t-esc="line.ref"/>
    </td>
    <td class="cell_label">
        <t t-esc="line.user_statement_name"/>  <!-- field to be displayed-->
    </td>
    <td class="cell_left">
        <t t-if="line.amount &lt; 0">
            <t t-call="reconciliation.line.mv_line.amount"/>
        </t>
    </td>
    <td class="cell_right">
        <t t-if="line.amount &gt; 0">
            <t t-call="reconciliation.line.mv_line.amount"/>
        </t>
    </td>
    <td class="cell_info_popover"></td>
</tr>

​ 
新的
:
: 
我需要编写一些javascript代码来显示。我对它不熟悉。我已经使用基本javascript代码进行了操作,但没有任何效果

那么如何使用javascript部分在视图中显示(user\u statement\u name)字段呢?

多谢各位