Friday, June 7, 2024
2 changes · master
Resolved issues and error corrections
This fixes an unnecessary warning that appeared when a customer saved a payment token on a subscription. The change helps keep subscription payment flows cleaner and avoids misleading log messages without changing the customer-facing process.
Original PR description
Before this commit, the following warning was visible when customer saved a token on his subscription following https://github.com/odoo/enterprise/pull/49963/files#diff-2ad4b41ff096801e7a6846995ca51ebd96103c40c3591f5b8446771cb3a730e5L172-R182 ``` 2024-06-03 14:52:35,361 130974 INFO prout werkzeug: 127.0.0.1 - - [03/Jun/2024 14:52:35] "POST /payment/status/poll HTTP/1.1" 200 - 215 0.104 4.095 2024-06-03 14:52:35,506 130974 WARNING prout py.warnings: <634>:14: UserWarning: unsupported operand type(s) for "==": 'payment.token()' == '1' ```
This fixes an internal naming issue in the Data Cleaning app introduced during a previous merge. It helps ensure the app references the correct model, reducing the risk of errors in data cleanup workflows.
Original PR description
model name was not changed after merge in 4fc497861fbefee7f4761c3341a3c2bd289edb31