-
-
Notifications
You must be signed in to change notification settings - Fork 460
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
[14.0][ADD] account_move_import_queue_context #654
base: 14.0
Are you sure you want to change the base?
[14.0][ADD] account_move_import_queue_context #654
Conversation
8a630c2
to
28c5f09
Compare
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.
LGTM, but cover with unit test?
28c5f09
to
6bf2c11
Compare
Just added, let me know if I'm missing something. |
@amh-mw good for you? |
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.
Code review, LGTM
|
||
class TestJobPrepareContext(TransactionCase): | ||
def test_job_prepare_context_before_enqueue_keys(self): | ||
model = self.env["base"].create({}) |
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.
question(non-blocking): do you need this create
? Couldn't you just do self.env["base"]._job_prepare_context_before_enqueue_keys()
?
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.
I concur the create is unnecessary for methods decorated @api.model
.
|
||
class TestJobPrepareContext(TransactionCase): | ||
def test_job_prepare_context_before_enqueue_keys(self): | ||
model = self.env["base"].create({}) |
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.
I concur the create is unnecessary for methods decorated @api.model
.
This PR has the |
6bf2c11
to
8f3b12b
Compare
@pedrobaeza good to go? |
I feel here there's a missing piece, as with this module, you can't import directly with |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
No description provided.