-
-
Notifications
You must be signed in to change notification settings - Fork 168
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] maintenance_plan #339
Conversation
rendering, qweb_type = self.report_obj._render_qweb_text( | ||
"base_maintenance.report_maintenance_request", generated_request.ids | ||
) | ||
self.assertFalse(rendering.decode("utf-8").find("TEST-INSTRUCTIONS") == -1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
REGEX was not working?
e84762b
to
89a858f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good and seems to work, unsure about the reason for the few changes that were made compared to v15
<xpath expr="//group[@name='maintenance']/.." position="after"> | ||
<field | ||
name="maintenance_plan_ids" | ||
nolabel="1" | ||
context="{'default_equipment_id': active_id, 'hide_equipment_id': 1}" | ||
> | ||
<tree> | ||
<field name="maintenance_kind_id" string="Kind" /> | ||
<field name="maintenance_team_id" string="Team" /> | ||
<field name="name" /> | ||
<field name="start_maintenance_date" string="Start Date" /> | ||
<field name="interval" /> | ||
<field name="interval_step" /> | ||
<field name="duration" /> | ||
<field name="next_maintenance_date" /> | ||
<field | ||
name="maintenance_plan_horizon" | ||
string="P. Horizon period" | ||
/> | ||
<field name="planning_step" string="P. Horizon step" /> | ||
</tree> | ||
</field> | ||
</xpath> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why the change from
<xpath expr="//group[@name='maintenance']/" position="after">
<xpath expr="//group[@name='maintenance']/.." position="after">
at the very least I would add a <group string="Maintenance Plans">
around the whole thing, or alternatively remove the nolabel
option
Also there was an existing proposed migration #324 , make sure to check if someone has done the work already, or explicitly point out that you're superseeding the previous PR, please! |
@aleuffre @alexeirivera87 @mamcode |
Leave a review on all of them, or the one you think is closest to being merged, both in terms of code and in terms of the author being more active. In terms of code I think this one is closest to being done, there are just a few changes to be made. Happy to open a 4th PR myself, since I'd like to have this merged ASAP 🤣 |
Ok let me check if it has been tested ok, I guess it is alreay done on production. |
Hello @mcassuto @aleuffre @mamcode Yes, I did check the existing PR before submitting this one: About #324 , on this migration the only thing the author did was to change the module version (and even this is not correct), and to remove a function that was failing in the tests. About #265 , here the only thing that was done was to change the version of the module. Regards |
In that case, we usually write |
Visually it works for me. Why did you remove the Regex on the test? |
@alexeirivera87 if you could please address the changes that were requested, they're minor things and I think this is pretty close to getting merged. if you don't have time, I'd like to pick it up myself (I'd preserve ownership of your commits) since I need this module merged as well. Thank you for your contributions! |
@alexeirivera87 can you check the issue with the REGEX? |
e4b880d
to
bb3321f
Compare
But the test seems unrelated to the regex. Can you check it¿ |
bb3321f
to
23e4e60
Compare
@etobella All tests passed. Yes, the is related to dates. Some are failing when current date is January 30th or 31st. regards |
Wow!!! I see... that might happend every 4 years 😆 One option would be to use freezetime in order to avoid this. Can you try? |
Hi, sorry for being late. The problem with the last days of the month is that the last day of the following month is not used (in those that are generated). |
… equipment maintenance team is not filled [ADD] icon.png
[UPD] Update maintenance_plan.pot
Currently translated at 100.0% (30 of 30 strings) Translation: maintenance-12.0/maintenance-12.0-maintenance_plan Translate-URL: https://translation.odoo-community.org/projects/maintenance-12-0/maintenance-12-0-maintenance_plan/es/ [UPD] README.rst
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: maintenance-15.0/maintenance-15.0-maintenance_plan Translate-URL: https://translation.odoo-community.org/projects/maintenance-15-0/maintenance-15-0-maintenance_plan/
…equipments defined with a domain
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: maintenance-15.0/maintenance-15.0-maintenance_plan Translate-URL: https://translation.odoo-community.org/projects/maintenance-15-0/maintenance-15-0-maintenance_plan/
Currently translated at 100.0% (118 of 118 strings) Translation: maintenance-15.0/maintenance-15.0-maintenance_plan Translate-URL: https://translation.odoo-community.org/projects/maintenance-15-0/maintenance-15-0-maintenance_plan/it/
23e4e60
to
106a09d
Compare
It should be ok now. regards |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review OK
/ocabot merge nobump |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 4f5193f. Thanks a lot for contributing to OCA. ❤️ |
/ocabot migraion maintenance_plan |
Hi @etobella. Your command failed:
Ocabot commands
More information
|
/ocabot migration maintenance_plan |
No description provided.