Python 输出字段作为Odoo视图中的文本

Python 输出字段作为Odoo视图中的文本,python,odoo-8,odoo,qweb,Python,Odoo 8,Odoo,Qweb,直截了当的问题。 我们能否仅在Odoo视图中以文本形式输出字段 <record id="view_of_a_model" model="ir.ui.view"> <field name="name">the_name_of_the_view</field> <field name="model">a.beautiful.model</field> <field name="a

直截了当的问题。 我们能否仅在Odoo视图中以文本形式输出字段

    <record id="view_of_a_model" model="ir.ui.view">
        <field name="name">the_name_of_the_view</field>
        <field name="model">a.beautiful.model</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    How to output fields as text here?
                </sheet>
            </form>
        </field>
    </record>

视图的\u名称\u
a、 漂亮的模特
如何在此处将字段输出为文本?
我想补充更多的解释。我想要的是

<a href="http://localhost/DSLNG/dbo_View_PatientVisit_list.php?qs=??????put the field as text here??????" target="_blank">Open record in other application</a>

抱歉搞混了


PS:似乎人们认为使用字段标记是一种方式。但在编辑模式下,使用字段标记将字段显示为输入。我想要的是将其显示为文本,而不考虑当前的查看模式。

odoo视图中的文本

Python代码:

notes = fields.Text(string='Notes') 
<record id="view_of_a_model" model="ir.ui.view">
    <field name="name">the_name_of_the_view</field>
    <field name="model">a.beautiful.model</field>
    <field name="arch" type="xml">
        <form>
            <sheet>
               <i>notes</i> ===> Text here 
                <field name="notes" />
            </sheet>
        </form>
    </field>
</record>
XML视图:

notes = fields.Text(string='Notes') 
<record id="view_of_a_model" model="ir.ui.view">
    <field name="name">the_name_of_the_view</field>
    <field name="model">a.beautiful.model</field>
    <field name="arch" type="xml">
        <form>
            <sheet>
               <i>notes</i> ===> Text here 
                <field name="notes" />
            </sheet>
        </form>
    </field>
</record>

视图的\u名称\u
a、 漂亮的模特
注释==>此处的文本

在编辑模式下,该字段将显示为输入。无论查看模式是什么,我只需要将字段显示为文本。你知道怎么做吗?