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] sale_loyalty_order_info: New module #177

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

marielejeune
Copy link
Contributor

This module provides more info on the applied loyalty rewards on a sale order.
It provides:

  • The total reward amount, computed tax included;
  • A list of the applied promo codes;
  • All generated coupons from this sale order;
  • All programs applied to the sale order.

@marielejeune marielejeune changed the title [16.0] [ADD] New module: sale_loyalty_order_info [16.0] [ADD] sale_loyalty_order_info: New module Nov 13, 2023
Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @marielejeune !

Some questions about the implemation:

sale_loyalty_order_info/models/sale_order.py Outdated Show resolved Hide resolved
sale_loyalty_order_info/models/sale_order.py Outdated Show resolved Hide resolved
@marielejeune marielejeune force-pushed the 16.0-add-sale_loyalty_order_info-mle branch from 1b36103 to cd6ed8c Compare November 13, 2023 13:18
Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do the user get these infos. I can't see any related views

@marielejeune
Copy link
Contributor Author

Where do the user get these infos. I can't see any related views

These fields are added for reporting purposes. One can add them in views if needed, but I didn't to avoid triggering computations (computed non stored fields).

@chienandalu
Copy link
Member

Ok, a note in the readme describing the current module purpose would be enough 🙂

@marielejeune marielejeune force-pushed the 16.0-add-sale_loyalty_order_info-mle branch from cd6ed8c to 13e3897 Compare December 22, 2023 14:39
@marielejeune
Copy link
Contributor Author

Ok, a note in the readme describing the current module purpose would be enough 🙂

Done!

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

Copy link

@lmignon lmignon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (Code review)

@pedrobaeza pedrobaeza added this to the 16.0 milestone Jan 16, 2024
@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-177-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit bdcfbd4 into OCA:16.0 Jan 16, 2024
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at ad01676. Thanks a lot for contributing to OCA. ❤️

@lmignon lmignon deleted the 16.0-add-sale_loyalty_order_info-mle branch January 17, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants