Wednesday, October 2, 2024
7 changes
5 changes
Resolved issues and error corrections
This change fixes an installation failure in the self-order point of sale module when a company already has a chart of accounts and demo data is not installed. It prevents the setup from depending on sample restaurant data, making the module install reliably for real business databases.
Original PR description
If the company has a CoA, it's currently not possible to install the module without the demo data. When loading the data of the module, it will lead to https://github.com/odoo/odoo/blob/3ad46fc7bbb7511efeb9e4861d9795844feec878/addons/pos_self_order/data/kiosk_demo_data.xml#L3-L5 https://github.com/odoo/odoo/blob/9511bacc89cc23ce162f93af4682a4806c45dfda/addons/pos_self_order/models/pos_config.py#L344-L352 Since the company has a CoA, we execute the `ref` but they target demo data, cf how they are loaded: https://github.com/odoo/odoo/blob/0bc90e7d74bd0792b9af7464256ba8770d894a25/addons/pos_restaurant/data/demo_data.xml#L4 https://github.com/odoo/odoo/blob/b9f9dbb7a1cd7d8812658c68daca89191c28eda7/addons/pos_restaurant/models/pos_config.py#L107-L111 https://github.com/odoo/odoo/blob/e2f08d58ff024228c3f472b35fd4aef7e60bdde4/addons/pos_restaurant/data/scenarios/restaurant_data.xml#L9-L12 Hence `ValueError: External ID not found in the system: pos_restaurant.food` OPW-4226855
Payment records now show as reconciled when they have been paid without a separate journal entry, which helps batch payments report the correct completion status. Payments that fail check printing no longer show a misleading sent indicator, and draft payments are prevented from being marked paid when they still need validation.
Original PR description
The matched state of the payment should be marked as reconciled when the payment is paid in the case there is no journal entry for the payment. Otherwise keep the states depending on the reconciliation.
The lunch dashboard layout now displays correctly on tablets and mobile phones. This makes it easier for users to browse and order lunch from smaller screens without visual or navigation issues.
Original PR description
This PR fixes layout issues in the lunch dashboard on tablet and mobile. task-4218941 | Before | After | |--------|--------| |  |  | |  |  | --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix suppresses an unnecessary warning that appeared when loading push notification functionality on newer Ubuntu environments. It keeps system logs cleaner and avoids distracting messages without changing the user-facing behavior.
Original PR description
On google-auth import, setuptools will emit a warning in ubuntu noble when importing pkg_resources. This was not visible before the previous commits because another import of pkg_resources was made before enabling the warnings. The pkg_resources import is removed in google-auth >= 1.23.0 but the noble version is 1.5.1 (as it was in jammy)
Bank reconciliation and batch payment flows now work correctly when payments do not have journal entries. This prevents reconciliation errors and ensures batch payment amounts keep the right sign, while preserving existing stable-version behavior.
Original PR description
Since the entries are optional for payments [^1], the bank reconciliation widget was not working anymore because it was relying heavily on the fact that there are journal entries created. This commit introduces support for payments without entries by: * looking at payments instead of journal entries when relevant * not unfolding the batch payments anymore, cancelling/rejecting payments can be done through the batch payment form view * removing the payment rejection wizard, same reason [^1]: https://github.com/odoo/odoo/commit/01b87f1230beac0568f4e3b1b76e547909506892
2 changes
Resolved issues and error corrections
A specialized product catalog view designed for field service management was incorrectly appearing when selecting products on sales orders in mobile view. This fix ensures the catalog view is only used in its intended location, preventing confusion and ensuring the correct product selection interface appears in sales orders.
Original PR description
For all 17.0 databases of a specific partner (strangely it couldn't be reproduced on runbot), the fsm catalog view was used to select product on sale order lines in mobile view. This commit ensures that this custom view will only be used for the specific action using it and won't appear in other places. opw-4196351
This fix resolves a problem where empty batch pickings could not be opened in the barcode application. The issue occurred because the system tried to load operation type information from cache but the backend didn't send the necessary data for empty batches. The fix ensures the operation type information is properly loaded in the frontend cache, allowing users to successfully open and work with empty batch pickings.
Original PR description
## Steps to reproduce: 1. Create a new batch picking (in the Inventory app) 2. Set an operation type and save 3. Open the batch picking in the barcode application ## Before this commit: Because the batch picking has an operation type, Odoo will try to load it from the cache, but since the batch picking is empty, the backend did not send any `stock.picking.type`. ## After this commit: Load the `stock.picking.type` in the frontend cache. opw-4175883 Forward-Port-Of: odoo/enterprise#70400