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

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 



頭像
捨棄
最佳答案

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 

頭像
捨棄

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>

作者

Ok thank you it's working

作者 最佳答案

Ok thank you it's working 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
9月 24
1570
1
8月 24
1547
1
8月 20
9253
2
6月 20
4317
0
7月 24
1095