Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pos_payment_change : payment_date #1325

Open
jguenat opened this issue Mar 3, 2025 · 1 comment
Open

pos_payment_change : payment_date #1325

jguenat opened this issue Mar 3, 2025 · 1 comment

Comments

@jguenat
Copy link
Member

jguenat commented Mar 3, 2025

Hello,

In module pos_payment_change, the field payment_date (Datetime) is set as shown bellow when changing a payment.

"payment_date": fields.Date.context_today(self),

I have some issues with this :

  • the field payment_date is of type Datetime but is assigned a Date -> New payment will be at a strange hour (01:00 in the morning).
  • If you change a payment a few days after the order, e.g. when closing the pos session, then the new payment_date will be the day you do the correction which does not reflect reality.

I think it would be best to use the payment_date of the original payment or better to let the user choose the date and time in the wizard (with a default at the order creation date/time).

Do you know why it was done that way originally?

Depending on feedback I could propose an improvement.

Thank you

@legalsylvain
Copy link
Contributor

I think it would be best to use the payment_date of the original payment or better to let the user choose the date and time in the wizard (with a default at the order creation date/time).

Totally agree. @quentinDupont what do you think ?

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

No branches or pull requests

2 participants