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

13.0 mig hr job category #707

Closed
wants to merge 10 commits into from
Closed

13.0 mig hr job category #707

wants to merge 10 commits into from

Conversation

Murtaza-Mithaiwala
Copy link

No description provided.

@Murtaza-Mithaiwala Murtaza-Mithaiwala mentioned this pull request Oct 20, 2019
41 tasks
@pedrobaeza pedrobaeza added this to the 13.0 milestone Oct 20, 2019

@api.multi
def _remove_tags(self, employee_id=None, job_id=None):
# TODO write tags only once

Choose a reason for hiding this comment

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

Another way to do this function would be to keep a list of the ids you want to keep and then perform a [(6, 0, [ids])] write.
This way you would only do one write but if don't know if it is more efficient or not. If we want to keep it like this we can remove the TODO

_logger.debug('Removing employee tags if tag exists on contract '
'job: %s', empl_tags)
job = self.env["hr.job"].browse(job_id)
_logger.debug(

Choose a reason for hiding this comment

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

Is this logger necessary?

_logger.debug("Adding employee tag if job tag doesn't "
"exists: %s", tag.name)
employee.write({'category_ids': [(4, tag.id)]})
_logger.debug(

Choose a reason for hiding this comment

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

Same

job will be attached to the employee record as well.

Choose a reason for hiding this comment

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

I cant see what changed here

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@dreispt
Copy link
Member

dreispt commented Jun 17, 2020

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 13.0-ocabot-merge-pr-707-by-dreispt-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Jun 17, 2020
Signed-off-by dreispt
@OCA-git-bot
Copy link
Contributor

@dreispt your merge command was aborted due to failed check(s), which you can inspect on this commit of 13.0-ocabot-merge-pr-707-by-dreispt-bump-nobump.

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.

@Saran440
Copy link
Member

@Murtaza-Mithaiwala Hi! Could you pre-commit this module?

@dreispt
Copy link
Member

dreispt commented Aug 29, 2020

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 13.0-ocabot-merge-pr-707-by-dreispt-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Aug 29, 2020
Signed-off-by dreispt
@OCA-git-bot
Copy link
Contributor

@dreispt your merge command was aborted due to failed check(s), which you can inspect on this commit of 13.0-ocabot-merge-pr-707-by-dreispt-bump-nobump.

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.

@leemannd
Copy link
Contributor

leemannd commented Dec 2, 2020

Has been merged in -> #895
Can be closed

@Saran440
Copy link
Member

Saran440 commented Dec 4, 2020

merged #895

@Saran440 Saran440 closed this Dec 4, 2020
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.