Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
2030 Представления

Hello,

How to remove "e.g. Cheesebuerger" when creating a new product?


Denis

Аватар
Отменить
Автор

Thanks, it works.

Denis

Лучший ответ

Hi,

This is the value of placeholder given for the field at the view level, you can inherit the form and change the value of placeholder to null or empty string.

View definition:  field class="text-break" name="name" placeholder="e.g. Cheese Burger"

View ID: product.product_template_form_view

Thanks

Аватар
Отменить
Лучший ответ

Hi,

Inherit and remove the placeholder,

<record model="ir.ui.view" id="product_template_remove_place_holder">
<field name="name">product.template.remove.placeholderfield>
<
field name="model">product.templatefield>
<
field name="inherit_id" ref="product.product_template_form_view"/>
<
field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="attributes">
<attribute name="placeholder">attribute>
xpath>
field>
record>


If you need to do it from the frontend ,

Activate Developer mode 

Goto Settings > Technical > User Interface > Views and search for 'product.template.common.form



Remove the placeholder and save.


Hope it helps,

Kiran K

Аватар
Отменить
Лучший ответ

If you using the studio app


Аватар
Отменить