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

[15.0][MIG] sale_coupon_order_line_link: Migration to 15.0 #94

Merged
merged 11 commits into from
Jan 18, 2023

Conversation

chienandalu
Copy link
Member

  • Standard migration

cc @Tecnativa TT37311

please review @victoralmau @CarlosRoca13

chienandalu and others added 11 commits January 18, 2023 12:09
Technical module linking order lines with programs

TT30850
Filter lines that are related to a reward: either they genereted it or
the reward is applied to them. For example:

- A promotion product domain could be: ("id", "=" product_a.id)
- The same promotion has a reward product B
- On a sale order with products A, B and C:

  - A reward line will be generated to discount B's amount and will be
    linked to the promotion.
  - Line A will have a link to the reward line as it was the condition
    for the promotion.
  - Line B will also have a link to the reward line as it's the line
    over which the discount is made.

TT31755
On the reward lines we can just invert the relation comlumns to have the
lines that generated them.

TT31755
We can now view which promotions are applied visually.

TT35401
Currently translated at 100.0% (15 of 15 strings)

Translation: sale-promotion-14.0/sale-promotion-14.0-sale_coupon_order_line_link
Translate-URL: https://translation.odoo-community.org/projects/sale-promotion-14-0/sale-promotion-14-0-sale_coupon_order_line_link/it/
If a third module adds an extra discount scope, we should:

- Allow integration returning always at least an empty object
- Allow compatibility by inheritance hooking into the method that
defines the scoped lines.

TT36131
In some cases the `recompute_coupon_lines` method could lead to miss the
previously created links. We want to ensure those links at the end of
such method.

TT40205
Copy link
Member

@victoralmau victoralmau left a comment

Choose a reason for hiding this comment

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

Code review OK

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

/ocabot migration sale_coupon_order_line_link
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Jan 18, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request Jan 18, 2023
21 tasks
@OCA-git-bot
Copy link
Contributor

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

OCA-git-bot added a commit that referenced this pull request Jan 18, 2023
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 15.0-ocabot-merge-pr-94-by-pedrobaeza-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza
Copy link
Member

Wait! Aborting. This must be renamed to coupon_sale_order_line_link.

@chienandalu
Copy link
Member Author

Well, the module depends on sale_coupon so it's correct IMO

@pedrobaeza
Copy link
Member

OK, I see... Yes, we can keep the name in this case then.

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-94-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 84a9e6c into OCA:15.0 Jan 18, 2023
@OCA-git-bot
Copy link
Contributor

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

pilarvargas-tecnativa pushed a commit to Tecnativa/sale-promotion that referenced this pull request May 30, 2023
Signed-off-by pedrobaeza
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.

None yet

6 participants