Skip to content

Conversation

@etobella
Copy link
Member

@etobella etobella commented Dec 1, 2022

Represenation might fall in case of no job definition (as it happens on https://github.com/OCA/edi/blob/15.0/edi_oca/tests/test_record.py#L127), it tries to generate the log warning, but it fails

@simahawk

@OCA-git-bot
Copy link
Contributor

Hi @guewen,
some modules you are maintaining are being modified, check this out!

@etobella
Copy link
Member Author

etobella commented Dec 1, 2022

Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

LG, maybe worth to adapt the tests?

return "Delayable({}.{}({}, {}))".format(
self.recordset, self._job_method.__name__, self._job_args, self._job_kwargs
str(self.recordset),
self._job_method and self._job_method.__name__ or "",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
self._job_method and self._job_method.__name__ or "",
self._job_method.__name__ if self._job_method else "",

... and ... or ... is a pattern I prefer to avoid

Copy link
Member

@guewen guewen left a comment

Choose a reason for hiding this comment

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

Thanks! Would you mind applying my "cosmetic" suggestion?

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

@etobella
Copy link
Member Author

etobella commented Dec 7, 2022

Thanks!!! All comments attended

@guewen
Copy link
Member

guewen commented Dec 7, 2022

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 15.0-ocabot-merge-pr-487-by-guewen-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit bee08ac into OCA:15.0 Dec 7, 2022
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at dfa104a. Thanks a lot for contributing to OCA. ❤️

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.

5 participants