Monday, August 4, 2025
2 changes · saas-18.3
New functionality added to Odoo
Adds a new Cambodia accounting package in Odoo with local chart of accounts, taxes, tax reports, fiscal positions, and payment QR code support. This helps Cambodian businesses set up compliant accounting faster and accept EMV QR payments within the system.
Original PR description
Implement a basic accounting package for Cambodia including: - COA - Account groups - Tax groups - Taxes - Fiscal Positions - Tax reports - EMV QR Code for payment task-4383330 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#221616 Forward-Port-Of: odoo/odoo#218091
Resolved issues and error corrections
The point of sale settlement process now loads only invoices linked to the selected POS configuration, instead of trying to load every invoice in the system. This prevents memory failures in large databases and keeps POS operations more reliable.
Original PR description
Issue: - The `_load_pos_data` method was fetching all `account.move` records instead of only those related to the POS orders of the selected configuration. - This caused MemoryError Cause: - The [_load_pos_data](https://github.com/odoo/enterprise/blob/saas-18.3/pos_settle_due/models/account_move.py#L18-L20) method used an empty domain (`[]`) because the `_load_pos_data_domain` method was not properly implemented. - As a result, `search_read` fetched all available `account.move` records in the system, regardless of the POS config context. Fix: - This commit implements `_load_pos_data_domain` to: - Retrieve only POS orders for the current config with linked invoices. - Extract their related `account.move` IDs. - Return a domain to limit the search to only those move IDs. ``` rari_3017353=> select count(*) from account_move; count --------- 1607249 (1 row) ``` task-4920625