Hi i added a button of type object in my xml which will play a mp3. But it disables automatically if i click it once ,I didnt write any code for that, it automatically adds disabled="disabled" for that button. How to prevent that? or how can i remove disable property. if i onclick for that button it shows xml error.Any one please help!!
My code is
<record id="voipdata_tree_view" model="ir.ui.view">
<field name="name">File Details</field>
<field name="model">filedata</field>
<field name="priority" eval="1"/>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="File Names" >
<field name="file_name" />
<field name="time_created" string="Time Created"/>
<field name="size" string="Size"/>
<field name="file_object" string="Download or Play" filename="file_name"/>
<button name="play_file" type="object" string="Play" icon="gtk-media-play" onclick="reove_hie()" />
</tree>
</field>
</record>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
8364
Widoki
If you are write the function for play into python.you can write like below code. <button name="reove_hie" type="object" string="Play" icon="gtk-media-play"/> here not need onclick .
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
mar 15
|
5173 | ||
|
3
kwi 25
|
4387 | ||
|
5
lis 23
|
42730 | ||
Create dynamic tree view
Rozwiązane
|
|
3
wrz 23
|
9312 | |
|
1
wrz 22
|
3563 |