-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
10.0 porting website_sale_checkout_skip_payment #203
10.0 porting website_sale_checkout_skip_payment #203
Conversation
Website Sale Checkout Skip Payment | ||
================================== | ||
|
||
This module allows to logged users to checkout with no payment step. At the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"allows logged users"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simahawk done
@@ -0,0 +1,63 @@ | |||
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
png
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simahawk readme files re-created with new fragments
{ | ||
'name': 'Website Sale Checkout Skip Payment', | ||
'summary': 'Skip payment for logged users in checkout process', | ||
'version': '10.0.0.1.0', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10.0.1.0.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simahawk done
'summary': 'Skip payment for logged users in checkout process', | ||
'version': '10.0.0.1.0', | ||
'category': 'Website', | ||
'website': 'https://www.tecnativa.com', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simahawk done
|
||
@http.route() | ||
def payment_get_status(self, sale_order_id, **post): | ||
# When skip payment step, the transaction not exists so only render |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transaction does not exists
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simahawk done
@api.multi | ||
def _compute_checkout_skip_payment(self): | ||
for rec in self: | ||
if request.session.uid: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just checking: is 100% that this is going to be recomputed for each user?
I'd rather use a std model method to get it not cached.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simahawk just tested with 2 different users on 2 different browsers: it works
I get this error when confirming an order through web shop :
|
Hi @eLBati thanks for this migration! Please could you check comments? Thanks |
Hello @eLBati could you review comments? Are you interested in continuing this PR?
Let me know! 😃 |
…ment step in checkout process
OCA Transbot updated translations from Transifex
…ut confirmation step when partner is has skip payment flag (#1)
@grindtildeath can you describe the steps to reproduce the error? I am not able to reproduce it in a standard scenario |
e26b2c5
to
6f67dbc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eLBati Tested again and seems to work, so approved.
@eLBati My bad, but while switching off my local instances, I just see I had the same error in my server logs, I'll try to give it another look tomorrow. |
@eLBati Just tested again and this happens when confirming the order on the webshop with a user having skip payment activated. The UX looks ok, but we get this error in the logs. |
FIX website_sale_checkout_skip_payment/controllers/main.py", line 35, in payment_get_status 'message': request.website._render( AttributeError: 'website' object has no attribute '_render'
6f67dbc
to
e0f9216
Compare
@grindtildeath thanks, fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using it in production since a while and everything works OK.
/ocabot merge |
On my way to merge this fine PR! |
@rafaelbn your merge command was aborted due to failed check(s), which you can inspect on this commit of 10.0-ocabot-merge-pr-203-by-rafaelbn-bump-no. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
Why this was never merged ? |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
No description provided.