如何更改OpenERP 7.0中的输出值

时间:2021-05-03 20:23:41

I am using Openerp 7 and I want to change the Output value on a Condition in the view.xml.

我正在使用Openerp 7,我想在view.xml中更改Condition上的Output值。

It should be something like that:

它应该是这样的:

<field name="date" string="Date" attrs="{ 'value' : ('date' , '==' , False) ? 'No Date' : date}"/>

Is there a specific Attribute to set the Value or is there a other common way?

是否有特定属性来设置值,还是有其他常用方法?

and also I don't want to create a computed Field.

而且我也不想创建一个计算字段。

1 个解决方案

#1


0  

You can do it with paceholder attribute in xml view:

您可以在xml视图中使用paceholder属性来执行此操作:

<field name="date_invoice" placeholder="No Date"/>

#1


0  

You can do it with paceholder attribute in xml view:

您可以在xml视图中使用paceholder属性来执行此操作:

<field name="date_invoice" placeholder="No Date"/>