页脚字符串未显示在视图中 - Odoo v8

Footer string not showing on view - Odoo v8

我在尝试在我的视图中显示字段字符串时遇到问题,我正在尝试将两个字段添加到我的视图的页脚,并且显示了这些字段,但没有显示字符串。这是我的观点:

<record id="book_contract_form" model="ir.ui.view">
        <field name="name">worksheet.form</field>
        <field name="model">mrp.worksheet.contract</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
        <form string="Contract Worksheet form">
          <header>
            <div class="oe_title">
            <label for="name" class="oe_edit_only" />
            <h1>
                <field name="name" />
            </h1>
            </div>
          </header>
            <sheet string="Contract Worksheet">
          <group >
            <group>
            <field name="date"/>
            <field name="book_block"/>
          </group>
          </group>
          <notebook>
        <page string="Specification - Description">
        <group>
          <group string="Paper for Text">
            <group>
            <field name="wt"/>
          </group>
        </group>
          <group string="Paper for Text">
            <group>
            <field name="gsm_sheet"/>
          </group>
        </group>
          <group string="Paper for Cover">
            <group>
            <field name="gsm_cover"/>
          </group>
        </group>
      </group>
      </page>
      <page string="Production Estimate - Printing">
        <group>
          <group string="Types">
            <group>
            <field name="printing_text_type"/>
          </group>
        </group>
          </page>
                        <page string="ISBNS">
                            <field name="isbns" colspan="4" nolabel="1" >
                                <tree string="ISBNS" editable="bottom"  create="false">
                                    <field name="name"/> 
                                </tree>
                            </field>
                        </page>
         <page string="Production Estimate/Binding" attrs="{'invisible': [('additional_job', '!=', True)]}">
        <group>
          <group string="Lamination/Packeting">
            <field name="cost_rs18" />
          </group>
          <group string="Packing">
            <field name="cost_rs19" />
          </group>
          <group string="Other">
            <field name="cost_rs20" />
          </group>
          <group string="Total">
            <field name="total_totals" /> 
          </group>
        </group>
        </page>
      </notebook>
      <div class="footer">
        <field name="due_date" string="Due Date"/>
        <field name="total_totals" string="Total" />
      </div>
    </sheet>
    </form>
  </field>
</record>

如您所见,我什至在视图中放置了 string 标志,它们在 .py 文件中也有这些字符串,但它们也不会显示。

有什么想法吗?

这可能是因为您使用过:<div class="footer"> 使用“<footer>”标签。可能会奏效..

如果字符串是指标签,则应将您的字段放在一个组中。

 <div class="footer">
   <group>
    <field name="due_date" string="Due Date"/>
    <field name="total_totals" string="Total" />
    </group>
  </div>

或添加 标签

  <div class="footer">
     <label for="due_date"/>
    <field name="due_date" string="Due Date"/>
     <label for="total_totals"/>
    <field name="total_totals" string="Total" />
  </div>