Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
651 Vizualizări


i want to Remove this Button when  Cashier close session 





Imagine profil
Abandonează
Cel mai bun răspuns

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 

Imagine profil
Abandonează

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>