Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7083 Lượt xem

how can i add a confirm message to the "Confirm" Button of Sale Order?

i tried to inherit from sale.view_order_form and add:

<xpath expr="//button[@name='action_confirm']" position="replace">
<attribute name="confirm">Pleas confirm........</attribute>
</xpath>

but  without success

how can i add such a confirm message to this button?



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Try the below code,



sale.order.form
sale.order



please confirm


please confirm

For More see:
 
 


Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

does the //button[@name='action_confirm replace both?

in your replace code you only add one new button

Please see the updated answer, you have to replace two buttons separately, for this use //button[@name='action_confirm'][0] and //button[@name='action_confirm'][1]

Tác giả

//button[@name='action_confirm'][0] does not work. while updating my cusom model i get error that it could not find it in the inherited view

Sorry, i have again updated the answer, hope this will give you the solution

Tác giả

thanks now it works

Câu trả lời hay nhất

This will helpful

 
 

Ảnh đại diện
Huỷ bỏ