-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
[IMP] event_sale_session: Recovery unconfirmed quantity event #373
base: 16.0
Are you sure you want to change the base?
[IMP] event_sale_session: Recovery unconfirmed quantity event #373
Conversation
388f675
to
b87c212
Compare
4fa81a2
to
39dd7ee
Compare
39dd7ee
to
57e3cb6
Compare
def test_sale_order_line_session_onchange_autocomplete(self): | ||
"""Test that session is automatically filled and or unset on form""" | ||
form = Form(self.order) | ||
line = form.order_line.new() | ||
line.product_id = self.product | ||
# Case 1: The event is a session event, but has multiple sessions | ||
line.event_id = self.event | ||
self.assertFalse(line.event_session_id) | ||
# Case 2: The event is a session event with only 1 session | ||
(self.event.session_ids - self.session).active = False | ||
line.event_id = self.event | ||
self.assertEqual(line.event_session_id, self.session) | ||
# Case 3: The event is not a session event, session should be unset | ||
line.event_id = self.env.ref("event.event_0") | ||
self.assertFalse(line.event_session_id) | ||
|
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.
Why removing this whole test?
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.
Onchange is only applied when you are in form view
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.
Sorry, I still don't understand the reason to remove it 😓 are you facing an issue with this test while implementing the new feature?
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.
This should be in a separate event_sale_session_unconfirmed_qty
module IMO
@pedrobaeza what do you think to move this functionality to new module? |
If it depends on The idea to split them in Take for example these two modules:
|
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. |
@pedrobaeza please add "no stale" label |
@Tecnativa
TT49353
@chienandalu @pedrobaeza