I created the field for user to enter a text. But I don't want the user to copy the content somewhere and paste it into the field I created.
In py:
class classname(models.Model):
_inherit='sale.order'
field_name = fields.Char('Field Name')
In xml:
<record id = "id_name" model="ir.ui.view">
<field name="name">sale.order.inherit</field>
<field name ="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name ="arch" type ="xml" >
<xpath expr="//field[@name='existfield_id']" position ="after" >
<field name ="field_name" />
</xpath>
</field>
</record>
Could anyone help me in this?