İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
132 Görünümler

Hallo und guten Abend,

beim Kassenabschluss wird den Mitarbeitern VOR dem Zählen der Kasse genau angezeigt, wieviel Bargeld in der Kasse vorhanden sein muss. Das kennen wir von keinem anderen Kassensystem. 

Positivdifferenzen (die eingezahlt werden müssen) tauchen somit vermutlich nie auf.

Kann ich den Einstellungen verhinden, dass der Kassenbestand vor Eingabe der Zählung angezeigt wird. Nach Eingabe der Zählung und dem Ausweisen der Differenz ist es ok.

Wer kann helfen?

Danke! 

===============


Hello and good evening,


During the cash register closing, employees are shown exactly how much cash must be in the cash register BEFORE the cash register is counted. We've never seen this in any other cash register system.


So, positive differences (which must be deposited) probably never appear.


Can I prevent the cash balance from being displayed before the count is entered? After entering the count and displaying the difference, it's fine.


Can anyone help?


Thanks!

Avatar
Vazgeç

The diff listing in 18.4 comes from here: https://github.com/odoo/odoo/blob/saas-18.4/addons/pos_hr/static/src/app/components/popups/closing_popup/closing_popup.xml (but it depends on the version you're running)
To modify this template you will need custom development.

En İyi Yanıt

Hello Andre,

Solution Options

The approach depends on whether you are using Odoo On-Premise/Odoo.sh (where you can add custom modules) or Odoo Online (SaaS) (where backend custom modules are not allowed).

Option 1 – For Odoo On-Premise / Odoo.sh

If you have the ability to add a custom module, the proper solution is to:

  1. Inherit the POS template called point_of_sale.ClosePosPopup.
  2. Override the logic that displays the cash difference or expected balance.
  3. Hide or reset the expected balance until the user submits the counted cash.

This is the cleanest and upgrade-safe solution.

Option 2 – For Odoo Online (SaaS)

please have a look this youtube video for understanding.


Since custom Python/QWeb code deployments are not allowed in SaaS, the only option is to tweak the frontend JavaScript.

Steps:

  1. Activate Developer Mode.
  2. Navigate to:
    Settings → Technical → Database Structure → Attachments.
  3. Search for the attachment named:
    point_of_sale.assets_prod.min.js
    (this contains all minified JS for POS).
  4. Download this file.
  5. Locate the code for closing_popup.js, specifically inside the setup() method.
  6. Add code to reset amounts:

    javascript

    this.props.orders_details.amount = 0; this.props.default_cash_details.payment_amount = 0; this.props.default_cash_details.amount = 0; this.props.default_cash_details.opening = 0;

  7. Save and re-upload the modified file as a replacement of the same attachment.
  8. Perform a hard refresh in your browser (Ctrl + Shift + R) to clear cache.

✔ Now the cash balance will show 0 until the cashier enters the counted amount.

⚠️ Important Note

This is not an upgrade-safe solution — the changes will be lost whenever Odoo updates/rebuilds assets (e.g., after module upgrade or version update).



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209

Email: info@candidroot.com

Avatar
Vazgeç