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][MIG] contract_price_revision: Migration to 16.0 #1038

Closed

Conversation

houzefa-abba
Copy link
Member

@houzefa-abba houzefa-abba commented Jan 15, 2024

Fix views in the process; variation % was not showing inside line list embedded into contract forms.

Test case on runboat

Contract starts in 2024, invoiced every year, first invoice got produced, price = $500:
Screenshot at 2024-01-16 09-52-26

Run wizard with 10% increase in 2025:
Screenshot at 2024-01-16 09-52-49

The wizard stops my initial contract line and adds a new one in 2025 with price = $550:
Screenshot at 2024-01-16 09-53-15

@houzefa-abba houzefa-abba force-pushed the 16.0-mig-contract_price_revision branch 2 times, most recently from dfd53cd to d4768e6 Compare January 16, 2024 08:46
@houzefa-abba houzefa-abba marked this pull request as ready for review January 16, 2024 08:57
@houzefa-abba
Copy link
Member Author

Hi @carlosdauden @carolinafernandez-tecnativa this PR is ready, please review

@carolinafernandez-tecnativa
Copy link
Contributor

Functional Review LGTM :) Could you please squash administrative commits? Thanks!!

@houzefa-abba
Copy link
Member Author

Functional Review LGTM :) Could you please squash administrative commits? Thanks!!

Thanks for the review! :)

I already squashed some bot & translation commits, which ones do you have in mind? Maybe the 13.0 ones? I'm hesitant in squashing those as they add features

@carolinafernandez-tecnativa
Copy link
Contributor

image

Functional Review LGTM :) Could you please squash administrative commits? Thanks!!

Thanks for the review! :)

I already squashed some bot & translation commits, which ones do you have in mind? Maybe the 13.0 ones? I'm hesitant in squashing those as they add features

I attached the ones I was telling you before

image

@houzefa-abba houzefa-abba force-pushed the 16.0-mig-contract_price_revision branch from d4768e6 to a63ae59 Compare January 16, 2024 15:30
@houzefa-abba
Copy link
Member Author

Done! Looks better indeed

@carolinafernandez-tecnativa
Copy link
Contributor

Other thing you need to take into account according to this document https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0 you need to separate pre-commit init from migration

Also commits about Translations you need to squash them.

@houzefa-abba
Copy link
Member Author

Other thing you need to take into account according to this document https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0 you need to separate pre-commit init from migration

Also commits about Translations you need to squash them.

Hi pre-commit did not change anything in this case so there was nothing to commit pre-migration - my 16.0 migration commit does not contain any code formatting changes, unless you spot a specific one?

I already squashed translation commits, could you show me which ones remain to be squashed please?

@rousseldenis
Copy link
Contributor

/ocabot migration contract_price_revision

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Jan 22, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Jan 22, 2024
14 tasks
Copy link
Contributor

@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

@houzefa-abba houzefa-abba force-pushed the 16.0-mig-contract_price_revision branch from a63ae59 to 6083a96 Compare February 28, 2024 15:03
@houzefa-abba
Copy link
Member Author

Rebased on latest 16.0

rousseldenis and others added 7 commits March 13, 2024 10:22
…se module

Values for new line should come from _prepare_value_for_plan_successor function
adding the new price.
…ome lines

As if recurrence management is per line, some lines should be excluded from price revision.
Currently translated at 82.6% (19 of 23 strings)

Translation: contract-15.0/contract-15.0-contract_price_revision
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract_price_revision/es/
Fix views in the process; variation % was not showing inside line list
embedded into contract forms.
@houzefa-abba houzefa-abba force-pushed the 16.0-mig-contract_price_revision branch from 6083a96 to 5f4fb7d Compare March 13, 2024 09:26
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 Jul 14, 2024
@github-actions github-actions bot closed this Aug 18, 2024
Copy link

@TelmoSuarez TelmoSuarez left a comment

Choose a reason for hiding this comment

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

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration needs review stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.