跳至内容
菜单
此问题已终结
1 回复
659 查看


i want to Remove this Button when  Cashier close session 





形象
丢弃
最佳答案

Hello, ali badreldein ali elhussien 


    To remove the 'Daily Sale' button when cashier close session, please follow below steps.

    

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

       

          

           

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

    

          

           

        3) In 'closing_popup.xml' file add below code snippet.

  /////Code in Comment

        4) Do not forget to replace 'your_module_name' to Actual module name.

        

        5) Below is the screenshot of expected Output :

        

          

I Hope this information proves helpful to you.

Thanks & Regards,

Email:   odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari 

形象
丢弃

3) In 'closing_popup.xml' file add below code snippet.

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="your_module_name.ClosePosPopup" t-inherit="point_of_sale.ClosePosPopup" t-inherit-mode="extension">
<xpath expr="//div[@class='modal-footer-right d-flex gap-2']" position="replace">
</xpath>
</t>
</templates>