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] sale_coupon_order_line_link: Migration to 14.0 #53

Merged

Conversation

ilyasProgrammer
Copy link
Member

No description provided.

chienandalu and others added 14 commits May 6, 2022 18:10
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
@pedrobaeza pedrobaeza added this to the 14.0 milestone May 6, 2022
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.

Is any migration script needed?

"development_status": "Production/Stable",
"category": "Sale",
"website": "https://github.com/OCA/sale-promotion",
"author": "Tecnativa, Odoo Community Association (OCA)",
"author": "Ilyas, Ooops404, Tecnativa, Odoo Community Association (OCA)",
Copy link
Member

Choose a reason for hiding this comment

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

I'm afraid a migration of this scope doesn't grant you co-authorship. You can put yourself on contributors though

Copy link

Choose a reason for hiding this comment

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

@pedrobaeza is it ok now ?

@ilyasProgrammer
Copy link
Member Author

Is any migration script needed?

As i understand it is not required here. But i'm not 100% sure.

@ivs-cetmix
Copy link
Member

ivs-cetmix commented May 13, 2022

The migration script is needed if the data structure was changed in the new version. E.g. in v14 account.move field "type" was renamed into "move_type". If there are any similar cases in this module then the migration scripts are mandatory

@elvise
Copy link

elvise commented May 16, 2022

@pedrobaeza is it good now? :)

Copy link
Contributor

@francesco-ooops francesco-ooops left a comment

Choose a reason for hiding this comment

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

Functional review ok!

Copy link

@SicurSam SicurSam left a comment

Choose a reason for hiding this comment

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

Functional review ok!

@elvise
Copy link

elvise commented May 18, 2022

@pedrobaeza any news for this ?

@elvise
Copy link

elvise commented May 19, 2022

@OCA/crm-sales-marketing-maintainers @pedrobaeza there is someone for review this PR ?

@rousseldenis
Copy link
Sponsor

/ocabot migration sale_coupon_order_line_link

@OCA-git-bot
Copy link
Contributor

There's no issue in this repo with the title 'Migration to version 14.0' and the milestone 14.0, so not possible to add the comment.

@rousseldenis
Copy link
Sponsor

@ilyasProgrammer Thanks for this. Could you squash your last two commits into one ?

Copy link
Sponsor

@rousseldenis rousseldenis 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

@ilyasProgrammer ilyasProgrammer force-pushed the 14.0-mig-sale_coupon_order_line_link_2 branch from 7879de5 to 9acf1a0 Compare May 20, 2022 11:00
@rousseldenis
Copy link
Sponsor

/ocabot migration sale_coupon_order_line_link

@OCA-git-bot OCA-git-bot mentioned this pull request May 20, 2022
5 tasks
@francesco-ooops
Copy link
Contributor

@rousseldenis can we also merge please? 🥵

@rousseldenis
Copy link
Sponsor

@rousseldenis can we also merge please? hot_face

The merge is conditioned to approvals. There is still a pending change request from @pedrobaeza

You should always first ping those users :

image

@francesco-ooops
Copy link
Contributor

@rousseldenis can we also merge please? hot_face

The merge is conditioned to approvals. There is still a pending change request from @pedrobaeza

You should always first ping those users :

image

"Formally" I understand, but the remarks by @pedrobaeza were addressed a week ago, so that should not prevent merge imho

anyway, @pedrobaeza could you update your review please?

@pedrobaeza
Copy link
Member

I'm all week on the Spanish Odoo days with little time to other activities. I'll review ASAP.

@francesco-ooops
Copy link
Contributor

I'm all week on the Spanish Odoo days with little time to other activities. I'll review ASAP.

thanks!

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.

This will require migration script, but that's something out of the scope of this PR

@pedrobaeza pedrobaeza changed the title 14.0 mig sale coupon order line link 2 [14.0][MIG] sale_coupon_order_line_link: Migration to 14.0 May 23, 2022
@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 14.0-ocabot-merge-pr-53-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit e2ba66c into OCA:14.0 May 23, 2022
@OCA-git-bot
Copy link
Contributor

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

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

10 participants