跳至內容
選單
此問題已被標幟
1 回覆
3488 瀏覽次數

I would like to hide "Refund" button for all users. Could you please help me how I can do like that? Thanks a lot.

頭像
捨棄
最佳答案

Hello Thura

there is a  template name = point_of_sale.RefundButton need to hide or remove from UI  using following inherited xml

<  ?xml version="1.0" encoding="UTF-8"?>
< templates id="template" xml:space="preserve">

< t t-inherit="point_of_sale.RefundButton" t-inherit-mode="extension">
< xpath expr="//div[hasclass('control-button')]" position="replace">
< /xpath>
< /t>

< /templates>

Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat



頭像
捨棄

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">

<t t-inherit="point_of_sale.RefundButton" t-inherit-mode="extension">
<xpath expr="//div[hasclass('control-button')]" position="replace">
</xpath>
</t>

</templates>

作者

Thanks a lot for your answer. I will try it

please do upvote or mark as best answer if this answer really helps you !!

相關帖文 回覆 瀏覽次數 活動
2
12月 22
2712
0
11月 22
1696
1
6月 25
1589
3
7月 25
3237
1
5月 25
1384