Skip to Content
Menu
This question has been flagged
2355 Views

Hi, i need to translate attribute message in xml that i need to use in JS.

<field name="field1" onhange_warning="warning message!"/>

I need to translate onhange_warning xml or in JS


here is my JS code


Dialog.alert(this, _t(this.attrs['onhange_warning']), {
                    title: _t('Warning'),
                });
Avatar
Discard
Related Posts Replies Views Activity
1
Apr 21
2305
0
Feb 22
1114
1
May 21
14554
1
Apr 21
3173
1
Aug 20
7681