Skip to content

[FIX] *: prevent an error while validating the payment#2185

Open
dhgoy-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-fix-pos-payment-validation-dhgoy
Open

[FIX] *: prevent an error while validating the payment#2185
dhgoy-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-fix-pos-payment-validation-dhgoy

Conversation

@dhgoy-odoo
Copy link
Copy Markdown

*= ['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

 *= ['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
@C3POdoo C3POdoo requested a review from a team May 19, 2026 10:42
@robodoo
Copy link
Copy Markdown
Collaborator

robodoo commented May 19, 2026

Pull request status dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants