Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
2455 Weergaven

Odoo V16

Model: purchase.order

"Create Bill" to be changed to "Certify Bill" without altering its actions and linking to other models.

Avatar
Annuleer
Beste antwoord

Hi,

If you are doing it from a custom module, inherit the corresponding form view, and you can change the value of string attribute of the button with name action_create_invoice

1. Inherit the view: purchase.purchase_order_form in custom module

2. Using xpath, change the string of button  action_create_invoice


Sample:


Certify Billattribute>
xpath>

Certify Billattribute>
xpath>


 In the given code, some xml tags are missing due to issue in the code editor, please correct the syntax before you try the above code


Thanks

Avatar
Annuleer

This solution will not work. I have already implemented the code. I was thinking the same way, but now need to think of some other solution.

as there is multiple buttons with the same name, we just need to alter the xpath correctly using position [1] [2]

Beste antwoord

Hi, 
You can create another button with the same name. You can provide any value to the string like string="Certify Bill". Now make the earlier button with a string value as 'Create Bill' invisible using XPath and position="attributes".

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 21
4019
3
mrt. 15
8920
2
okt. 20
5230
2
okt. 20
3606
1
jun. 20
2052