This question has been flagged

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

Avatar
Discard

Hi Haresh, could you post your code please?

Hello,

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

Best Answer
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.
Avatar
Discard

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.