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

I'm working on project and I need to remove section from the "ProductInfoPopup" this section is 

"section-financials" and I try to use this code 


     

         

                ----------

         

     



but It give me errors, I do not know what is the problem 



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

Hello Ahmed Mohamady, 


    To Hide the section that you have mentioned, Please follow below steps : 

    

    1) Create a Module, after that create a folder structure as shown in below image.

      

       

    2) Register the pos assets in __manifest__.py file.

      

       

    3) Add below code in .xml file.


 ///// code in comment


    4) Here is the screenshot of expected Output :    

I Hope this information proves helpful to you.

Thanks & Regards,

Email:   odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari 

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

Code:

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="your_module_name.ProductInfoPopup" t-inherit="point_of_sale.ProductInfoPopup" t-inherit-mode="extension">
<xpath expr="//div[@class='section-financials mt-3 mb-4 pb-4 border-bottom text-start']" position="replace">
</xpath>
</t>
</templates>

Tác giả

Ok thank you it's working

Tác giả Câu trả lời hay nhất

Ok thank you it's working 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 24
1571
1
thg 8 24
1548
1
thg 8 20
9253
2
thg 6 20
4320
0
thg 7 24
1097