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

[14.0][MIG] website_sale_affiliate: Migration to version 14.0 #874

Open
wants to merge 11 commits into
base: 14.0
Choose a base branch
from

Conversation

em230418
Copy link

No description provided.

hughesbm and others added 7 commits November 13, 2023 15:36
* [ADD] website_sale_affiliate: Create module
* Add sale.affiliate and sale.affiliate.request models
* Override WebsiteSale controller shop method to store affiliate
  id & key kwargs of shop urls in session
* Override sale order create method to store affiliate request
* Add affiliate and request views, links in Sales/Affiliates
* Add affiliate_request_id to sale.order form view
* Add request sequence record, make default for new affiliates
* Add access rights to sales users/managers
* Add tests
* Add readme instructions

* [IMP] website_sale_affiliate: Make requested changes
* Update readme
* Add controller override to catch product urls
* Remove redundant return None
* Replace if statements with try/except when appropriate
* Change api decorator on sale.affiliate.find_from_session method
  from model -> model_cr_context
* Add check to avoid unnecessary db search in find_from_session if
  no affiliate_id
* Fix tests
* Add new tests

* [IMP] website_sale_affiliate: Make requested changes
* Un-nest try/except statements for readability
* Rename kwargs: ref, key -> aff_ref, aff_key
* Improve request search speed for large recordsets
* Document similarly-named methods for clarity
* Tweak tests as needed
* Add additional test
* Add roadmap to readme

* [REM] website_sale_affiliate: Remove affiliate request IP-matching

* [IMP] website_sale_affiliate: Change affiliate request creation
* Create affiliate requests regardless of whether a sale occurs
* Add basic conversion/sales stats to affiliate model and views
* Update tests
* Add demo data
* Clean up views
* Remove line used for debugging
* Add field string for clarity

* [FIX] website_sale_affiliate: Fix compatibility issues, tests
* Fix controller method overrides to avoid conflicts
* Match assertAlmostEqual decimal places to amount used in fields
* Remove/replace tests with unneeded url_open calls
* Rename files, variables for clarity
* Clean up demo/test data

* [IMP] website_sale_affiliate: Clarify affiliate request name
* Add help to name field on affiliate request model
* Handle the case of no web session, which will raise a `RuntimeError('object unbound')` when attempting to access it. This happens during XML record creations, but likely other places such as in the shell
Currently translated at 13.7% (7 of 51 strings)

Translation: e-commerce-10.0/e-commerce-10.0-website_sale_affiliate
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-10-0/e-commerce-10-0-website_sale_affiliate/it/
@em230418 em230418 changed the title [14.0][MIG] website_sale_stock_provisioning_date: Migration to version 14.0 [14.0][MIG] website_sale_affiliate: Migration to version 14.0 Nov 13, 2023
@em230418 em230418 force-pushed the 14.0-mig-website_sale_affiliate branch from 4f9569e to 5e598e6 Compare November 15, 2023 05:29
@em230418 em230418 force-pushed the 14.0-mig-website_sale_affiliate branch from 5e598e6 to f431e1d Compare November 15, 2023 06:43
@em230418 em230418 force-pushed the 14.0-mig-website_sale_affiliate branch from f431e1d to 468da09 Compare November 16, 2023 05:05
@em230418 em230418 force-pushed the 14.0-mig-website_sale_affiliate branch from 468da09 to 7f10878 Compare November 16, 2023 05:24
@em230418 em230418 marked this pull request as ready for review November 16, 2023 05:35
Copy link

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.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 24, 2024
@em230418
Copy link
Author

Hi, @simahawk! Could please add "no stale" tag here?

@rvalyi rvalyi added no stale Use this label to prevent the automated stale action from closing this PR/Issue. and removed stale PR/Issue without recent activity, it'll be soon closed automatically. labels Mar 25, 2024
@rvalyi
Copy link
Member

rvalyi commented Mar 25, 2024

Hi, @simahawk! Could please add "no stale" tag here?

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no stale Use this label to prevent the automated stale action from closing this PR/Issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants