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

[17.0][OU-ADD] hr_holidays: Migration to 17.0 #4702

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from

Conversation

remi-filament
Copy link
Contributor

No description provided.

@legalsylvain
Copy link
Contributor

/ocabot migration hr_holidays

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Dec 31, 2024
@@ -12,6 +13,7 @@
<record id="holiday_status_unpaid" model="hr.leave.type">
<field name="responsible_ids" eval="[(4, ref('base.user_admin'))]"/>
</record>
-->

Choose a reason for hiding this comment

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

Remove unused code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here, I think it is better to keep these so that we see what we should not update.

Choose a reason for hiding this comment

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

I don't think it's useful.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IMO it is, and it actually what is usually done on other scripts as well, see for instannce :

<!-- Don't recreate this, as they are usually touched by users and in fact the changes are only to use Command syntax
<record id="account_payment_term_15days" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 15})]"/>
</record>
<record id="account_payment_term_21days" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 21})]"/>
</record>
<record id="account_payment_term_2months" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'months': 2})]"/>
</record>
<record id="account_payment_term_30days" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 30})]"/>
</record>
<record id="account_payment_term_45days" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 45})]"/>
</record>
<record id="account_payment_term_advance_60days" model="account.payment.term">
<field name="line_ids" eval="[ Command.clear(), Command.create({'value': 'percent', 'value_amount': 30.0, 'days': 0}), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 60})]"/>
</record>
<record id="account_payment_term_immediate" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0})]"/>
</record> -->

The use case where it is useful is for when we run analysis again, (like it was done with #4697) by keeping the comments, we know that these data were commented out willingly, and it was not new data which was added after last analysis or data which was forgotten.

@remi-filament
Copy link
Contributor Author

Done as per your comments, thanks for your review @Murtaza-SerpentCS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants