Меню

Допомога

0

Set field value as button label in record form view

Avatar
Haresh Kansara

Hello All,


Is there any possibility to add field value as a button label?

I have added one button in sales order line and i want to show some field value as a label on button.


Thanks in advance

2 Коментарі
Аватар
Відмінити
Avatar
ti-sq
-

Hi Haresh, could you post your code please?

Avatar
Mohamed Lamine Lalmi
-

Hello,

I think you question is not clear. Can you post your code please?

3 Відповіді
1
Найкраща відповідь
Hi,
You can choose the button tag for this. Create a button tag and place the field inside the button tag. Below is a small example for this.
<button class="oe_stat_button" name="document_view" type="object">
<field name="document_count"/>
</button>
Hope this helps.
1 Коментар
Аватар
Відмінити
Avatar
Muhammad Umar
-

how I can get the record id in link of the button. I want to print the record using button. /report/pdf/report.reportname_9631690ee65a/ID... I want to get the ID of the record. Please help.