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

[16.0][ADD] website_sale_product_compatibility and website_sale_product_contract_gift #351

Open
wants to merge 22 commits into
base: 16.0
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
6e8ff34
[ADD] website_sale_product_compatibility
remytms Jan 19, 2025
96eeae1
[ADD] website_sale_product_contract_gift
remytms Jan 19, 2025
4202f1f
[ADD] website_sale_product_contract_gift: add date for gift
remytms Feb 19, 2025
a3d82cd
[ADD] website_sale_product_contract_gift: create contract for gift
remytms Feb 20, 2025
175e624
[FIX] website_sale_product_contract_gift: prevent skipping address ch…
remytms Mar 5, 2025
a4b7b25
[FIX] website_sale_product_contract_gift: mandatory email
remytms Mar 5, 2025
3ea17b2
[IMP] website_sale_product_contract_gift: change partner and create user
remytms Mar 5, 2025
b0c839b
[FIX] website_sale_product_contract_gift: show email error
remytms Mar 6, 2025
282ef53
[FIX] website_sale_product_contract_gift: configure recurrence on con…
remytms Mar 6, 2025
01126fa
[FIX] website_sale_product_contract_gift: constraint on sale.order
remytms Mar 6, 2025
5f9fc1e
[FIX] website_sale_product_contract_gift: error in compute gift_date
remytms Mar 13, 2025
944c25d
[IMP] website_sale_product_compatibility: improvement without changes
remytms Mar 19, 2025
eabae42
[IMP] website_sale_product_contract_gift: cosmetic changes
remytms Mar 19, 2025
dc360a2
[FIX] add-website_sale_product_contract_gift: find existing partner
remytms Mar 19, 2025
209a068
[REF] website_sale_product_contract_gift: use new js system
remytms Mar 19, 2025
20bbd65
[FIX] website_sale_product_contract_gift: product compatibility
remytms Mar 20, 2025
e80e4f4
[IMP] website_sale_product_contract_gift: auto confirm gift order
remytms Mar 20, 2025
70c1aff
[REM] website_sale_product_contract_gift: remove cron
remytms Mar 26, 2025
e167cc3
[FIX] website_sale_product_contract_gift: wrong i18n
remytms Mar 26, 2025
864cc6a
[REF] website_sale_product_contract_gift: use mapped only on non-rela…
remytms Mar 26, 2025
35e5766
[FIX] website_sale_product_contract_gift: missing dependency
remytms Mar 26, 2025
2f686ad
[REF] website_sale_product_contract_gift: use test domain instead of …
remytms Mar 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[FIX] website_sale_product_contract_gift: prevent skipping address ch…
…oice
  • Loading branch information
remytms committed Mar 5, 2025
commit 175e62405cbf988c55072126ab075658758b59a2
15 changes: 15 additions & 0 deletions website_sale_product_contract_gift/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@


class WebsiteSaleIsGift(WebsiteSale):
@http.route(
["/shop/address"],
type="http",
methods=["GET", "POST"],
auth="public",
website=True,
sitemap=False,
)
def address(self, **kw):
order = request.website.sale_get_order()
# Ensure user go back to checkout after editing an address
if order.is_gift:
kw["callback"] = "/shop/checkout"
return super().address(**kw)

@http.route(
["/shop/checkout"], type="http", auth="public", website=True, sitemap=False
)
Expand Down