[19.0][MIG] base_write_diff: Migration to 19.0 - #3467
Conversation
d073bff to
1dfc1e1
Compare
base_write_diff: Migration to 19.0
1dfc1e1 to
c9735a8
Compare
|
This PR has the |
BhaveshHeliconia
left a comment
There was a problem hiding this comment.
Could we use BaseCommon instead of TransactionCase? In that case, there would be no need to redefine DISABLED_MAIL_CONTEXT.
| from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT | ||
|
|
||
|
|
||
| class TestRecordDiffCommon(TransactionCase): |
There was a problem hiding this comment.
| class TestRecordDiffCommon(TransactionCase): | |
| class TestRecordDiffCommon(Basecommon): |
| def setUpClass(cls): | ||
| super().setUpClass() | ||
| # Setup env | ||
| cls.env = cls.env["base"].with_context(**DISABLED_MAIL_CONTEXT).env |
There was a problem hiding this comment.
| cls.env = cls.env["base"].with_context(**DISABLED_MAIL_CONTEXT).env |
tbh, BaseCommon is doing more than what we need so I see no problem in simply setting the |
|
Hello @OCA/tools-maintainers 👋🏻 Could we merge this one please? 🙏🏻 |
|
/ocabot merge nobump |
|
This PR looks fantastic, let's merge it! |
|
Congratulations, your PR was merged at b6b959b. Thanks a lot for contributing to OCA. ❤️ |
No description provided.