Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
650 Weergaven


i want to Remove this Button when  Cashier close session 





Avatar
Annuleer
Beste antwoord

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 

Avatar
Annuleer

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>