Skip to Content
मेन्यू
This question has been flagged

I try to insert a call sign before the entered text. if I enter a text in the field after saving! are displayed

def _warnings(self, cr, uid, context=None):

mytext = textwrap.dedent('warning')

wrapped = textwrap.fill(mytext)

result = textwrap.indent(wrapped, '! ')

return result


'warning': fields.char(compute='_warnings',readonly=True, states={'Draft': [('readonly', False)]}),
---------------------
XML

<tree string='Test'>

<field name="warning"/>

Avatar
Discard
Related Posts Replies Views Activity
2
जुल॰ 19
22387
4
मार्च 16
6999
3
सित॰ 25
3016
0
मार्च 25
1654
0
जन॰ 25
3834