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] hr_timesheet_auto_creation #27

Merged
merged 32 commits into from
Dec 15, 2023

Conversation

elicoidal and others added 25 commits July 25, 2023 16:25
...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]>
Copy link
Member

@huguesdk huguesdk left a 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?

Comment on lines 14 to 15
# The loop is a workaround for https://github.com/odoo/odoo/issues/129620
# Remove loop when bug is fixed upstream.
Copy link
Member

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

Comment on lines 12 to 13
def setUp(self):
super().setUp()
Copy link
Member

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

@robinkeunen
Copy link
Member

/ocabot merge patch

@github-grap-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-27-by-robinkeunen-bump-patch, awaiting test results.

github-grap-bot added a commit that referenced this pull request Dec 15, 2023
Signed-off-by robinkeunen
@robinkeunen
Copy link
Member

Oups, should have merged nobump

@github-grap-bot
Copy link
Contributor

@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.

@robinkeunen
Copy link
Member

/ocabot merge nobump

@github-grap-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-27-by-robinkeunen-bump-nobump, awaiting test results.

@github-grap-bot github-grap-bot merged commit 26f9243 into 16.0 Dec 15, 2023
4 checks passed
@github-grap-bot
Copy link
Contributor

Congratulations, your PR was merged at 226a4e1. Thanks a lot for contributing to coopiteasy. ❤️

@github-grap-bot github-grap-bot deleted the 16.0-mig-hr_timesheet_auto_creation branch December 15, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants