odoo/industry#2185
Created by Dharmil Goyani (dhgoy)
Blocked
- Merge method
- Review
-
CI
- ci/industry: (runtime 3873s)
- label
- odoo-dev:19.0-fix-pos-payment-validation-dhgoy
- head
- 9952360b0ab446759c902a0739ba1b199d562d8f
| odoo/industry | |
|---|---|
| 19.0 | #2185 missing r+ |
| saas-19.1 | |
| saas-19.2 | |
| saas-19.3 | |
| master |
[FIX] *: prevent an error while validating the payment
*= ['florist', 'bike_shop', 'museum', 'takeaway_restaurant', 'wine_merchant']
Currently, an error occurs while validating a POS payment in above industries.
Step to reproduce:
- Install the florist industry.
- Open a POS session.
- Validate a payment.
ValidationError: Journal is required for payment methods.
The issue occurs because some POS payment methods are created without a
journal_id. The journal_id field is mandatory for payment methods,
and payment validation expects valid journals on all configured payment
methods.
To fix this issue, create a cash journal and assign it to the cash payment
method, and assign a bank journal to the card payment method.
In the takeaway restaurant, the same cash payment method was used across
multiple POS configurations. If a journal is assigned to the shared cash payment
method, it raises a validation error because the same cash payment method
cannot be used in different POS configurations. To fix this issue, create
separate cash journals for different POS configurations and assign them to
their respective cash payment methods.
Task ID-6193655