-
Notifications
You must be signed in to change notification settings - Fork 1
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] hr_timesheet_auto_creation #27
Conversation
...from github : Elico-Corp 10.0/hr_timesheet_auto_creation
* correct summary * correct website * remove application property (since not a full-fledged application) * remove default installable property * reformat
* fix cause of IntegrityError and remove hack * modify the test to cover this this IntegrityError was due to the fact that the same dict was re-used to create multiple timesheets. during the creation, the provided dict is modified, adding a default follower. this resulted in the same follower being added multiple times (one for each loop iteration), and thus in trying to create multiple follower records with the same values.
hr_timesheet_auto_creation: link existing timesheets (account.analytic.line) to newly automatically created timesheet sheets.
Signed-off-by: Carmen Bianca Bakker <[email protected]>
Signed-off-by: Carmen Bianca Bakker <[email protected]>
hr_timesheet_auto_creation/tests/test_timesheet_auto_creation.py
Outdated
Show resolved
Hide resolved
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.
with the last fix in the tests, would using setupClass()
instead of setup()
work again?
# The loop is a workaround for https://github.com/odoo/odoo/issues/129620 | ||
# Remove loop when bug is fixed upstream. |
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.
Fixed in odoo/odoo#130019
def setUp(self): | ||
super().setUp() |
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.
like hugues said, let's change this to setUpClass
6a3c267
to
7229536
Compare
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
Oups, should have merged nobump |
@robinkeunen your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-27-by-robinkeunen-bump-patch. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 226a4e1. Thanks a lot for contributing to coopiteasy. ❤️ |
https://gestion.coopiteasy.be/web#id=10959&action=475&active_id=492&model=project.task&view_type=form&menu_id=