-
-
Notifications
You must be signed in to change notification settings - Fork 347
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] hr_timesheet_sheet #516
Conversation
* [10.0] hr_timesheet_sheet * [11.0][MIG] hr_timesheet_sheet * [REMOVE] hr_timesheet.sheet.account * [REMOVE] 'new' state * [ADD] Tests * [UPD] Adapt to multicompany * [ADD] Add more tests (include multicompany tests) * [FIX] project_task_stage_allow_timesheet: show error message only if task * [ADD] Migration scripts to v11
Currently translated at 98.9% (88 of 89 strings) Translation: hr-timesheet-11.0/hr-timesheet-11.0-hr_timesheet_sheet Translate-URL: https://translation.odoo-community.org/projects/hr-timesheet-11-0/hr-timesheet-11-0-hr_timesheet_sheet/ja/
Currently translated at 100,0% (89 of 89 strings) Translation: hr-timesheet-11.0/hr-timesheet-11.0-hr_timesheet_sheet Translate-URL: https://translation.odoo-community.org/projects/hr-timesheet-11-0/hr-timesheet-11-0-hr_timesheet_sheet/pt_BR/
…ay into this module, which adds a configuration to select the week start day.
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
If you run tests on Sunday, test_4 was not prepared for it, as next day is Monday, which belongs to other week, and thus not included in same timesheet. With this, we cover that case, decreasing one day instead of adding it.
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
@dsolanki-initos and @gaikaz could you review again? |
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: LGTM
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 functional Test LGTM!
Below are a few points that need to be taken care of
- Please use TransactionCase instead of SavepointCase in test-case
- Please remove the commented code
@dsolanki-initos thanks for you review and findings. I've changed to TransactionCase and removed the commented code from the tests. |
@alexey-pelykh do you have an advice how to continue here on the pre-commit issue? |
hi @pedrobaeza do you have an idea of what could be this pre-commit issue ? thank you |
Some translations are incorrect:
|
No, this check is correct and must be kept. The solution is to fix the translations. |
After or before the PR was merged? edit: |
Youy have to fix it here in the migration. |
hmm.. sorry but I do not speak all these languages. How can I fix this? |
I think the problem is not the language, but incorrect syntax. You just need to fix such syntax. I think it's a missing |
Hey @CRogos, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
@pedrobaeza Thanks for your input and support. Is there anything I can do on the failed project test coverage? I mean more than 100% of the patch cannot be tested, correct? |
/ocabot migration hr_timesheet_sheet |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at c8b05d1. Thanks a lot for contributing to OCA. ❤️ |
Improvement of #484
any idea how to fix these warnings in pre-commit?
hr_timesheet_sheet/i18n/id.po:439: [W7968(po-msgstr-variables), ] Translation string couldn't be parsed correctly using string%variables TypeError('not all arguments converted during string formatting')