Skip to content

[ADD] website_sale_affiliate: Added copy button - #1289

Open
AnmollGarg wants to merge 1 commit into
OCA:17.0from
AnmollGarg:17.0-add_website_sale_affiliate
Open

[ADD] website_sale_affiliate: Added copy button#1289
AnmollGarg wants to merge 1 commit into
OCA:17.0from
AnmollGarg:17.0-add_website_sale_affiliate

Conversation

@AnmollGarg

Copy link
Copy Markdown

This PR adds a referral URL field with a copy-to-clipboard button on the Affiliate form view to allow quick sharing of affiliate referral links.

Changes:

  • sale.affiliate Model: Added computed affiliate_link field ({base_url}/shop?aff_ref={id}).
  • Form View (sale_affiliate_view.xml): Displayed affiliate_link with CopyClipboardButton widget alongside the URL field.

Testing:

  • Open Sales > Affiliates and open an affiliate record.
  • Verify the generated affiliate URL and click the copy button to test clipboard copying.

@OCA-git-bot OCA-git-bot added series:17.0 mod:website_sale_affiliate Module website_sale_affiliate labels Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:website_sale_affiliate Module website_sale_affiliate series:17.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants