summaryrefslogtreecommitdiff
path: root/addons/web_editor/static
diff options
context:
space:
mode:
authornie <nie@odoo.com>2021-02-19 17:08:50 +0000
committernie <nie@odoo.com>2021-02-22 15:15:58 +0000
commit2adc9750fa844f53e05c4b95474daf8ca3755a8e (patch)
tree2ce80b370766b03ef8a5e4f348f17abee1877307 /addons/web_editor/static
parentbb411a2f125a09713eb749b6884308a8c2f15f36 (diff)
[FIX] payment: link to order when not connected
Steps: - Install sales,payment - Go to Sales - Create a quotation - Click Actions > Generate a Payment Link - Browse the link in a private window - Pay Bug: The transaction is not linked to the sale order in the link table `sale_order_transaction_rel` Explanation: When not connected, the user doesn't have the rights to read the order. This leads `order_id` to be set to `None`: https://github.com/odoo/odoo/blob/d2f3c9e7975188753fa17c06db3fc5c73c773944/addons/payment/controllers/portal.py#L177-L178 When paying without `order_id`, the app is not able to make a link with the transactions: https://github.com/odoo/odoo/blob/d2f3c9e7975188753fa17c06db3fc5c73c773944/addons/payment/controllers/portal.py#L276-L277 This raises problems such as not being able to capture an amount as seen here: https://github.com/odoo/odoo/blob/d2f3c9e7975188753fa17c06db3fc5c73c773944/addons/sale/views/sale_views.xml#L254-L257 If we ensure a `partner_id` is present, using `sudo` here shouldn't be a problem as the data is protected by the token. Everything we get from `order_id` should already be in the URL. opw:2451564 closes odoo/odoo#66616 X-original-commit: f1f73fd2f8efdbac18d33d4e0b866ca50a28d537 Signed-off-by: backspac <backspac@users.noreply.github.com>
Diffstat (limited to 'addons/web_editor/static')
0 files changed, 0 insertions, 0 deletions